bsread cannot handle object arrays

This commit is contained in:
augustin_s committed 2025-11-03 22:10:45 +01:00
1 parent a69b795450
commit 17a739263d
1 file changed
+2 -2
+2 -2
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