Skip to content

Commit

Permalink
Fix z shift saving for piecewise mcorr (#314)
Browse files Browse the repository at this point in the history
* Fix failure to compute correlation image for 3D data (pending caiman update)

* Fix by passing file as string and re-run without baseline if that fails

* Make local_correlations in cnmf compatible with 3D data

* Add z shifts for pw_rigid case

* Pin caiman version instead of catching error from old version

* Fix saving non-rigid z-shifts
  • Loading branch information
ethanbb committed Sep 5, 2024
1 parent c995096 commit 5471878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesmerize_core/algorithms/mcorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run_algo(batch_path, uuid, data_path: str = None):
y_shifts = mc.y_shifts_els
shifts = [x_shifts, y_shifts]
if hasattr(mc, 'z_shifts_els'):
shifts += mc.z_shifts_els
shifts.append(mc.z_shifts_els)
shift_path = output_dir.joinpath(f"{uuid}_shifts.npy")
np.save(str(shift_path), shifts)
else:
Expand Down

0 comments on commit 5471878

Please sign in to comment.