Skip to content

Allow HasName object to be added to inject of plans #1462

Open

Description

@oliwenmandiamond

Currently, MX are needing access to objects inside plans which are not devices, for example the daq-config-server ConfigClient. They are currently achieving this via a mix of dependency injection and global states. See DiamondLightSource/dodal#1997 for details.

Currently BlueAPI only supports the concept of a Device from ophyd-async. I originally suggested wrapping the ConfigClient with Device, but it was rightly pointed out this isn't a device (DiamondLightSource/dodal#1798 (comment)).

My suggestion is to allow any objects with HasName Bluesky protocol can be used with inject so that any object with a name can be found within plans, allowing for much more flexibility with BlueAPI as we have clear distinction on objects which are devices and not devices and still accessible inside plans.

Activity

  1. tpoliaw commented on Mar 31, 2026

    @tpoliaw
    Contributor

    HasName used to be accepted but caused problems and was removed in #873. I'm not sure if it could be re-enabled without bringing the bugs back.

  2. added
    needs investigation
    on Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: contextneeds investigation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions