Skip to content

Commit

Permalink
Updated run.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Deeban Ramalingam committed May 30, 2024
1 parent 0cd11dc commit 1cafeb4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions btx/diagnostics/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,10 @@ def compute_run_stats(self, max_events=-1, mask=None, powder_only=False, thresho
img = self.psi.det.calib(evt=evt)
if img is None:
self.n_empty += 1
continue

if threshold:
if np.mean(img) > threshold:
print(f"Excluding event {idx + 1} with image mean: {np.mean(img)}")
print(f"Excluding event {idx} with image mean: {np.mean(img)}")
n_excluded += 1
img = None

Expand Down

0 comments on commit 1cafeb4

Please sign in to comment.