BAMWelDX / weldx-widgets

This project provides widgets to perform common tasks using the weldx library
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

Numpy 2 incompatiblity #137

Open marscher opened 1 month ago

marscher commented 1 month ago

A new printing behaviour has been enabled in Numpy 2.0 which leads to errors in the edit widget.

[np.int64(42), np.int64(23), np.int64(12)]

used to be

[42, 23, 12]

As these strings are interpreted using eval (which should probably also avoided), the creation of objects fails (There is no numpy in the namespace).

Also there is some trouble with Sympy, which cannot handle the printing behaviour which includes the complete types.

CagtayFabry commented 4 weeks ago

Can you link to the code where this happens? @marscher

marscher commented 3 weeks ago

fixed by #139