Skip to content

Commit b7c6ae2

Browse files
author
Lion Krischer
committed
NumPy 2 compatibility.
1 parent ca35668 commit b7c6ae2

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ Landing page for all things **ASDF**: https://seismic-data.org
2424

2525
### Changelog
2626

27+
#### Version 0.8.2 (August 21, 2025)
28+
* Compatibility with NumPy 2.
29+
2730
#### Version 0.8.1 (August 3, 2023)
2831
* Fix a bug with the conda package.
2932

@@ -109,4 +112,4 @@ Landing page for all things **ASDF**: https://seismic-data.org
109112
* Also shipping license file.
110113

111114
#### Version 0.1.1 (March 7, 2017)
112-
* Stable, tagged version.
115+
* Stable, tagged version.

pyasdf/asdf_data_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def _zeropad_ascii_string(self, text):
396396
397397
:param text: The text to be converted.
398398
"""
399-
return np.string_((text + "\x00").encode())
399+
return np.bytes_((text + "\x00").encode())
400400

401401
@property
402402
def _waveform_group(self):

pytest.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ filterwarnings =
44
ignore:.*numpy\.ufunc size changed*:RuntimeWarning
55
ignore:.*the imp module is deprecated in favour of importlib.*:DeprecationWarning
66
ignore:.*pkg_resources is deprecated as an API.*:DeprecationWarning
7-
ignore:.*Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning
7+
ignore:.*Deprecated call to `pkg_resources.declare_namespace.*:DeprecationWarning
8+
ignore:.*The pkg_resources package is slated for removal.*:UserWarning

0 commit comments

Comments
 (0)