-
Notifications
You must be signed in to change notification settings - Fork 11
658 create device for pressure jump cell #673
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
Conversation
92f4c0a
to
0d07c25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the moment it's implemented as one large object hard to debug, should be split into components
0d07c25
to
803b90a
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #673 +/- ##
==========================================
+ Coverage 95.70% 95.78% +0.07%
==========================================
Files 132 133 +1
Lines 5334 5479 +145
==========================================
+ Hits 5105 5248 +143
- Misses 229 231 +2 ☔ View full report in Codecov by Sentry. |
07522bb
to
431887c
Compare
self.pump_forward_limit = epics_signal_r( | ||
LimitSwitchState, prefix + "D74IN1" | ||
) | ||
self.pump_backward_limit = epics_signal_r( | ||
LimitSwitchState, prefix + "D74IN0" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the limits settable and required to be Read signals or are they read-once Config signals?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how to check that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're epics_signal_r
read only from the ophyd layer, which means they're read-only from the ophyd layer. They could be derived from other signals, and therefore changing on the rate of every point of a scan, but I would infer from the name that they are hardware limits that don't change over the lifetime of the device, let alone within a scan. I would make them config signals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These signals are the state of limit switches for the pump so they will change during a scan if the pump is driven for a some length of time (approx 50s) in one direction. The name could be improved to pump_..._limit_state
7af5a66
to
a6b8c74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some small bits
36c2344
to
a91272f
Compare
self.pump_forward_limit = epics_signal_r( | ||
LimitSwitchState, prefix + "D74IN1" | ||
) | ||
self.pump_backward_limit = epics_signal_r( | ||
LimitSwitchState, prefix + "D74IN0" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're epics_signal_r
read only from the ophyd layer, which means they're read-only from the ophyd layer. They could be derived from other signals, and therefore changing on the rate of every point of a scan, but I would infer from the name that they are hardware limits that don't change over the lifetime of the device, let alone within a scan. I would make them config signals.
1ce82ad
to
7567b94
Compare
4a7b253
to
cadd4d2
Compare
* Pressure jump cell removed manual pump control enums. * Grouped valve open and close PVs under valve control. * Pressure jump cell updated set_valve to use ValveControl. * Pressure jump cell fixed index error on setting ValveOpenSeq value and updated pressure transducer tests to match current naming. * Pressure jump cell mapped open to open_seq in set_valve to simplify interface. * Pressure jump cell set valve open requests to inactive after OPENSEQ_PULSE_LENGTH delay.
03dc7c7
to
1ed5229
Compare
out of date
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approval conditional on it connects with dodal connect p38 and the prefix is right for both devices, I'm happy to check tomorrow but no time today
@@ -312,7 +313,7 @@ def linkam( | |||
return device_instantiation( | |||
Linkam3, | |||
"linkam", | |||
"-EA-LINKM-02:", | |||
f"{BeamlinePrefix(BL).insertion_prefix}-EA-LINKM-02:", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While device_factory is reverted, this isn't going to work and is unrelated: it'll cause merge issues when that change goes back in, so let's revert it for now.
f"{BeamlinePrefix(BL).insertion_prefix}-EA-LINKM-02:", | |
"-EA-LINKM-02:", |
closes #658
Ophyd device for pressure jump cell #658, required for pressure jump experiment.
Initial control PVs, TODO fast adc capture.
Checks for reviewer
dodal connect ${BEAMLINE}