Skip to content

inject not working on i04 #647

Closed

Description

@DominicOram

In testing on i04 today we had a plan like:

def thaw(smargon:Smargon = inject("smargon")):
    pass

This failed if we called it via run_plan() from GDA but passed if we did run_plan("smargon"). I04 is loading dodal from the scratch area.

Acceptance Criteria

  • inject works correctly

Activity

  1. noemifrisina commented on Sep 24, 2024

    @noemifrisina
    Contributor

    Run into something similar, is this related to #633 or a new one?

  2. DominicOram commented on Sep 24, 2024

    @DominicOram
    ContributorAuthor

    I saw that but read it as "BlueAPI should give cleaner errors if the device doesn't exist". This was that the devices do exist but blueAPI can't find them. In your case was there a pmac object that blueAPI failed to pick up? Did you manage to fix the issue?

  3. noemifrisina commented on Sep 24, 2024

    @noemifrisina
    Contributor

    Yes the device was there, and could be found by running blueapi -c config.yaml controller devices, but wasn't picked up. The issue is still there, I just worked around it by explicitly passing the devices from the command line instead of relying on inject. This is not a great solution for plans that require multiple devices though...

    From previous beamline testing, inject worked fine up to pre-release 0.4.5a1

  4. added
    bug
    c: worker
    on Oct 8, 2024
  5. DiamondJoseph commented on Oct 14, 2024

    @DiamondJoseph
    Contributor

    inject only ever really worked by co-incidence, I've been trying to get dodal #597 over the line so that inject("foo") can be replaced with ixx.foo(connect=False), which would allow the device to be created, and yield from ensure_connected(foo, ...) at the start of the plan to ensure it's connected.

  6. added this to the 1.0.0 milestone on Nov 20, 2024
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

    bugc: worker

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions