Skip to content
Snippets Groups Projects
Commit 7033ef02 authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Make folder if not already made

parent 8bd9a322
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,9 @@ class CziImageFileAccessor(GenericImageFileAccessor):
self.czifile.close()
def write_accessor_data_to_file(fpath: Path, accessor: GenericImageDataAccessor) -> bool:
def write_accessor_data_to_file(fpath: Path, accessor: GenericImageDataAccessor, mkdir=True) -> bool:
if mkdir:
fpath.parent.mkdir(parents=True, exist_ok=True)
try:
zcyx= np.moveaxis(
accessor.data, # yxcz
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment