From 95440fd63e98fc737fbdadccf8f3e9499838c628 Mon Sep 17 00:00:00 2001
From: fjosw
Date: Mon, 13 Dec 2021 14:50:03 +0000
Subject: [PATCH] Documentation updated
---
docs/pyerrors/correlators.html | 6 +++---
docs/pyerrors/fits.html | 8 ++++----
docs/pyerrors/input/bdio.html | 4 ++--
docs/pyerrors/obs.html | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/docs/pyerrors/correlators.html b/docs/pyerrors/correlators.html
index 49d09e55..2f9ea60b 100644
--- a/docs/pyerrors/correlators.html
+++ b/docs/pyerrors/correlators.html
@@ -733,7 +733,7 @@
y_min = min([(x[0].value - x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
y_max = max([(x[0].value + x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
ax1.set_ylim([y_min - 0.1 * (y_max - y_min), y_max + 0.1 * (y_max - y_min)])
- except:
+ except Exception:
pass
else:
ax1.set_ylim(y_range)
@@ -1541,7 +1541,7 @@
y_min = min([(x[0].value - x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
y_max = max([(x[0].value + x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
ax1.set_ylim([y_min - 0.1 * (y_max - y_min), y_max + 0.1 * (y_max - y_min)])
- except:
+ except Exception:
pass
else:
ax1.set_ylim(y_range)
@@ -2801,7 +2801,7 @@ method to extract the plateau.
y_min = min([(x[0].value - x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
y_max = max([(x[0].value + x[0].dvalue) for x in self.content[x_range[0]: x_range[1] + 1] if (x is not None) and x[0].dvalue < 2 * np.abs(x[0].value)])
ax1.set_ylim([y_min - 0.1 * (y_max - y_min), y_max + 0.1 * (y_max - y_min)])
- except:
+ except Exception:
pass
else:
ax1.set_ylim(y_range)
diff --git a/docs/pyerrors/fits.html b/docs/pyerrors/fits.html
index f3e889f8..abd0d916 100644
--- a/docs/pyerrors/fits.html
+++ b/docs/pyerrors/fits.html
@@ -297,7 +297,7 @@
for i in range(25):
try:
func(np.arange(i), x.T[0])
- except:
+ except Exception:
pass
else:
break
@@ -438,7 +438,7 @@
for i in range(100):
try:
func(np.arange(i), 0)
- except:
+ except Exception:
pass
else:
break
@@ -579,7 +579,7 @@
for i in range(25):
try:
func(np.arange(i), x.T[0])
- except:
+ except Exception:
pass
else:
break
@@ -1186,7 +1186,7 @@ List of N Obs that are used to constrain the last N fit parameters of func.
for i in range(25):
try:
func(np.arange(i), x.T[0])
- except:
+ except Exception:
pass
else:
break
diff --git a/docs/pyerrors/input/bdio.html b/docs/pyerrors/input/bdio.html
index 055691ab..3833bc4f 100644
--- a/docs/pyerrors/input/bdio.html
+++ b/docs/pyerrors/input/bdio.html
@@ -306,7 +306,7 @@
for key in keys:
try: # Try to convert key to integer
ids.append(int(key))
- except: # If not possible construct a hash
+ except Exception: # If not possible construct a hash
ids.append(int(hashlib.sha256(key.encode('utf-8')).hexdigest(), 16) % 10 ** 8)
print('ids', ids)
nt = []
@@ -969,7 +969,7 @@ adding the flag -fPIC to CC and changing the all target to
for key in keys:
try: # Try to convert key to integer
ids.append(int(key))
- except: # If not possible construct a hash
+ except Exception: # If not possible construct a hash
ids.append(int(hashlib.sha256(key.encode('utf-8')).hexdigest(), 16) % 10 ** 8)
print('ids', ids)
nt = []
diff --git a/docs/pyerrors/obs.html b/docs/pyerrors/obs.html
index f94abf01..d2ae5b32 100644
--- a/docs/pyerrors/obs.html
+++ b/docs/pyerrors/obs.html
@@ -1269,7 +1269,7 @@
g = groupby(idl)
if next(g, True) and not next(g, False):
return idl[0]
- except:
+ except Exception:
pass
if np.all([type(idx) is range for idx in idl]):