Open tbaudier opened 1 month ago
I'm testing whether this works in both cases. I can't just drop numpy 1.x any time soon :)
Thank you so much for the pull request though! Even if it doesn't work in both cases, I can simply make the test conditional.
Debug https://github.com/wolph/numpy-stl/issues/223
With numpy>=2.0.0, tuple(vectors[0]) returns the type of the number (eg: np.float64()) instead of the number.
Adding .tolist() to the vector converts the vector to a python list and could be printed.
Work also with numpy <2.0.0