We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 313e8bf commit e8dccc4Copy full SHA for e8dccc4
dimspy/portals/hdf5_portal.py
@@ -190,7 +190,7 @@ def load_peak_matrix_from_hdf5(filename):
190
191
flgs = [(fn, dset.attrs[fn]) for fn in dset.attrs['flag_names']]
192
flgs = [(fn, _unpackBool(fv) if fv.dtype.kind == 'u' and np.all(fv[:len(_BOOL_HEADERS)] == _BOOL_HEADERS) else \
193
- _unpackMeta(fv) if fv.dtype.kind == 's' and fv[-1] == '\xFF' else fv) for fn,fv in flgs]
+ _unpackMeta(fv) if fv.dtype.kind == 'S' and fv[-1] == '\xFF' else fv) for fn,fv in flgs]
194
alst = [(attr, np.array(f[attr]).astype(f[attr].attrs['dtype'])) for attr in attl]
195
196
pm = PeakMatrix(pids, ptgs, alst)
0 commit comments