Skip to content

Commit 6e577c7

Browse files
authored
Merge pull request #13 from ttngu207/main
fix: use `caiman.paths.fn_relocated` in `apply_shifts_movie`
2 parents 8b16f7f + fa9f0e7 commit 6e577c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

caiman/motion_correction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ def apply_shifts_movie(self, fname, rigid_shifts:bool=None, save_memmap:bool=Fal
521521
if save_memmap:
522522
dims = m_reg.shape
523523
fname_tot = caiman.paths.memmap_frames_filename(save_base_name, dims[1:], dims[0], order)
524+
fname_tot = caiman.paths.fn_relocated(fname_tot)
524525
big_mov = np.memmap(fname_tot, mode='w+', dtype=np.float32,
525526
shape=caiman.mmapping.prepare_shape((np.prod(dims[1:]), dims[0])), order=order)
526527
big_mov[:] = np.reshape(m_reg.transpose(1, 2, 0), (np.prod(dims[1:]), dims[0]), order='F')

0 commit comments

Comments
 (0)