We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4b084b2 + f976bd1 commit 450eceaCopy full SHA for 450ecea
1 file changed
cellpose/gui/io.py
@@ -665,7 +665,6 @@ def _save_sets(parent):
665
}
666
if parent.restore is not None:
667
dat["img_restore"] = parent.stack_filtered
668
- np.save(base + "_seg.npy", dat)
669
else:
670
dat = {
671
"outlines":
@@ -706,7 +705,10 @@ def _save_sets(parent):
706
705
707
708
+ try:
709
np.save(base + "_seg.npy", dat)
710
+ print("GUI_INFO: %d ROIs saved to %s" % (parent.ncells, base + "_seg.npy"))
711
+ except Exception as e:
712
+ print(f"ERROR: {e}")
713
del dat
714
#print(parent.point_sets)
- print("GUI_INFO: %d ROIs saved to %s" % (parent.ncells, base + "_seg.npy"))
0 commit comments