Skip to content

Commit 19d7561

Browse files
authored
Merge pull request #570 from czbiohub-sf/subsample_mkdir_bugfix
Subsample exist_ok fix
2 parents 98ce4e0 + 3c58585 commit 19d7561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ulc_mm_package/image_processing/data_storage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ def _create_subseq_folder(self) -> str:
493493
assert self.main_dir is not None, "DataStorage has not been initialized"
494494
try:
495495
dir_path = self.main_dir / self.experiment_folder / "sub_sample_imgs"
496-
dir_path.mkdir()
496+
dir_path.mkdir(exist_ok=True)
497497
return str(dir_path)
498498
except Exception as e:
499499
self.logger.error(f"Could not create the subsample directory: {e}")

0 commit comments

Comments
 (0)