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

Confirmed able to catch failures

parent cd2fe9b8
No related branches found
No related tags found
Loading
......@@ -86,4 +86,5 @@ def loop_workflow(files, where_output, workflow_func, params,
InMemoryDataAccessor(result['interm'][k])
)
pd.DataFrame(failures).to_csv(Path(where_output) / 'failures.csv')
\ No newline at end of file
if len(failures) > 0:
pd.DataFrame(failures).to_csv(Path(where_output) / 'failures.csv')
\ No newline at end of file
......@@ -32,7 +32,6 @@ def export_patches_from_multichannel_zstack(
export_patch_masks=True,
export_patch_label_maps=True,
) -> Dict:
ti = Timer()
stack = generate_file_accessor(Path(input_zstack_path))
fstem = Path(input_zstack_path).stem
......@@ -86,7 +85,7 @@ def export_patches_from_multichannel_zstack(
if export_2d_patches_for_annotation:
files = export_multichannel_patches_from_zstack(
Path(where_output) / '2d_patches',
Path(where_output) / '2d_patches_annotation',
stack,
zmask_meta,
prefix=fstem,
......@@ -109,7 +108,7 @@ def export_patches_from_multichannel_zstack(
if export_2d_patches_for_training:
files = export_multichannel_patches_from_zstack(
Path(where_output) / '2d_patches',
Path(where_output) / '2d_patches_training',
stack.get_one_channel_data(4),
zmask_meta,
prefix=fstem,
......
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