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

Added default option to make directory when writing a file

parent faae666d
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,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 and not fpath.parent.exists():
fpath.parent.mkdir(parents=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