HDF5Attribute

class dolfin.cpp.io.HDF5Attribute(hdf5_file_id, dataset_name)

Bases: object

HDF5Attribute gives access to the attributes of a dataset via set() and get() methods

Constructor

exists()

Check for the existence of an attribute on a dataset

items()

Returns a list of all key and value pairs

keys()

Returns a list of all values

list_attributes()

Get the names of all the attributes on this dataset as a std::vector<std::string>

str()

Overloaded versions

  • str(attribute_name)

    Get the value of the attribute in the HDF5 file as a string representation

  • str()

    Get the names of all the attributes on this dataset

thisown

The membership flag

to_dict()

Return a dict representation (copy) of all data

type_str()

Get the type of the attribute “string”, “float”, “int” “vectorfloat”, “vectorint” or “unsupported”

values()

Returns a list of all values