I'm having a problem using H5Aopen_by_name with a group name. I'm using
HDF5 1.8.16.
Doesn't work:
auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns 0
I was able to reproduce this and entered bug HDFFV-9680 for this issue.
H5Aread worked but H5Awrite failed. Both work if using H5Aopen_by_name(id, “.”, ….).
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] On Behalf Of David
Sent: Tuesday, February 09, 2016 1:54 PM
To: HDF Users Discussion List
Subject: [Hdf-forum] H5Aopen_by_name bug
I'm having a problem using H5Aopen_by_name with a group name. I'm using HDF5 1.8.16.
Doesn't work:
auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns 0
*From:* Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.org] *On
Behalf Of *David
*Sent:* Tuesday, February 09, 2016 1:54 PM
*To:* HDF Users Discussion List
*Subject:* [Hdf-forum] H5Aopen_by_name bug
I'm having a problem using H5Aopen_by_name with a group name. I'm using
HDF5 1.8.16.
Doesn't work:
auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT,
H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns 0
Our bug tracking system is not open to the public, but feel free to contact the helpdesk (help@hdfgroup.org<mailto:help@hdfgroup.org>) if you ever want to check on the status of a bug.
-Barbara
···
From: Hdf-forum [mailto:hdf-forum-bounces@lists.hdfgroup.on Behalf Of David
Sent: Thursday, February 11, 2016 11:25 AM
To: HDF Users Discussion List
Subject: Re: [Hdf-forum] H5Aopen_by_name bug
Thanks. Is there a way I can follow this in your bug tracker (I can't find it) so I can patch my lib when a solution is found?
I was able to reproduce this and entered bug HDFFV-9680 for this issue.
H5Aread worked but H5Awrite failed. Both work if using H5Aopen_by_name(id, “.”, ….).
I'm having a problem using H5Aopen_by_name with a group name. I'm using HDF5 1.8.16.
Doesn't work:
auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns 0
Unfortunately, our bug tracker is not open at this point. We are working on changing this after we move HDF5 to Git and to the new versions of Atlassian tools (in progress). I will update FORUM when HDF5 JIRA project becomes public.
Once again, thank you for your patience.
Elena
···
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Elena Pourmal The HDF Group http://hdfgroup.org
1800 So. Oak St., Suite 203, Champaign IL 61820
217.531.6112
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I was able to reproduce this and entered bug HDFFV-9680 for this issue.
H5Aread worked but H5Awrite failed. Both work if using H5Aopen_by_name(id, “.”, ….).
I'm having a problem using H5Aopen_by_name with a group name. I'm using HDF5 1.8.16.
Doesn't work:
auto aid = H5::H5Aopen_by_name(file_id, "g1", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns -1
Works:
auto group_id = H5::H5Gopen(file_id, "g1", H5::H5P_DEFAULT);
auto aid = H5::H5Aopen_by_name(group_id, ".", "a1", H5::H5P_DEFAULT, H5::H5P_DEFAULT);
int v = 6;
auto r = H5::H5Awrite(aid, type_id, &v); // returns 0