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 b139dec commit b3c21c3Copy full SHA for b3c21c3
nixio/hdf5/h5dataset.py
@@ -61,7 +61,7 @@ def read_data(self, slc=None):
61
# Let's change it to IndexError
62
raise IndexError(te_exc)
63
if data.dtype == util.vlen_str_dtype:
64
- data = np.array([ensure_str(s) for s in data], dtype=util.vlen_str_dtype)
+ data = np.reshape(np.array(list(map(ensure_str, data.ravel()))), data.shape)
65
elif data.dtype.fields:
66
data = self._convert_string_cols(data)
67
return data
0 commit comments