fatiando / harmonica

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

Fix broken ICGEM file loader test #457

Closed leouieda closed 6 months ago

leouieda commented 6 months ago

The test was looking for a UserWarning with specific text that was changed in numpy. Fix it by making a much less specific regex and that will be compatible with both versions. Also fix a FutureWarning about accessing xarray.Dataset dimension sizes (should use .sizes instead of .dims).

leouieda commented 6 months ago

Merging this in since it's blocking all other PRs.

santisoler commented 6 months ago

Thanks @leouieda!