Attributes

class exdir.core.Attribute(parent, mode, file, path=None)[source]

Bases: object

The attribute object is a dictionary-like object that is used to access the attributes stored in the attributes.yaml file for a given Exdir Object.

The Attribute object should not be created, but retrieved by accessing the .attrs property of any Exdir Object, such as a Dataset, Group or File.

property filename
Returns

Return type

The filename of the attributes.yaml file.

items()[source]
Returns

Return type

a new view of the Attribute’s items.

keys()[source]
Returns

Return type

a new view of the Attribute’s keys.

to_dict()[source]

Convert the Attribute into a standard Python dictionary.

update(value)[source]

Update the Attribute with the key/value pairs from value, overwriting existing keys.

This function accepts either another Attribute object, a dictionary object or an iterable of key/value pairs

values()[source]
Returns

Return type

a new view of the Attribute’s values.