h5rdmtoolbox.convention.StandardAttribute.get#
- StandardAttribute.get(parent)[source]#
Read the attribute from parent
- Parameters:
parent (
Union[h5py.File,h5py.Group,h5py.Dataset]) – The parent object from which the attribute is read- Returns:
any– The value of the attribute. The validator has a get method that is called on the return The type of the return value is thus dependent the validator. If the get method is not implemented, the return value is the same as the value stored in the attribute.- Raises:
KeyError – If the attribute name does not exist
StandardAttributeValidationWarning – If the attribute could not be validated during reading. The raw value is returned though.