Skip to content

Commit

Permalink
Fix table reading in image_labeling (ref #64 #112)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Jul 21, 2022
1 parent d5ed1c5 commit acf7a88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fractal/tasks/image_labeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit acf7a88

Please sign in to comment.