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_2d flag 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, a ValueError is raised when a property exists in both containers. If False, the values of other overwrite the values of this container.

Returns:

A new container with the properties of both containers.

Return type:

pysdic.core.property_container.PropertyContainer