FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Unverified Commit 9e30dcf8 authored by Eduardo Gonzalez Solares's avatar Eduardo Gonzalez Solares
Browse files

Fix bare except

parent 9e317153
No related branches found
No related tags found
1 merge request!3Dask
Pipeline #163281 failed
......@@ -338,7 +338,7 @@ def find_overlap_conf(
# in case of many nans, this fails, default to middle
dx = desp_x[i_x][0]
dy = desp_y[i_y][0]
except:
except IndexError:
dx = int(np.median(desp_x))
dy = int(np.median(desp_y))
#
......
......@@ -255,7 +255,7 @@ for this_dir in dirs:
try:
dx_mat = np.load(this_dir + 'desp_dist_x.npy')
dy_mat = np.load(this_dir + 'desp_dist_y.npy')
except:
except FileNotFoundError:
print('No saved displacements found')
#
# This is more or less the distance between images in detectors,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment