Skip to content

Commit e8dccc4

Browse files
committed
fix hdf5 export metadata data size too large error
1 parent 313e8bf commit e8dccc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dimspy/portals/hdf5_portal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def load_peak_matrix_from_hdf5(filename):
190190

191191
flgs = [(fn, dset.attrs[fn]) for fn in dset.attrs['flag_names']]
192192
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]
193+
_unpackMeta(fv) if fv.dtype.kind == 'S' and fv[-1] == '\xFF' else fv) for fn,fv in flgs]
194194
alst = [(attr, np.array(f[attr]).astype(f[attr].attrs['dtype'])) for attr in attl]
195195

196196
pm = PeakMatrix(pids, ptgs, alst)

0 commit comments

Comments
 (0)