BlockModelPendingAttribute
BlockModelPendingAttribute
evo.objects.typed.attributes.BlockModelPendingAttribute
A placeholder for an attribute that doesn't exist yet on a Block Model.
This is returned when accessing an attribute by name that doesn't exist. It can be used as a target for compute tasks, which will create the attribute.
Stores a reference to the parent BlockModel via _obj, similar to how BlockModelAttribute and Attribute (in dataset.py) work.
name
name: str
The name of this attribute.
exists
exists: bool
Whether this attribute exists on the block model.
Returns:
| Type | Description |
|---|---|
bool | False for pending attributes. |
__init__
__init__(obj: BlockModel, name: str) -> None
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj | BlockModel | The BlockModel this pending attribute belongs to. | required |
name | str | The name of the attribute to create. | required |