pysdic.core.property_container.PropertyContainer.check#
- PropertyContainer.check(key, *, shape=None, dtype=None)[source]#
Check if a property exists and has the expected shape and data type.
- Parameters:
key (str) – The name of the property.
shape (Tuple[int, ...], optional) – The expected shape of the property (including \(N\)).
dtype (numpy.dtype, optional) – The expected data type of the property.
- Returns:
True if the property exists and matches the given
shapeanddtype, False otherwise.- Return type: