Skip to content

Commit

Permalink
Merge pull request #97 from lsst-ts/develop
Browse files Browse the repository at this point in the history
v0.19.0
  • Loading branch information
rbovill authored Jan 12, 2024
2 parents ae60b3f + 47a2f07 commit c8254e0
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 8 deletions.
4 changes: 4 additions & 0 deletions doc/version-history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ Version History
.. No new work should be required in order to complete this section.
.. Below is an example of a version history format.
v0.19.0
-------
* Added the ComCam/MTCamera environment-based handling.

v0.18.0
-------
* Switched to the new auxtel/latiss_acquire.py script.
Expand Down
27 changes: 24 additions & 3 deletions python/lsst/ts/IntegrationTests/maintel_disabled_enabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from lsst.ts.IntegrationTests import BaseScript

from .configs.config_registry import registry
from .utils import get_test_env_arg


class MainTelDisabledEnabled(BaseScript):
Expand Down Expand Up @@ -61,10 +62,30 @@ def __init__(self, test_env: str) -> None:
# Running on TTS or Summit with CCCamera
self.big_cam = "CCCamera"
self.big_cam_configs["data"][0][0] = self.big_cam
self.configs = (
registry["maintel_disabled_enabled"],
yaml.safe_dump(self.big_cam_configs),
)


def run_maintel_disabled_enabled() -> None:
script_class = MainTelDisabledEnabled()
num_scripts = len(script_class.scripts)
print(f"\nMainTel Disabled to Enabled; running {num_scripts} scripts")
# Ensure the invocation is correct.
# If not, raise KeyError.
# If it is correct, execute the state transition.
args = get_test_env_arg()
try:
script_class = MainTelDisabledEnabled(
test_env=args.test_env,
)
except KeyError as ke:
print(repr(ke))
else:
num_scripts = len(script_class.scripts)
print(
f"\nMainTel Disabled to Enabled; "
f"running {num_scripts} scripts"
f"on the '{args.test_env}' environment, "
f"with this configuration: \n"
f"{script_class.configs}"
)
asyncio.run(script_class.run())
29 changes: 25 additions & 4 deletions python/lsst/ts/IntegrationTests/maintel_standby_disabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from lsst.ts.IntegrationTests import BaseScript

from .configs.config_registry import registry
from .utils import get_test_env_arg


class MainTelStandbyDisabled(BaseScript):
Expand Down Expand Up @@ -61,10 +62,30 @@ def __init__(self, test_env: str) -> None:
# Running on TTS or Summit with CCCamera
self.big_cam = "CCCamera"
self.big_cam_configs["data"][0][0] = self.big_cam
self.configs = (
registry["maintel_standby_disabled"],
yaml.safe_dump(self.big_cam_configs),
)


def run_maintel_standby_disabled() -> None:
script_class = MainTelStandbyDisabled()
num_scripts = len(script_class.scripts)
print(f"\nMainTel Standby to Disabled; running {num_scripts} scripts")
asyncio.run(script_class.run())
# Ensure the invocation is correct.
# If not, raise KeyError.
# If it is correct, execute the state transition.
args = get_test_env_arg()
try:
script_class = MainTelStandbyDisabled(
test_env=args.test_env,
)
except KeyError as ke:
print(repr(ke))
else:
num_scripts = len(script_class.scripts)
print(
f"\nMainTel Standby to Disabled; "
f"running {num_scripts} scripts "
f"on the '{args.test_env}' environment, "
f"with this configuration: \n"
f"{script_class.configs}"
)
asyncio.run(script_class.run())
2 changes: 1 addition & 1 deletion python/lsst/ts/IntegrationTests/obssys_standby_disabled.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def run_obssys_standby_disabled() -> None:
print(
f"\nObsSys Standby to Disabled; "
f"running {num_scripts} scripts "
f"on the '{args.test_env}' environment. "
f"on the '{args.test_env}' environment, "
f"with this configuration: \n"
f"{script_class.configs}"
)
Expand Down

0 comments on commit c8254e0

Please sign in to comment.