Skip to content
Snippets Groups Projects
Commit 51cf0a2f authored by Karim Ahmed's avatar Karim Ahmed
Browse files

Apply suggestion to cal_tools/cal_tools/agipdlib.py

parent ea7eaa49
No related branches found
No related tags found
1 merge request!377[AGIPD][CORRECT] Fixes for correcting AGIPD HIBEF data
...@@ -625,7 +625,6 @@ class AgipdCorrections: ...@@ -625,7 +625,6 @@ class AgipdCorrections:
first = np.squeeze(infile[idx_base + "image/first"]) first = np.squeeze(infile[idx_base + "image/first"])
nonzero_count = np.count_nonzero(count != 0) nonzero_count = np.count_nonzero(count != 0)
zero_count = count.shape[0] - nonzero_count zero_count = count.shape[0] - nonzero_count
zero_indices = np.where(count == 0)[0]
if nonzero_count == 0: if nonzero_count == 0:
raise IOError("File has no valid counts") raise IOError("File has no valid counts")
valid = count != 0 valid = count != 0
......
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