Skip to main content

PendingAttribute

GitHub source

PendingAttribute

evo.objects.typed.attributes.PendingAttribute

A placeholder for an attribute that doesn't exist yet on a Geoscience Object.

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.

name

name: str

The name of this attribute.

exists

exists: bool

Whether this attribute exists on the object.

Returns:

TypeDescription
boolFalse for pending attributes.

__init__

__init__(parent: 'Attributes', name: str) -> None

Parameters:

NameTypeDescriptionDefault
parent'Attributes'The Attributes collection this pending attribute belongs to.required
namestrThe name of the attribute to create.required

What is the reason for your feedback?