From 2d0108e54915370cb796a84bcfe44c6415b0ddb3 Mon Sep 17 00:00:00 2001 From: Pat Gunn Date: Thu, 18 Jul 2024 11:16:36 -0400 Subject: [PATCH] mmapping: fix a path goof where a double-correction caused a problem, thanks t o @nick-youngblut #1373 --- caiman/mmapping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caiman/mmapping.py b/caiman/mmapping.py index ce4b040e8..dc0f670a6 100644 --- a/caiman/mmapping.py +++ b/caiman/mmapping.py @@ -527,7 +527,7 @@ def save_memmap(filenames:list[str], sys.stdout.flush() Ttot = Ttot + T - fname_new = os.path.join(caiman.paths.get_tempdir(), caiman.paths.fn_relocated(f'{fname_tot}_frames_{Ttot}.mmap')) + fname_new = caiman.paths.fn_relocated(f'{fname_tot}_frames_{Ttot}.mmap') try: # need to explicitly remove destination on windows os.unlink(fname_new)