4000-520-616
欢迎来到免疫在线!(蚂蚁淘生物旗下平台)  请登录 |  免费注册 |  询价篮
主营:原厂直采,平行进口,授权代理(蚂蚁淘为您服务)
咨询热线电话
4000-520-616
当前位置: 首页 > 新闻动态 >
新闻详情
h5a.AttrID for an attribute through the high-level API-开源...
来自 : CSDN技术社区 发布时间:2021-03-25

私信 访问主页

\"weixin_39887531\" weixin_39887531 2020-12-06 19:34 首页 开源项目 h5a.AttrID for an attribute through the high-level API

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条回答

私信 访问主页

\"weixin_39637924\" weixin_39637924 3月前 1278 would add ds.attrs.get_id(name) 点赞 评论 复制链接分享

私信 访问主页

\"weixin_39887531\" weixin_39887531 3月前

Alright, I might have a go at it. It s been a while since I last looked at it.

点赞 评论 复制链接分享

私信 访问主页

\"weixin_39614675\" weixin_39614675 3月前

If you can provide a PR adding this, I d be willing to look at it.

点赞 评论 复制链接分享

私信 访问主页

\"weixin_39887531\" weixin_39887531 3月前

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天 被采纳次数 ProfSnail 21 coagenth 16 幻灰龙 164 qq_34124780 145 Jack_Yang(数据分析及可视化) 126 规则边缘 117 GoCityPass新加坡曼谷通票 118 天际的海浪 99 cpp_learner 910 我不喜欢这个世界 9 加急问题 100 unity 设置Animation的culling type 导致游戏崩溃 75 数据库只有myd文件没有frm,myi文件,怎么打开呢 55 微服务框架,springboot启动异常 51 利用Adams联合matlab仿真求运动学反解问题 50 labview使用datasocket与c/c#程序的通信 50 已知地图GPS坐标点A和坐标点B,获取A点往B点直线走一定距离的坐标点经纬度? 50 在不import任何东西并且限制交换次数的情况下做HeapSort和MergeSort?

本文链接: http://mattrid.immuno-online.com/view-772276.html

发布于 : 2021-03-25 阅读(0)