pysdic.core.property_container.PropertyContainer.validate#
- PropertyContainer.validate()[source]#
Validate the integrity of the container.
The following conditions are checked:
\(N\) is a non-negative python integer.
All the keys are strings and all the values are NumPy arrays.
All the properties have the same first dimension \(N\) and at least one attribute (the product of the other dimensions is not zero).
If
force_2dis enabled, all the properties are 2D arrays.
- Raises:
TypeError – If a key, a value or \(N\) has a wrong type.
ValueError – If a value or \(N\) has a wrong shape or value.
- Return type:
None