diff --git a/extensions/chaeo/util.py b/extensions/chaeo/util.py index 9bed0644c41e90d434fbad2d50fcfe82b2e47aa8..60186ef58c4e829e7d490c027d69ac4b2df32236 100644 --- a/extensions/chaeo/util.py +++ b/extensions/chaeo/util.py @@ -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]) )