-
Notifications
You must be signed in to change notification settings - Fork 8
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
Automatically keep I22 and P38 in sync #502
Comments
A possible solution is to use the same beamline module for both, with careful @skip_device usage and care for visit directories- p38 is only ever going to be a commissioning visit(?) |
p38 is already analogous to s04 and could be treated the same way: |
I would suggest more than just |
are the PV names the same? What is stopping us from using the file as-is? should we have BEAMLINE_NAME derived from venv? |
Checks Environment Variables to see if BEAMLINE is exported (it will be on a beamline control machine). Comparing (best guess): i0 ~ i0: "-EA-XBPM-01:" vs. "-EA-XBPM-02:" panda1/2/3: match d11, d12 shouldn't be exposed as -EA-PILAT-01, as they aren't Pilatuses (? should we allow this? Hopefully all plan stubs are written for StandardDetectors?) Definitely the Linkam and TetrAMM could be exposed on the same prefix |
then we have the manual option of just applying a ternary expression for the PVs / or an if block or we could make some decorator or such. we'd also need to make it crash for panda4 I guess if there is an attempt to use it in a plan??? |
The specific case of a detector being a |
ok why not just a ternary expression? not sure how different are the params, will explore this in a branch |
To add some concrete acceptance criteria:
|
I guessed some of those, but it's great to see this clearly. Thanks! |
@DiamondJoseph please advise |
As a developer I would like to keep P38, at least from an ophyd point of view, as a close representation of I22. Currently they are treated as different beamlines with some similar components.
Possible Solution
Could we somehow define different versions of particular devices?
Acceptance Criteria
from #502 (comment)
The text was updated successfully, but these errors were encountered: