bsread cannot handle object arrays

This commit is contained in:
2025-11-03 22:10:45 +01:00
parent a69b795450
commit 17a739263d

View File

@@ -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