Skip to content

Commit 9f87acd

Browse files
authored
Merge pull request #96 from equinor/numpy2
Remove numpy-1.x dependency restriction as zfpy and pyzgy are np-2.x compatible
2 parents 56a2657 + fb3209c commit 9f87acd

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ matplotlib
33
pytest
44
mock
55
fonttools>=4.43.0 # not directly required, pinned by Snyk to avoid a vulnerability
6-
numpy>=1.22.2,<2.0.0 # not directly required, pinned by Snyk to avoid a vulnerability
6+
numpy>=1.22.2 # not directly required, pinned by Snyk to avoid a vulnerability

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
numpy>=1.20,<2.0.0 # not directly required, pinned by Snyk to avoid a vulnerability
1+
numpy>=1.20 # not directly required, pinned by Snyk to avoid a vulnerability
22
segyio
33
psutil
44
zfpy

seismic_zfp/headers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ def get_zgy_header_arrays(self):
143143
easting_inc_xl = (corners[2][0] - corners[0][0]) / (self.seismicfile.n_xlines - 1)
144144
northing_inc_xl = (corners[2][1] - corners[0][1]) / (self.seismicfile.n_xlines - 1)
145145

146-
cdp_x = np.round_(100.0 * (corners[0][0]
146+
cdp_x = np.round(100.0 * (corners[0][0]
147147
+ iline_idx * easting_inc_il
148148
+ xline_idx * easting_inc_xl)
149149
).astype(np.intc)
150-
cdp_y = np.round_(100.0 * (corners[0][1]
150+
cdp_y = np.round(100.0 * (corners[0][1]
151151
+ iline_idx * northing_inc_il
152152
+ xline_idx * northing_inc_xl)
153153
).astype(np.intc)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def get_long_description():
2424
license='LGPL-3.0',
2525

2626
use_scm_version=True,
27-
install_requires=['numpy>=1.20,<2.0.0', 'segyio', 'zfpy', 'psutil', 'click'],
27+
install_requires=['numpy', 'segyio', 'zfpy', 'psutil', 'click'],
2828
extras_require={
2929
'zgy': ['pyzgy'],
3030
'vds': ['pyvds'],

0 commit comments

Comments
 (0)