Skip to content
Snippets Groups Projects

[AGIPD][CORRECT] Fixes for correcting AGIPD HIBEF data

Merged Karim Ahmed requested to merge feat/HIBEF_AGIPD_Correction into master
1 file
+ 0
1
Compare changes
  • Side-by-side
  • Inline
@@ -284,7+284,7 @@
data_dict['cellId'][:n_img] = np.squeeze(group['cellId'][firange])
data_dict['pulseId'][:n_img] = np.squeeze(
group['pulseId'][firange])
data_dict['trainId'][:n_img] = np.squeeze(
group['trainId'][firange])
data_dict['moduleIdx'][0] = module_idx
@@ -625,7+625,7 @@
first = np.squeeze(infile[idx_base + "image/first"])
nonzero_count = np.count_nonzero(count != 0)
zero_count = count.shape[0] - nonzero_count
zero_indices = np.where(count == 0)[0]
if nonzero_count == 0:
raise IOError("File has no valid counts")
valid = count != 0
Loading