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