Skip to content

Commit

Permalink
fix: use copy2
Browse files Browse the repository at this point in the history
  • Loading branch information
ttngu207 committed Jun 26, 2024
1 parent ffcff31 commit 11417cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caiman/source_extraction/cnmf/cnmf.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def fit_file(self, motion_correct=False, indices=None, include_eval=False, outpu
files_to_move += fname_mc
for f in files_to_move:
f = pathlib.Path(f)
shutil.copy(f, output_dir)
shutil.copy2(f, output_dir)

if return_mc & motion_correct:
return cnm2, mc
Expand Down

0 comments on commit 11417cc

Please sign in to comment.