DEcode bytes into str
This commit is contained in:
parent
f85dba2835
commit
7fa98ef084
|
@ -179,7 +179,7 @@ class Result:
|
||||||
"""
|
"""
|
||||||
with h5py.File(self.fname,'r') as f:
|
with h5py.File(self.fname,'r') as f:
|
||||||
try:
|
try:
|
||||||
return f[path].attrs[attr] if h5py3 else f[path].attrs[attr].encode()
|
return f[path].attrs[attr] if h5py3 else f[path].attrs[attr].decode()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue