Skip to content

Commit 19c44f5

Browse files
committed
Update utils.py
1 parent 246a06c commit 19c44f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

napari_cellseg3d/utils.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,16 @@ def sphericity_axis(semi_major, semi_minor):
206206
/ (a + (b**2) / root * np.log((a + root) / b))
207207
)
208208
except ZeroDivisionError:
209-
LOGGER.debug(
210-
"Zero division in sphericity calculation was replaced by None"
211-
)
209+
# LOGGER.debug(
210+
# "Zero division in sphericity calculation was replaced by None"
211+
# )
212212
result = None
213213
except ValueError as e:
214214
LOGGER.warning(f"Error encountered in calculation : {e}")
215215
result = "Error in calculation"
216216

217217
if math.isnan(result):
218-
LOGGER.debug("NaN in sphericity calculation was replaced by None")
218+
# LOGGER.debug("NaN in sphericity calculation was replaced by None")
219219
result = None
220220

221221
return result

0 commit comments

Comments
 (0)