Skip to main content

BlockModelPendingAttribute

GitHub source

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:

TypeDescription
boolFalse for pending attributes.

__init__

__init__(obj: BlockModel, name: str) -> None

Parameters:

NameTypeDescriptionDefault
objBlockModelThe BlockModel this pending attribute belongs to.required
namestrThe name of the attribute to create.required

What is the reason for your feedback?