At the moment the motor_name is always returned as seq_num because the plan_name returned by get_plan_name(start) returns the spec name for the scan rather than the bluesky name for the scan. For example in the start document below the plan name is scan. This get's translated to the spec name ascan. When this is checked against _BLUESKY_PLAN_NAMES it can't find it because it should be looking from scan and not ascan.
#S 2 ascan seq_num -1
Should be
#S 2 ascan motor -1
I guess you could fix it by either replacing _BLUESKY_PLAN_NAMES with _SPEC_PLAN_NAMES on line 153, or by just not translating from bluesky to spec. I think the problem also exists in other parts of this file where the scan_command is checked against _BLUESKY_PLAN_NAMES for example here
_get_motor_name(start) should return the motor name from the start document it's passed. This is then added to the spec scan header
At the moment the
motor_name
is always returned asseq_num
because theplan_name
returned by get_plan_name(start) returns the spec name for the scan rather than the bluesky name for the scan. For example in the start document below the plan name isscan
. This get's translated to the spec nameascan
. When this is checked against _BLUESKY_PLAN_NAMES it can't find it because it should be looking fromscan
and notascan
.#S 2 ascan seq_num -1
Should be
#S 2 ascan motor -1
I guess you could fix it by either replacing _BLUESKY_PLAN_NAMES with _SPEC_PLAN_NAMES on line 153, or by just not translating from bluesky to spec. I think the problem also exists in other parts of this file where the scan_command is checked against _BLUESKY_PLAN_NAMES for example here