bsread cannot handle object arrays
This commit is contained in:
@@ -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