Creates a script to switch relevant XPP devices between the mono (L2) and pink (L0) branches depending on the insertion state. Looks for devices inside a z range on either the l2 or l0 branch
Usage
bash $ xpp_update_happi_line -h
usage: xpp_update_happi_line [-h] [--min MIN_Z] [--max MAX_Z] [--dry-run]
Updates items in the happi database to reflect the which line XPP is using (mono line, pink line).
Assumes pcds-conda, and grabs the currently active happi config.
optional arguments:
-h, --help show this help message and exit
--min MIN_Z min z range
--max MAX_Z max z range
--dry-run run script without saving to database
Motivation and Context
XPP currently has a group of devices that gets switched between the L2 and L0 branches. In order for lightpath to properly represent this in every hutch's lightpath, the happi database must reflect this change.
Note: for lightpath to include the L2 branch in the facility graph, the L0 -> (L0, L2) branching device must be properly reporting its lightpath status (xpp_lodcm)
Just tested in both in dry-run and for real, it's working great!
I just added the possibility to force the change to either lines, this makes it easier to test things and we might need it at some point.
Description
Creates a script to switch relevant XPP devices between the mono (L2) and pink (L0) branches depending on the insertion state. Looks for devices inside a z range on either the l2 or l0 branch
Usage
Motivation and Context
XPP currently has a group of devices that gets switched between the L2 and L0 branches. In order for lightpath to properly represent this in every hutch's lightpath, the happi database must reflect this change.
Note: for lightpath to include the L2 branch in the facility graph, the L0 -> (L0, L2) branching device must be properly reporting its lightpath status (xpp_lodcm)
How Has This Been Tested?
Interactively for now
Where Has This Been Documented?
JIRA