Skip to content

Syntax of run_plan in GDA is not clear #1401

@DominicOram

Description

@DominicOram

As a user new to the system it is not clear how to actually call a bluesky plan with args using run_plan in GDA. e.g. I have a plan like

def robot_load(
    puck: int, position: int, robot: Robot = inject("robot")
) -> MsgGenerator[None]:

How do I call this?

  1. run_plan("robot_load", {"puck":1, "position":1})
  2. run_plan("robot_load", 1, 1)
  3. run_plan("robot_load", puck=1, position=1)

3 is correct but if I run help(run_plan) there is no indication of this.

Acceptance Criteria

  • help(run_plan) and other docs? Give an example like the above to help a user work out how to call it

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