Skip to content

Commit

Permalink
Use scipy==1.11.4 to fix crash on aligning step in Docker containers …
Browse files Browse the repository at this point in the history
…for scipy==1.12.0
  • Loading branch information
AlexeyPechnikov committed Feb 17, 2024
1 parent 8de04b0 commit 13c62b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pygmtsar/pygmtsar/Stack_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def _offset2shift(self, xyz, rmax, amax, method='linear'):
azis = np.arange(4/2, amax+4/2, 4)
grid_r, grid_a = np.meshgrid(rngs, azis)

# crashes in Docker containers on Türkiye Earthquakes for scipy=1.12.0
grid = griddata((xyz[:,0], xyz[:,1]), xyz[:,2], (grid_r, grid_a), method=method)
da = xr.DataArray(np.flipud(grid), coords={'y': azis, 'x': rngs}, name='z')
return da
Expand Down
2 changes: 1 addition & 1 deletion pygmtsar/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def get_version():
'dask_image',
'joblib',
'tqdm',
'scipy>=1.12.0',
'scipy==1.11.4',
'shapely>=2.0.2',
'scikit-learn',
'xmltodict',
Expand Down

0 comments on commit 13c62b4

Please sign in to comment.