pysdic.core.property_container.PropertyContainer.force_2d#

property PropertyContainer.force_2d: bool#

[Get/Set] Whether all the properties are stored as 2D arrays of shape \((N, P)\).

Enabling force_2d reshapes the existing 1D properties to \((N, 1)\). If an existing property has more than two dimensions, a ValueError is raised and the container is left unchanged: use flatten() on that property first.

Parameters:

value (bool) – True to enforce 2D properties.

Returns:

True if force_2d is enabled, False otherwise.

Return type:

bool