Skip to content

Commit acf7a88

Browse files
committed
Fix table reading in image_labeling (ref #64 #112)
1 parent d5ed1c5 commit acf7a88

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fractal/tasks/image_labeling.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ def image_labeling(
129129
if anisotropy is None:
130130

131131
adata = ad.read_zarr(f"{zarrurl}tables/FOV_ROI_table")
132-
pixel_size_x = adata["pixel_size_x"][0]
133-
pixel_size_y = adata["pixel_size_y"][0]
134-
pixel_size_z = adata["pixel_size_z"][0]
132+
pixel_size_x = adata[:, "pixel_size_x"].X[0, 0]
133+
pixel_size_y = adata[:, "pixel_size_y"].X[0, 0]
134+
pixel_size_z = adata[:, "pixel_size_z"].X[0, 0]
135135
if not np.allclose(pixel_size_x, pixel_size_y):
136136
raise Exception(
137137
"ERROR: XY anisotropy detected\n"

0 commit comments

Comments
 (0)