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

Create intermediary directories if they haven't been already

parent d43c4761
No related branches found
No related tags found
No related merge requests found
......@@ -89,8 +89,10 @@ def loop_workflow(files, where_output, workflow_func, params,
# export intermediate data if flagged
if write_intermediate_products:
for k in result['interm'].keys():
path = Path(where_output) / k / (Path(ff).stem + '.tif')
path.parent.mkdir(parents=True, exist_ok=True)
write_accessor_data_to_file(
Path(where_output) / k / (Path(ff).stem + '.tif'),
path,
InMemoryDataAccessor(result['interm'][k])
)
......
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