pysdic.Connectivity.validate#
- Connectivity.validate(*, recursive=True)[source]#
Validate the integrity of the connectivity.
The following conditions are checked:
The elements are a
numpy.int64array of shape \((N_e, N_{vpe})\) with \(N_{vpe} \geq 1\) and non-negative indices.If
element_typeis set, it is an implemented type with \(N_{vpe}\) vertices.The properties are a
pysdic.core.property_container.PropertyContainerwith \(N = N_e\).
- Parameters:
recursive (bool, optional (default:
True)) – If True, the property container is also validated (seepysdic.core.property_container.PropertyContainer.validate()).- Raises:
TypeError – If an attribute has a wrong type.
ValueError – If an attribute has a wrong shape or value.
- Return type:
None