私信 访问主页
First, thanks a lot for also offering a low-level API in addition to the high-level one.
In my case I m making a small validation tool which validates a directory/file based storage format of ours. Among the things the tool has to do is to verify some constraints on HDF5 files (data type, dimensionality, size of datasets and attributes). In doing this, it s important that I can query the exact HDF5 type of a dataset or attribute, since we have tools in C/C that also must read these files, and they are more rigid than h5py, so the tool can t just inspect the numpy dtype and call it a day, but must know the underlying type.
For datasets I was able to use data_set.id.get_type() to get the low-level type for a high-level Dataset, and compare that to constants in h5t. But for attributes, I still haven t found a public API way to go from an attribute on a high-level Dataset, to a AttrID on which I could call get_type to get the low-level type.
I may have missed something, but if it s not possible, it would be great if it could be added. Perhaps as a new type of query method on AttributeManager?
该提问来源于开源项目 h5py/h5py
点赞 写回答 收藏 复制链接分享 删除 再等等 结题 再想想 4条回答私信 访问主页
私信 访问主页
Alright, I might have a go at it. It s been a while since I last looked at it.
点赞 评论 复制链接分享私信 访问主页
If you can provide a PR adding this, I d be willing to look at it.
点赞 评论 复制链接分享私信 访问主页
What I ve found, through looking at AttributeManager.__getitem__, that I think might work, is something like attr h5a.open(data_set.id, data_set._e(name)), which would give me the AttrID. But then I d have to use the private CommonStateObject._e metod to encode the name properly :(
I would really like something like AttributeManager.attr_id, such that I could do data_set.attrs.attr_id(name).
点赞 评论 复制链接分享 提交 再想想 采纳 为你推荐 将函数的数据放入刀片,laravel laravelphp 2个回答使用mysql和codeigniter进行奇怪的插入行为 codeignitermysqlphp 1个回答jquery中的多维数组 javascriptphpjquery 1个回答PHP / jQuery clone - 从表单获取变量并使用php发送电子邮件 htmlphpjquery 1个回答EasyUI 下拉框,两个下拉框怎么通过一个JS方法取值 easyui 2个回答 换一换 点击登录 提问题 欢迎建议意见 . 如何写高质量提问和回答? 采纳榜7天 被采纳次数本文链接: http://mattrid.immuno-online.com/view-772276.html