Skip to content

Commit

Permalink
Bugfix: use np.abs() for bad_frames_idx calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kushalbakshi committed Dec 5, 2024
1 parent 710da2e commit 569e0cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion element_calcium_imaging/imaging_no_curation.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def _make_taper(size, width):
"slice_interval"
]

bad_frames_idx = np.where(drift >= drift_params["bad_frames_threshold"])[0]
bad_frames_idx = np.where(np.abs(drift) >= drift_params["bad_frames_threshold"])[0]

self.insert1(
dict(**key, bad_frames=bad_frames_idx, z_drift=drift),
Expand Down

0 comments on commit 569e0cd

Please sign in to comment.