footings.model.def_intermediate¶
-
def_intermediate
(*, dtype: Optional[Any] = None, description: Optional[str] = None, init_value: Optional[Any] = None, **kwargs)[source]¶ Define an intermediate attribute under the model.
A placeholder is a non-frozen attribute that is created by the model and not returned when the model runs. It can be used to hold intermediate values for calculation.
- Parameters
dtype (Optional[Any]) – The expected type of the attribute. If not None, value will be validated on instantiation.
description (Optional[str]) – Optional description to add.
init_value (Optional[Any]) – Optional initival value to assign.
kwargs – Advanced options to pass through to attrs.attrib.