We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 246a06c commit 19c44f5Copy full SHA for 19c44f5
1 file changed
napari_cellseg3d/utils.py
@@ -206,16 +206,16 @@ def sphericity_axis(semi_major, semi_minor):
206
/ (a + (b**2) / root * np.log((a + root) / b))
207
)
208
except ZeroDivisionError:
209
- LOGGER.debug(
210
- "Zero division in sphericity calculation was replaced by None"
211
- )
+ # LOGGER.debug(
+ # "Zero division in sphericity calculation was replaced by None"
+ # )
212
result = None
213
except ValueError as e:
214
LOGGER.warning(f"Error encountered in calculation : {e}")
215
result = "Error in calculation"
216
217
if math.isnan(result):
218
- LOGGER.debug("NaN in sphericity calculation was replaced by None")
+ # LOGGER.debug("NaN in sphericity calculation was replaced by None")
219
220
221
return result
0 commit comments