From 19c44f5e0c1644987e950729b2074eae35e15380 Mon Sep 17 00:00:00 2001 From: C-Achard Date: Tue, 12 Dec 2023 12:03:52 +0100 Subject: [PATCH] Update utils.py --- napari_cellseg3d/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/napari_cellseg3d/utils.py b/napari_cellseg3d/utils.py index 6e383b3d..b340f859 100644 --- a/napari_cellseg3d/utils.py +++ b/napari_cellseg3d/utils.py @@ -206,16 +206,16 @@ def sphericity_axis(semi_major, semi_minor): / (a + (b**2) / root * np.log((a + root) / b)) ) except ZeroDivisionError: - LOGGER.debug( - "Zero division in sphericity calculation was replaced by None" - ) + # LOGGER.debug( + # "Zero division in sphericity calculation was replaced by None" + # ) result = None except ValueError as e: LOGGER.warning(f"Error encountered in calculation : {e}") result = "Error in calculation" if math.isnan(result): - LOGGER.debug("NaN in sphericity calculation was replaced by None") + # LOGGER.debug("NaN in sphericity calculation was replaced by None") result = None return result