Skip to content

Allow BlueAPI to intepret classmethods/staticmethods and/or . in plan name #1168

@RJCD-Diamond

Description

@RJCD-Diamond

I would like the BlueAPI to handle dots when parsing bluesky plans. So that I can access plans that are contained within classes ie:

class Johnny5():

    robot: NOVARobot = inject("Johnny5")

    @classmethod
    def self_destruct(self) -> MsgGenerator:
        
        yield from abs_set(self.robot.primed, True)
        yield from trigger(self.robot.detonate)


    @classmethod
    def wave_arm(self) -> MsgGenerator:
        
        yield from abs_set(self.robot.arm, 0)
        yield from abs_set(self.robot.arm, 10)

such that in the jython terminal I can do something like

run_plan("Johnny5.self_destruct")

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions