Skip to content

Commit 32513c7

Browse files
committed
guess Z dim is 0 instead of argmin of dims
1 parent 4fbdc7c commit 32513c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cellpose/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ def imread_3D(img_file):
254254
if img.ndim == 3:
255255
channel_axis = None
256256
# guess at z axis:
257-
z_axis = np.argmin(dimension_lengths)
257+
z_axis = 0
258258

259259
elif img.ndim == 4:
260260
# guess at channel axis:

0 commit comments

Comments
 (0)