Skip to content

Commit 19adadf

Browse files
committed
[numpy] fix
1 parent a991dd3 commit 19adadf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nixio/block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def create_data_frame(self, name="", type_="", col_dict=None,
347347
if col_dict is not None:
348348
for nam, dt in col_dict.items():
349349
if isclass(dt):
350-
if issubclass(dt, str) or issubclass(dt, np.string_):
350+
if issubclass(dt, (str, np.bytes_)):
351351
col_dict[nam] = util.vlen_str_dtype
352352
if 'U' in str(dt) or dt == np.bytes_:
353353
col_dict[nam] = util.vlen_str_dtype

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def get_wheel_data():
7878
tests_require=['pytest', 'scipy', 'pillow', 'matplotlib'],
7979
test_suite='pytest',
8080
setup_requires=['pytest-runner'],
81-
install_requires=['numpy<2.0', 'h5py', 'six', 'enum34;python_version<"3.4"'],
81+
install_requires=['numpy', 'h5py', 'six', 'enum34;python_version<"3.4"'],
8282
package_data={'nixio': [license_text, description_text]},
8383
include_package_data=True,
8484
zip_safe=False,

0 commit comments

Comments
 (0)