h5py 是否支持可变长度数据类型?
Are variable length datatypes supported by h5py?
我对在 the h5py FAQ 上看到的内容感到有点困惑:具体来说,声称不支持可变长度数据类型。
奇怪的是,当我升级到最新版本 (2.5.0) 时,它们似乎是,即对于包含可变长度数组的复合数据类型:
struct {
"mass" +0 native double
"eta" +8 native double
"vertices" +16 variable length of
struct {
"mass" +0 native double
"parx" +8 native double
} 16 bytes
} 32 bytes
我访问所有条目都没有问题。那么FAQ指的是什么?
常见问题解答已过时是最新的! Support for variable length datatypes was added in 2.3. There is an example on how to use them in the "Special Types" section of the manual.
编辑: 我更新了常见问题解答,所以现在是正确的; h5py 确实支持任意类型的 VLEN。
我对在 the h5py FAQ 上看到的内容感到有点困惑:具体来说,声称不支持可变长度数据类型。
奇怪的是,当我升级到最新版本 (2.5.0) 时,它们似乎是,即对于包含可变长度数组的复合数据类型:
struct {
"mass" +0 native double
"eta" +8 native double
"vertices" +16 variable length of
struct {
"mass" +0 native double
"parx" +8 native double
} 16 bytes
} 32 bytes
我访问所有条目都没有问题。那么FAQ指的是什么?
常见问题解答已过时是最新的! Support for variable length datatypes was added in 2.3. There is an example on how to use them in the "Special Types" section of the manual.
编辑: 我更新了常见问题解答,所以现在是正确的; h5py 确实支持任意类型的 VLEN。