fatiando / harmonica

Forward modeling, inversion, and processing gravity and magnetic data
https://www.fatiando.org/harmonica
BSD 3-Clause "New" or "Revised" License
205 stars 66 forks source link

Extend support for Numpy 2.0 #514

Closed santisoler closed 3 weeks ago

santisoler commented 3 weeks ago

Convert Numpy scalars to Python numbers so the outputs of examples that are being compared when running doctests support Numpy>=2.0. Cast points in equivalent source classes to the desired dtype passed as argument.