HDFGroup / h5pyd

h5py distributed - Python client library for HDF Rest API
Other
109 stars 39 forks source link

Support correct settings of vlen float arrays #194

Closed jreadey closed 1 month ago

jreadey commented 1 month ago

With vlen datatypes, writing to the dataset would raise an error if the vlen types were uniform. i.e., an array like:

[ndarray[1, 2], ndarray[3,4], ndarray[5,6]] would be processed as [[1,2],[3,4],[5,6]] (a shape of (3,2) during the arrayToBytes conversion rather than (3), causing a broadcast error. This PR fixes that so the data can be written to the expected shape.