omfpandas.blockmodels.attributes.evaluate_calculated_attribute
- omfpandas.blockmodels.attributes.evaluate_calculated_attribute(blockmodel, attr_name, calculated_expression, attributes_available)[source]
Evaluate a calculated attribute using the blockmodel and available attributes.
- Parameters:
blockmodel (BlockModel) – The BlockModel to read from.
attr_name (str) – The name of the calculated attribute.
calculated_expression (str) – The expression to evaluate.
attributes_available (list[str]) – List of available attributes in the BlockModel.
- Returns:
The evaluated calculated attribute as a pandas Series.
- Return type:
pd.Series