Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow passing kwargs to make_all_devices for dodal modules #304

Conversation

Tom-Willemsen
Copy link
Contributor

In particular, in hyperion it would be useful to be able to pass through wait_for_connection and fake_with_ophyd_sim - but keeping this generic to any kwarg (like make_all_devices itself) seems nicer than restricting it to just those two.

@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

Merging #304 (22e0a1c) into main (5aa646d) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #304   +/-   ##
=======================================
  Coverage   88.99%   88.99%           
=======================================
  Files          38       38           
  Lines        1390     1390           
=======================================
  Hits         1237     1237           
  Misses        153      153           
Files Coverage Δ
src/blueapi/core/context.py 97.22% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Contributor

@callumforrester callumforrester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with merging this, but TBD in next week's discussion. I would like to find something else for the long term.

@Tom-Willemsen Tom-Willemsen merged commit e24b29d into DiamondLightSource:main Oct 10, 2023
15 checks passed
@Tom-Willemsen Tom-Willemsen deleted the allow_passing_kwargs_to_dodal_module branch October 10, 2023 15:56
Tom-Willemsen added a commit that referenced this pull request Nov 7, 2023
…330)

Functionality added in
#304 and [being used
in
hyperion](https://github.com/DiamondLightSource/hyperion/blob/92b23dac5efc1aa78910d2f0f4bd28725a9ec836/src/hyperion/utils/context.py#L81)
got removed in
076da45
. It doesn't look like there was a clear reason for this removal of
functionality so I think it should be reinstated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants