From 37181f33fcda96cbcfe6b00537a1a0fa0523aa92 Mon Sep 17 00:00:00 2001 From: Christopher Rhodes <christopher.rhodes@embl.de> Date: Fri, 20 Oct 2023 10:51:00 +0200 Subject: [PATCH] Lifted assertions on z-stack and monochromicity --- extensions/chaeo/products.py | 2 -- extensions/chaeo/zmask.py | 1 - 2 files changed, 3 deletions(-) diff --git a/extensions/chaeo/products.py b/extensions/chaeo/products.py index d01ceb15..58596492 100644 --- a/extensions/chaeo/products.py +++ b/extensions/chaeo/products.py @@ -99,8 +99,6 @@ def export_patches_from_zstack( focus_metric: str = None, **kwargs ): - # assert stack.chroma == 1, 'Expecting monochromatic image data' - assert stack.nz > 1, 'Expecting z-stack' exported = [] for mi in zmask_meta: diff --git a/extensions/chaeo/zmask.py b/extensions/chaeo/zmask.py index 8d10c6e9..cc04a728 100644 --- a/extensions/chaeo/zmask.py +++ b/extensions/chaeo/zmask.py @@ -39,7 +39,6 @@ def build_zmask_from_object_mask( # validate inputs assert zstack.chroma == 1 - assert zstack.nz > 1 assert mask_type in ('contours', 'boxes'), mask_type assert obmask.is_mask() assert obmask.chroma == 1 -- GitLab