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.
Files changed (34) hide show
  1. {optimouse-0.1.2 → optimouse-0.1.3}/PKG-INFO +1 -1
  2. {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/PKG-INFO +1 -1
  3. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/utils/pipeline_utils.py +13 -3
  4. {optimouse-0.1.2 → optimouse-0.1.3}/pyproject.toml +1 -1
  5. {optimouse-0.1.2 → optimouse-0.1.3}/LICENSE.md +0 -0
  6. {optimouse-0.1.2 → optimouse-0.1.3}/README.md +0 -0
  7. {optimouse-0.1.2 → optimouse-0.1.3}/modules/__init__.py +0 -0
  8. {optimouse-0.1.2 → optimouse-0.1.3}/modules/bruker_concat_tif.py +0 -0
  9. {optimouse-0.1.2 → optimouse-0.1.3}/modules/compute_zcorr.py +0 -0
  10. {optimouse-0.1.2 → optimouse-0.1.3}/modules/extraction.py +0 -0
  11. {optimouse-0.1.2 → optimouse-0.1.3}/modules/motion_correction.py +0 -0
  12. {optimouse-0.1.2 → optimouse-0.1.3}/modules/utils/plot_zones.py +0 -0
  13. {optimouse-0.1.2 → optimouse-0.1.3}/modules/utils/save_z_motion_args.py +0 -0
  14. {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/SOURCES.txt +0 -0
  15. {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/dependency_links.txt +0 -0
  16. {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/requires.txt +0 -0
  17. {optimouse-0.1.2 → optimouse-0.1.3}/optimouse.egg-info/top_level.txt +0 -0
  18. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/__init__.py +0 -0
  19. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_C57_O1M2_10022023_run1run2.json +0 -0
  20. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_C57_O1M2_10022023_run1run2run3run4.json +0 -0
  21. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_template_cnmf.json +0 -0
  22. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_template_suite2p.json +0 -0
  23. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/configs/config_test.json +0 -0
  24. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/pipeline_cnmf.py +0 -0
  25. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/pipeline_mcorr.py +0 -0
  26. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/roi_zcorr.py +0 -0
  27. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/utils/__init__.py +0 -0
  28. {optimouse-0.1.2 → optimouse-0.1.3}/pipeline/utils/config_loader.py +0 -0
  29. {optimouse-0.1.2 → optimouse-0.1.3}/setup.cfg +0 -0
  30. {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_make_composite_f_anat.py +0 -0
  31. {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_module.py +0 -0
  32. {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_motion_correction.py +0 -0
  33. {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_patch_plots_efficient.py +0 -0
  34. {optimouse-0.1.2 → optimouse-0.1.3}/tests/test_subtract_z_motion_patches.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optimouse
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: 2-photon calcium imaging data processing pipeline with CaImAn / Suite2P
5
5
  Author-email: Vincent Prevosto <prevosto@mit.edu>, Manuel Levy <levym@mit.edu>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: optimouse
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: 2-photon calcium imaging data processing pipeline with CaImAn / Suite2P
5
5
  Author-email: Vincent Prevosto <prevosto@mit.edu>, Manuel Levy <levym@mit.edu>
6
6
  License-Expression: MIT
@@ -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
- for attempt in range(3):
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 == 2:
198
- log_and_print(f"Could not delete {batch_dir}: {e}")
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
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "optimouse"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "2-photon calcium imaging data processing pipeline with CaImAn / Suite2P"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes