From 7f4b9eab620fafd35660df86e10992c2a779a663 Mon Sep 17 00:00:00 2001 From: Ji Hoon Jeong Date: Fri, 1 Nov 2024 20:14:10 -0400 Subject: [PATCH] file selection cancel logic added --- cellpose/gui/io.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cellpose/gui/io.py b/cellpose/gui/io.py index bacb10ea..7f8d9765 100644 --- a/cellpose/gui/io.py +++ b/cellpose/gui/io.py @@ -107,6 +107,8 @@ def _load_image(parent, filename=None, load_seg=True, load_3D=False): if filename is None: name = QFileDialog.getOpenFileName(parent, "Load image") filename = name[0] + if filename == "": + return manual_file = os.path.splitext(filename)[0] + "_seg.npy" load_mask = False if load_seg: