bsread cannot handle object arrays
This commit is contained in:
1 parent
a69b795450
commit
17a739263d
1 file changed
+2
-2
@@ -31,8 +31,8 @@ def list_to_array(x):
|
||||
# let numpy figure out the dtype
|
||||
return np.array(x)
|
||||
except ValueError:
|
||||
# the above fails for ragged lists, which need to be object arrays
|
||||
return np.array(x, dtype=object)
|
||||
# the above fails for ragged lists but bsread also cannot handle object arrays
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user