Commit 099cd89a authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

Give explisit h5file mode

parent 26258594
Pipeline #3186 passed with stage
in 42 seconds
......@@ -24,7 +24,7 @@ def get_image(data, metadata):
image = np.loadtxt(io.BytesIO(data), delimiter=delimiter)
elif typ == "h5":
buf = io.BytesIO(data)
h5file = h5py.File(buf)
h5file = h5py.File(buf, 'r')
image = h5file["ndarray"][()]
else:
raise ValueError("Unknown extension: " + typ)
......
Supports Markdown
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