(branching from #491 and #499, since this issue has lower priority)
For cellpose/napari-workflows, we should try to fail as early as possible if overwrite=False and some output already exists.
For instance we could:
Verify that prepare_label_group is always called before actual processing.
Perform some parts of the write_table checks before actual processing. Should we split write_table into prepare_table_group and write_table? I'm not sure yet that the additional complexity is worth it.. Maybe we can simply have a preliminary_check_for_write_table (random name..) function, and keep write_table as is. TBD.
(branching from #491 and #499, since this issue has lower priority)
For cellpose/napari-workflows, we should try to fail as early as possible if
overwrite=False
and some output already exists.For instance we could:
prepare_label_group
is always called before actual processing.write_table
checks before actual processing. Should we splitwrite_table
intoprepare_table_group
andwrite_table
? I'm not sure yet that the additional complexity is worth it.. Maybe we can simply have apreliminary_check_for_write_table
(random name..) function, and keepwrite_table
as is. TBD.