Open mdealencar opened 2 months ago
Exact the same output in Linux-64. Same package versions.
numpy
types are not supported since comparison of them do not return bool
(which can be compared using is
/is not
operators) but numpy.bool_
, which is different and require rewriting all of boolean comparisons to use ==
/!=
which I do not want, it's ugly, much easier to use regular float
s for coordinates instead
Thanks for the reply. I think the biggest issue is it apparently working with numpy floats and then behaving unpredictably with no warnings. This bug cost me a few hours to figure out.
Is some automatic type casting something you would consider?
Analogous error observed for
point_in_polygon()
.The Point instances return True for equality check.
To reproduce: (Python 3.10.14, numpy 1.26.4, , ground 9.0.0, orient 7.0.0) (Windows 10 64bit)