jayunruh / napari_jroitools

Napari plugins for reading and writing ImageJ roi files and creating image profiles.
Other
4 stars 2 forks source link

inifinite slope in getParallelCoords #1

Closed cwood1967 closed 3 years ago

cwood1967 commented 3 years ago

In the module profiler.py, your function getParallelCoords, slope is calculated before checking if coord[2] == coord[0]. This can cause a divide by zero. I move the check for infinite slope up and don't calculate slope if coord[2] == coord[0].

I also added a gitignore to keep stuff like pycache and ide files out of the the repo.