optimouse 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {optimouse-0.1.2 → optimouse-0.1.3}/PKG-INFO +1 -1
- {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/PKG-INFO +1 -1
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/utils/pipeline_utils.py +13 -3
- {optimouse-0.1.2 → optimouse-0.1.3}/pyproject.toml +1 -1
- {optimouse-0.1.2 → optimouse-0.1.3}/LICENSE.md +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/README.md +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/__init__.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/bruker_concat_tif.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/compute_zcorr.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/extraction.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/motion_correction.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/utils/plot_zones.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/modules/utils/save_z_motion_args.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/SOURCES.txt +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/dependency_links.txt +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/requires.txt +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/top_level.txt +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/__init__.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_C57_O1M2_10022023_run1run2.json +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_C57_O1M2_10022023_run1run2run3run4.json +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_template_cnmf.json +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_template_suite2p.json +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_test.json +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/pipeline_cnmf.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/pipeline_mcorr.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/roi_zcorr.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/utils/__init__.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/utils/config_loader.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/setup.cfg +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_make_composite_f_anat.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_module.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_motion_correction.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_patch_plots_efficient.py +0 -0
- {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_subtract_z_motion_patches.py +0 -0
|
@@ -188,14 +188,24 @@ def cleanup_files(batch_path, export_path, preserve_batch=False):
|
|
|
188
188
|
batch_runfile.unlink()
|
|
189
189
|
batch_dir = Path(export_path) / batch_id
|
|
190
190
|
if batch_dir.exists():
|
|
191
|
-
|
|
191
|
+
max_attempts = 6
|
|
192
|
+
for attempt in range(max_attempts):
|
|
192
193
|
time.sleep(1 + attempt)
|
|
193
194
|
try:
|
|
194
195
|
shutil.rmtree(batch_dir)
|
|
195
196
|
break
|
|
196
197
|
except Exception as e:
|
|
197
|
-
if attempt ==
|
|
198
|
-
|
|
198
|
+
if attempt == max_attempts - 1:
|
|
199
|
+
nfs_files = list(batch_dir.glob(".nfs*"))
|
|
200
|
+
if nfs_files:
|
|
201
|
+
log_and_print(
|
|
202
|
+
f"Could not delete {batch_dir}: {e}. "
|
|
203
|
+
f"Detected NFS temp files: {[p.name for p in nfs_files]}. "
|
|
204
|
+
"A process likely still holds an open handle; retry later.",
|
|
205
|
+
level="warning",
|
|
206
|
+
)
|
|
207
|
+
else:
|
|
208
|
+
log_and_print(f"Could not delete {batch_dir}: {e}")
|
|
199
209
|
for pickle_file in Path(export_path).glob("batch_*.pickle"):
|
|
200
210
|
pickle_file.unlink()
|
|
201
211
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_C57_O1M2_10022023_run1run2run3run4.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|