giotto-ai / pyflagser

Python bindings and API for the flagser C++ library (https://github.com/luetge/flagser).
Other
13 stars 15 forks source link

Fix bugs affecting flag_matrix with a non float dtype #30

Closed gtauzin closed 4 years ago

gtauzin commented 4 years ago

What does this implement/fix? Explain your changes.

To isolate diagonal elements a mask is created. This masks was relying on the diagonal elements being set to nan. However, if the dtype is non float, this creates a bug.