Skip to content

Commit 7c0089e

Browse files
committed
Add workaround for #420
1 parent ee16a45 commit 7c0089e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

fractal_tasks_core/lib_zattrs_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ def extract_zyx_pixel_sizes(zattrs_path: str, level: int = 0) -> List[float]:
6161
raise Exception(
6262
f"ERROR: pixel_sizes in {zattrs_path} are", pixel_sizes
6363
)
64-
return pixel_sizes
64+
# FIXME: this is a hack to deal with the fact that the
65+
# coordinationTransformation can containa additional entries
66+
# (e.g. scaling for the channels)
67+
# https://github.com/fractal-analytics-platform/fractal-tasks-core/issues/420
68+
return pixel_sizes[-3:]
6569

6670
raise Exception(
6771
"ERROR:"

0 commit comments

Comments
 (0)