Skip to content

Commit

Permalink
Added the CSC and CSC State lists to base_script.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbovill committed Jan 17, 2024
1 parent 4c27c6e commit 976fbe0
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions python/lsst/ts/IntegrationTests/base_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,83 @@ class BaseScript:
configs: tuple = ()
scripts: list = []

# Define the list of CSCs.
# This is needed to validate the csc_state_transition configuration.
cscs = frozenset(
[
"ATAOS",
"MTAirCompressor",
"ATBuilding",
"ATCamera",
"ATDome",
"ATDomeTrajectory",
"ATHeaderService",
"ATHexapod",
"ATMCS",
"ATMonochromator",
"ATOODS",
"ATPneumatics",
"ATPtg",
"ATSpectrograph",
"ATWhiteLight",
"Authorize",
"GCHeaderService",
"CCCamera",
"CCHeaderService",
"CCOODS",
"CBP",
"DIMM",
"DREAM",
"DSM",
"EAS",
"Electrometer",
"ESS",
"FiberSpectrograph",
"GenericCamera",
"GIS",
"Guider",
"HVAC",
"LaserTracker",
"LEDProjector",
"LinearStage",
"LOVE",
"MTAOS",
"MTCamera",
"MTDome",
"MTDomeTrajectory",
"MTEEC",
"MTHeaderService",
"MTHexapod",
"MTM1M3",
"MTM1M3TS",
"MTM2",
"MTMount",
"MTOODS",
"MTPtg",
"MTRotator",
"MTVMS",
"OCPS",
"PMD",
"Scheduler",
"Script",
"ScriptQueue",
"SummitFacility",
"Test",
"TunableLaser",
"Watcher",
"WeatherForecast",
]
)

# Define the list of CSC States.
csc_states = frozenset(
[
"Offline",
"Standby",
"Disabled",
"Enabled",
]
)
# Define the set of script states that indicate the script is processing.
processing_states = frozenset(
(
Expand All @@ -82,6 +159,7 @@ class BaseScript:
ScriptProcessState.RUNNING,
)
)

# Define the set of script states that indicate the script is complete.
terminal_states = frozenset(
(
Expand Down

0 comments on commit 976fbe0

Please sign in to comment.