pysdic.Connectivity.to_dict#
- Connectivity.to_dict(*, save_properties=True)[source]#
Convert the connectivity to a flat dictionary.
The elements are stored under the key
"elements", the properties under the keys"_property/{property_name}"and the element type (if set) under the key"element_type". All the arrays are copies.Note
The dictionary is flat (one level), as required by the NPZ format. See
pysdic.core.serialization.NpzSerializerMixin.- Parameters:
save_properties (bool, optional (default:
True)) – If False, the properties are not included.- Returns:
The dictionary representation of the connectivity.
- Return type:
Dict[str, Any]