Skip to content

Commit 95e2f60

Browse files
committed
add logging to saving of flows and cellprob
1 parent b6a15ab commit 95e2f60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cellpose/gui/io.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,13 +580,16 @@ def _save_flows(parent):
580580
""" save flows and cellprob to tiff """
581581
filename = parent.filename
582582
base = os.path.splitext(filename)[0]
583+
print("GUI_INFO: saving flows and cellprob to tiff")
583584
if len(parent.flows) > 0:
584585
imsave(base + "_cp_cellprob.tif", parent.flows[1])
585586
for i in range(3):
586587
imsave(base + f"_cp_flow_{i}.tif", parent.flows[0][..., i])
587588
if len(parent.flows) > 2:
588589
imsave(base + "_cp_flow.tif", parent.flows[2])
589-
590+
print("GUI_INFO: saved flows and cellprob")
591+
else:
592+
print("ERROR: no flows or cellprob found")
590593

591594
def _save_rois(parent):
592595
""" save masks as rois in .zip file for ImageJ """

0 commit comments

Comments
 (0)