pysdic.core.property_container.PropertyContainer.update#
- PropertyContainer.update(other, *, conflict=True)[source]#
Combine the properties of two containers with the same \(N\).
Note
Unlike
dict.update, this container is not modified: a new container is returned.The
force_2dflag of the result is the one of this container.- Parameters:
other (
pysdic.core.property_container.PropertyContainer) – The container whose properties are added.conflict (bool, optional (default:
True)) – If True, aValueErroris raised when a property exists in both containers. If False, the values ofotheroverwrite the values of this container.
- Returns:
A new container with the properties of both containers.
- Return type: