Commit 6e7e156f authored by Martino Bertoni's avatar Martino Bertoni 🌋
Browse files

added conversion from bytes to string

parent e305d708
Pipeline #2459 failed with stages
in 7 minutes and 38 seconds
......@@ -473,6 +473,8 @@ class DataSignature(object):
Works fast with bisect, but should return None if the key is not in
keys (ideally, keep a set to do this)."""
if isinstance(key, bytes):
key = key.decode("utf-8")
if isinstance(key, slice):
with h5py.File(self.data_path, 'r') as hf:
return hf[self.ds_data][key]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment