Skip to content

Commit

Permalink
Fix for Numpy 2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Sep 25, 2024
1 parent 731ced5 commit 1ce3e75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pygmtsar/pygmtsar/Stack_trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ def trans_block(lats, lons, amin=-np.inf, amax=np.inf, rmin=-np.inf, rmax=np.inf
#print ('borders', borders)

# process the area
lats = np.linspace(dem.lat[0], dem.lat[-1], azi_steps)
lons = np.linspace(dem.lon[0], dem.lon[-1], rng_steps)
lats = np.linspace(dem.lat.values[0], dem.lat.values[-1], azi_steps)
lons = np.linspace(dem.lon.values[0], dem.lon.values[-1], rng_steps)
#print ('lats', lats, 'lons', lons)
#print ('lats.size', lats.size, 'lons.size', lons.size)

Expand Down
2 changes: 1 addition & 1 deletion pygmtsar/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_version():
'pygmtsar': ['data/geoid_egm96_icgem.grd','data/google_colab.sh'],
},
install_requires=['xarray>=2024.1.0',
'numpy<2',
'numpy',
'numba',
'pandas>=2.2',
'geopandas',
Expand Down

0 comments on commit 1ce3e75

Please sign in to comment.