Skip to content

All commited types are interpreted as EnumTypeID #104

@kmuehlbauer

Description

@kmuehlbauer

Currently all committed types are piped through pyfive.h5py.Datatype. There all types are wrapped in EnumTypeID, which currently breaks for non-enum, like Compound.

pyfive/pyfive/h5py.py

Lines 12 to 22 in fefabba

class Datatype:
"""
Provides a minimal instantiation of an h5py DataType
suitable for use with enumerations.
"""
def __init__(self, name, hfile, raw_dtype):
self.id = TypeEnumID(raw_dtype)
path = PurePosixPath(name)
self.name = path.name
self.parent = str(path.parent) if str(path.parent) != '' else '/'
self.file = hfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions