Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1952 +/- ##
=======================================
Coverage 99.08% 99.08%
=======================================
Files 314 314
Lines 11804 11807 +3
=======================================
+ Hits 11696 11699 +3
Misses 108 108 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
shihab-dls
left a comment
There was a problem hiding this comment.
Looks good. Just one suggestion for the docstring, feel free to merge in after addressing.
Co-authored-by: Shihab S <162436767+shihab-dls@users.noreply.github.com>
abbiemery
left a comment
There was a problem hiding this comment.
Why do we want a trigger logic as a device? It looks like I have missed a lot of context here with the changes to ophyd-async and what constitutes a TriggerLogic. What I knew as TriggerLogic, which contained the required state and logic to prepare a detector, appears to now be a DetectorTriggerLogic. This being set up via plans/stubs to set detectors up how we want.
Seeing a PmacTrajectoryTriggerLogic as a flyable device in its own right felt initially odd but this is going to be down to the fact i've not been involved in this project for a long while. Feel free to point me to an ADR on these changes or anything pmac related, or we can have a chat about how this works, as I would be interested to know. However, since I don't understand why this might be needed, I'm no help for reviewing.
|
Currently, It is an ophyd-async Device that takes ownership of PmacIO as a child. Constructing it ad-hoc inside a plan means a new instance is created on every call; on back-to-back fly scans this raises 'Cannot set the parent of PmacIO to be PmacTrajectoryTriggerLogic because it is already PmacTrajectoryTriggerLogic', since ophyd-async does not permit a device to be re-parented. Note: the current ownership model (PmacTrajectoryTriggerLogic owning PmacIO) is a workaround and will be revised in bluesky/ophyd-async#1220 |
|
I suggest you add the |
Instructions to reviewer on how to test:
Checks for reviewer
dodal connect ${BEAMLINE}