Skip Menu |

This queue is for tickets about the PDL-IO-HDF5 CPAN distribution.

Report information
The Basics
Id: 67634
Status: resolved
Priority: 0/
Queue: PDL-IO-HDF5

People
Owner: chm [...] cpan.org
Requestors: gfu [...] sigmaspace.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.63



Subject: problem to read attribute with Simple Dataspace
Date: Wed, 20 Apr 2011 16:30:52 -0400
To: <bug-PDL-IO-HDF5 [...] rt.cpan.org>
From: Gary Fu <gfu [...] sigmaspace.com>
Hi, The PDL::IO::HDF5 version 0.62 mentions the support of Simple dataspace. However, I have a attribute with Simple Dataspace as below: GROUP "/" { ATTRIBUTE "Distributor" { DATATYPE H5T_STRING { STRSIZE 5; STRPAD H5T_STR_NULLTERM; CSET H5T_CSET_ASCII; CTYPE H5T_C_S1; } DATASPACE SIMPLE { ( 1, 1 ) / ( 1, 1 ) } DATA { (0,0): "arch" } } However, when I tried to read the attribute value with 'attrGet', I got the following warning message and no data retrived. Warning: Non-Scalar Dataspace for Attribute name 'Distributor' Dataspace in PDL::IO::HDF5::Group:get at tst_HDF5.pl line 17 Is this a bug or a not supported feature yet ? Thanks, Gary
Subject: Re: [rt.cpan.org #67634] problem to read attribute with Simple Dataspace
Date: Thu, 21 Apr 2011 10:59:04 -0500
To: bug-PDL-IO-HDF5 [...] rt.cpan.org
From: John Cerney <j-cerney1 [...] raytheon.com>
Simple non-scalar attribute support was added in version 0.6, but it looks like it only works with dataset attributes. The test case t/attribPDL.t also only checks for dataset attributes. Your case looks like group-level attributes. This is a bug. I will see if I can get a quick fix out there in the next few days. -John On 4/20/2011 3:41 PM, Gary Fu via RT wrote: Show quoted text
> Wed Apr 20 16:41:17 2011: Request 67634 was acted upon. > Transaction: Ticket created by gfu@sigmaspace.com > Queue: PDL-IO-HDF5 > Subject: problem to read attribute with Simple Dataspace > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: gfu@sigmaspace.com > Status: new > Ticket<URL: https://rt.cpan.org/Ticket/Display.html?id=67634> > > > Hi, > > The PDL::IO::HDF5 version 0.62 mentions the support of Simple > dataspace. However, I have a attribute with Simple Dataspace as below: > > GROUP "/" { > ATTRIBUTE "Distributor" { > DATATYPE H5T_STRING { > STRSIZE 5; > STRPAD H5T_STR_NULLTERM; > CSET H5T_CSET_ASCII; > CTYPE H5T_C_S1; > } > DATASPACE SIMPLE { ( 1, 1 ) / ( 1, 1 ) } > DATA { > (0,0): "arch" > } > } > > However, when I tried to read the attribute value with 'attrGet', I got > the following warning message and no data retrived. > > Warning: Non-Scalar Dataspace for Attribute name 'Distributor' Dataspace > in PDL::IO::HDF5::Group:get > at tst_HDF5.pl line 17 > > Is this a bug or a not supported feature yet ? > > Thanks, > Gary > > >
RT-Send-CC: j-cerney1 [...] raytheon.com
Was this problem ever resolved?  I would like to have a working CPAN
release by end of Dec, please reply ASAP.  Thanks, Chris.
Subject: Re: [rt.cpan.org #67634] problem to read attribute with Simple Dataspace
Date: Tue, 26 Nov 2013 09:58:06 -0500
To: <bug-PDL-IO-HDF5 [...] rt.cpan.org>
From: Gary Fu <gfu [...] sigmaspace.com>
On 11/26/13 09:10, Chris Marshall via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=67634 > > > Was this problem ever resolved? I would like to have a working CPAN > release by end of Dec, please reply ASAP. Thanks, Chris. >
Hi Chris, Sorry, it has been a while and I don't remember any follow up. However, I just tried some tests and it seems to work without problem. Thanks, Gary
Thanks for the quick reply.  Closing the ticket now.