thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
413 stars 146 forks source link

python/ports.py: replace deprecated "np.int" with "int". #107

Closed biergaizi closed 1 year ago

biergaizi commented 1 year ago

Accroding to NumPy's development team, "for a long time, np.int has been an alias of the builtin int. This is repeatedly a cause of confusion for newcomers, and existed mainly for historic reasons."

This and many other aliases have been deprecated since NumPy v1.20.0, and at this point they've been completely removed. Replace "np.int" with "int" allows ports.py to run again.

thliebig commented 1 year ago

Yeah I had found and fixed this too. But forgot to commit and push it... Now it's yours ;)