if we re-run the pipeline after the patches are done, it is possible to get a zero division error if the total time is zero.
we might want to remove segmentation time as a whole as it is usually very fast.
sys.exit(load_entry_point('wsinfer', 'console_scripts', 'wsinfer')())
File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/conda/lib/python3.7/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/opt/wsinfer/wsinfer/cli/infer.py", line 314, in cli
preset="tcga.csv",
File "/opt/wsinfer/wsinfer/_patchlib/create_patches_fp.py", line 433, in create_patches
patch_spacing=patch_spacing,
File "/opt/wsinfer/wsinfer/_patchlib/create_patches_fp.py", line 331, in seg_and_patch
seg_times /= total
ZeroDivisionError: float division by zero
if we re-run the pipeline after the patches are done, it is possible to get a zero division error if the total time is zero.
we might want to remove segmentation time as a whole as it is usually very fast.