Skip to content
heliaAOT
API Reference
HELIA HUB

defines

Machine-readable model

  • AttributeRulesetclassThis class defines a powerful and flexible way to customize the conversion process for specific entities in the model.
class

This class defines a powerful and flexible way to customize the conversion process for specific entities in the model.

helia_aot/attributes/defines.py:8

AttributeRuleset()

This class defines a powerful and flexible way to customize the conversion process for specific entities in the model.

Multiple attributes can be specified and allow slicing the model by entity type, entity identifier(s), or a specific combination of both.

The type field can be a specific entity type (e.g., CONV_2D) or * for all types. The id field can be a specific entity identifier or a list of identifiers.

Since multiple rules can match the same entity, the more specific rule wins, highest first:

  1. both type and id are specified and match
  2. id is specified and type is not
  3. type is specified and id is not
  4. neither is specified

Rules merge key by key. Between two rules of the same precedence, the later one in the list wins.

attribute

type

Python

helia_aot/attributes/defines.py:31

type: str = Field(default='*', description='Entity type (e.g. CONV_2D) or * for all')

The entity type (e.g. CONV_2D or PERSISTENT) or * for all.

attribute

id

Python

helia_aot/attributes/defines.py:32

id: str | list[str] | None = Field(default=None, description='Entity identifier(s)')

The entity identifier or list of identifiers.