-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add j120k flowswitch, insert flow switch in appropriate classes. #1189
Conversation
Is there a list of device that will have their I went through and looked at devices whose class had the flow switch added, and the following didn't have active
|
These aren't implement yet, but will be in a month or two. I guess this will break the PV connection temporarily. |
This didn't prevent the devices from loading, so it's not a huge deal. It'll just fail if we try to |
Entries for pf1k0 and im1k3 will currently need to be updated. Corresponding to |
pcdsdevices/digital_signals.py
Outdated
@property | ||
def get_flow_ok(self): |
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.
A few more thoughts, though I'm totally splitting hairs at this point:
- Why does this property exist? Is
flow_ok.get()
insufficient as an API? (I do see that it returns an int and not a bool) - If there's a reason for it to exist, why is it a property and not a method?
- If there's a good reason for it to be a property, why is it named like a function? I think people in an interactive session will very likely do a
get_flow_ok()
call which will give an annoying "typebool
is not callable" sort of error.
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.
This is actually totally true, I did this myself. I'll delete it. I thought people would want a designated function, but in this case it should drop the property tag. I also did not think about the fact that you can just call get on the signal.
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.
ok, sounds good- I would have been fine with any outcome here, just trying to make sure we consider these small details
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.
looks good to me
Description
J120K
J120K
toSxrTestAbsorber
,XPIM
,IM2K0
,PowerSlits
PPMCoolSwitch
,WaveFrontSensorTargetCool
Motivation and Context
Where all devices in the happi database will get the cooling switch added
J120K
to the class. For devices who otherwise aren't all the same I inherited the base class.How Has This Been Tested?
In [8]: sw.flow_switch.get_flow_ok
Out[8]: 1
Where Has This Been Documented?
pcdshub/lcls-plc-kfe-motion#120
https://docs.google.com/spreadsheets/d/1UAVYuG5my1ic51wRrpq9xJfvT5X7NX-nF4QzPtAUaPg/edit#gid=0
Pre-merge checklist