Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000246ILNumerics[All Projects] Bugspublic2017-11-09 12:012017-11-09 12:01
Assigned To 
PlatformOSOS Version
Summary0000246: H5Attribute created with wrong data type
DescriptionCreating an H5Attribute with Int32 data actually writes an attribute of HDF5 type 'FLOAT64' (aka double):

dataset.Attributes.Add(new H5Attribute("attr", 123));

Also, providing the 'baseType' parameter manually to the H5Attribute ctor gives the same result (meaning it doesnt have any effect):

dataset.Attributes.Add(new H5Attribute("attr", 123, H5T.NATIVE_INT32));
Steps To ReproduceUse the following code snippet to reproduce

using (var dsFile = new H5File(@"d:\test.h5"))
  var dataset = new H5Dataset("dataset", ILMath.rand(3, 4));
  dataset.Attributes.Add(new H5Attribute("attr", 123));
  //dataset.Attributes.Add(new H5Attribute("attr", 123, H5T.NATIVE_INT32));
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2017-11-09 12:01 TWawrzik New Issue

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker