Skip to content

Component instances added to an Assembler do not add their group name to the resulting Instr #159

@g5t

Description

@g5t
from mccode_antlr.assembler import Assembler

assembler = Assember(...)
assembler.component(
    'named', 'Type', at=[(x, y, z), 'absolute']
    parameters={...}
).GROUP('someGroup')

instr =  assembler.instrument

Will fail at translation time due to instr.determine_groups() not being called.

The quick fix is to remember to call that method after all group-member components are added and before translating the Instr.
A better fix would eliminate the need for this call, possibly by making Assembler.instrument a @property.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions