diff --git a/CHANGELOG.md b/CHANGELOG.md index 2872932..cf76b4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog ## v0.7.8 TBC +### Fixed +- Fix accessing attributes of committed datatype with `my_datafile.attrs`. +- Fix calling `get_attribute_names` method of Module API on committed datatype. ### Changed - Mark optional parameters as such in the TypeScript declarations of the following `H5Module` methods: `open`, `create_dataset`, `create_group`, `create_vlen_str_dataset` and `get_keys_vector`. ## v0.7.7 2024-08-28 diff --git a/src/hdf5_util.cc b/src/hdf5_util.cc index 4bc79ad..3f2b620 100644 --- a/src/hdf5_util.cc +++ b/src/hdf5_util.cc @@ -246,6 +246,10 @@ val get_attribute_names(hid_t loc_id, const std::string& obj_name_string) { ocpl_id = H5Gget_create_plist(obj_id); } + else if (obj_type == H5O_TYPE_NAMED_DATATYPE) + { + ocpl_id = H5Tget_create_plist(obj_id); + } else { ocpl_id = H5Dget_create_plist(obj_id);