Skip to content

Commit 6fb288f

Browse files
z-axis=0 in GUI (#1020)
1 parent 166abf1 commit 6fb288f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cellpose/gui/gui.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2431,7 +2431,7 @@ def compute_segmentation(self, custom=False, model_name=None, load_model=True):
24312431
cellprob_threshold=cellprob_threshold,
24322432
flow_threshold=flow_threshold, do_3D=do_3D, niter=niter,
24332433
normalize=normalize_params, stitch_threshold=stitch_threshold,
2434-
progress=self.progress)[:2]
2434+
progress=self.progress, z_axis=0 if self.NZ > 1 else None)[:2]
24352435
except Exception as e:
24362436
print("NET ERROR: %s" % e)
24372437
self.progress.setValue(0)

0 commit comments

Comments
 (0)