Skip to content

Commit 77130b3

Browse files
committed
fix for newest numpy
1 parent d79cbd9 commit 77130b3

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

pytesdaq/io/hdf5.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,11 +1402,11 @@ def _extract_metadata(self, attributes):
14021402
"""
14031403

14041404
metadata_dict = dict()
1405-
for key,value in attributes.items():
1405+
for key, value in attributes.items():
14061406
if isinstance(value, bytes):
14071407
value = value.decode()
14081408
elif isinstance(value, np.ndarray):
1409-
if value.dtype == np.object:
1409+
if value.dtype == object:
14101410
value = value.astype(str)
14111411
# a few particular cases
14121412
if key == 'run_purpose':

setup.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@
2222
},
2323
packages = find_packages(),
2424
install_requires=[
25-
'PyQt5',
26-
'matplotlib',
27-
'lakeshore',
28-
'pandas',
29-
'nidaqmx',
30-
'pyvisa',
31-
'paramiko>=3.2.0',
32-
'walrus',
33-
'h5py',
34-
'qetpy>=1.6.3',
35-
'scipy',
36-
'seaborn',
37-
'astropy',
38-
'lmfit',
25+
'PyQt5',
26+
'matplotlib',
27+
'lakeshore',
28+
'pandas',
29+
'nidaqmx',
30+
'pyvisa',
31+
'paramiko>=3.2.0',
32+
'walrus',
33+
'h5py',
34+
'qetpy>=1.6.3',
35+
'scipy',
36+
'seaborn',
37+
'astropy',
38+
'lmfit',
39+
'tables'
3940
],
4041
)

0 commit comments

Comments
 (0)