diff --git a/docs/_static/api.yaml b/docs/_static/api.yaml index 473436c..d0778b5 100644 --- a/docs/_static/api.yaml +++ b/docs/_static/api.yaml @@ -385,6 +385,8 @@ components: type: integer cset: type: integer + strpad: + type: integer vlen: type: boolean tag: diff --git a/h5grove/models.py b/h5grove/models.py index 327a8ff..1584509 100644 --- a/h5grove/models.py +++ b/h5grove/models.py @@ -31,6 +31,7 @@ class LinkResolution(str, Enum): "order": int, # int, float, bitfield "sign": int, # int "cset": int, # string + "strpad": int, # string "vlen": bool, # string "tag": str, # opaque "dims": Tuple[int, ...], # array diff --git a/h5grove/utils.py b/h5grove/utils.py index 8440ad4..cc08e8d 100644 --- a/h5grove/utils.py +++ b/h5grove/utils.py @@ -151,6 +151,7 @@ def get_type_metadata(type_id: h5py.h5t.TypeID) -> TypeMetadata: return { **base_metadata, "cset": type_id.get_cset(), + "strpad": type_id.get_strpad(), "vlen": type_id.is_variable_str(), } diff --git a/test/base_test.py b/test/base_test.py index 1a6c5d2..525006f 100644 --- a/test/base_test.py +++ b/test/base_test.py @@ -206,6 +206,7 @@ def test_meta_on_compound_dataset(self, server): "dtype": "|S10", "size": 10, "cset": 0, + "strpad": 1, "vlen": False, }, "weight": {"class": 1, "dtype": "