Skip to content

Implement __get_item__ on Controller to access sub controllers #219

@GDYendell

Description

@GDYendell

It is currently very verbose to access sub controllers

controller.get_sub_controllers()["R1"].voltage.disable_tracing()

Note this only one level deep.

Acceptance Criteria

This would become

controller["R1"].voltage.disable_tracing()

or a more extreme example for which I won't even write what is required currently

controller["FP"][0]["HDF"]["DS"].uid_datatype

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