BiaPyX / BiaPy

Open source Python library for building bioimage analysis pipelines
https://BiaPyX.github.io
MIT License
116 stars 28 forks source link

Prevent NaN values of the Jaccard index #1

Closed iarganda closed 5 years ago

iarganda commented 5 years ago

You should check that the denominator is not zero on this line:

https://github.com/danifranco/experimentosTFM/blob/028735149a5f6bd84535b9a958a0210968817b6d/FIBSEM_EPFL/scripts/metrics.py#L75