Repository navigation
Allow injection of Devices into plan arguments from the BlueskyContext - #175
Conversation
|
Probably wants some documentation too |
Codecov Report
@@ Coverage Diff @@
## main #175 +/- ##
==========================================
+ Coverage 87.50% 87.90% +0.40%
==========================================
Files 41 41
Lines 1120 1124 +4
==========================================
+ Hits 980 988 +8
+ Misses 140 136 -4
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
| ) | ||
|
|
||
| no_default = para.default is Parameter.empty | ||
| if isinstance(para.default, Component): |
There was a problem hiding this comment.
Component covers all ophyd devices? If we're checking for that we probably don't need to the default_factory and can revert to just setting the default value.
Move Context Injection plan to own module
linting
callumforrester
left a comment
There was a problem hiding this comment.
Looks good, only minor nitpicks
Co-authored-by: Callum Forrester <[email protected]>
| ) | ||
|
|
||
|
|
||
| def inject(x): |
There was a problem hiding this comment.
Worth commenting that types are intentionally omitted to bypass type checking? This function doesn't look like it does much otherwise. I think x could be typed as str as well.
There was a problem hiding this comment.
Have added some doc string and if the linting fails I can revert the name: str
closes #116