numpy-stl icon indicating copy to clipboard operation
numpy-stl copied to clipboard

Debug tuple print of np.float

Open tbaudier opened this issue 5 months ago • 0 comments

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

tbaudier avatar Sep 19 '24 15:09 tbaudier