From acf7a884cd27e32e799353dec85051984de8854d Mon Sep 17 00:00:00 2001 From: Tommaso Comparin <3862206+tcompa@users.noreply.github.com> Date: Thu, 21 Jul 2022 10:38:54 +0000 Subject: [PATCH] Fix table reading in image_labeling (ref #64 #112) --- fractal/tasks/image_labeling.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fractal/tasks/image_labeling.py b/fractal/tasks/image_labeling.py index df68ac5c..01da2de7 100644 --- a/fractal/tasks/image_labeling.py +++ b/fractal/tasks/image_labeling.py @@ -129,9 +129,9 @@ def image_labeling( if anisotropy is None: adata = ad.read_zarr(f"{zarrurl}tables/FOV_ROI_table") - pixel_size_x = adata["pixel_size_x"][0] - pixel_size_y = adata["pixel_size_y"][0] - pixel_size_z = adata["pixel_size_z"][0] + pixel_size_x = adata[:, "pixel_size_x"].X[0, 0] + pixel_size_y = adata[:, "pixel_size_y"].X[0, 0] + pixel_size_z = adata[:, "pixel_size_z"].X[0, 0] if not np.allclose(pixel_size_x, pixel_size_y): raise Exception( "ERROR: XY anisotropy detected\n"