From 30863a6af5e5bdeec9e7299c51c6347e29449c91 Mon Sep 17 00:00:00 2001 From: David Sanmartim Date: Tue, 11 Jul 2023 18:12:49 -0400 Subject: [PATCH 1/2] Adding ability to ignore actuators --- .../maintel/m1m3/check_actuators.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/python/lsst/ts/standardscripts/maintel/m1m3/check_actuators.py b/python/lsst/ts/standardscripts/maintel/m1m3/check_actuators.py index e0765555..ff2126b1 100644 --- a/python/lsst/ts/standardscripts/maintel/m1m3/check_actuators.py +++ b/python/lsst/ts/standardscripts/maintel/m1m3/check_actuators.py @@ -130,6 +130,13 @@ def get_schema(cls): - type: string enum: ["all"] default: "all" + ignore_actuators: + description: Actuators to ignore during the bump test. + type: array + items: + type: number + enum: [{m1m3_actuator_ids_str}] + default: [] additionalProperties: false """ schema_dict = yaml.safe_load(schema_yaml) @@ -156,6 +163,13 @@ async def configure(self, config): self.actuators_to_test = ( self.m1m3_actuator_ids if config.actuators == "all" else config.actuators ) + if config.ignore_actuators: + self.actuators_to_test = [ + actuator_id + for actuator_id in self.actuators_to_test + if actuator_id not in config.ignore_actuators + ] + await super().configure(config=config) def set_metadata(self, metadata): From a0bd48d3d374ef9982a60612cf0b308eb6116574 Mon Sep 17 00:00:00 2001 From: David Sanmartim Date: Tue, 11 Jul 2023 18:17:38 -0400 Subject: [PATCH 2/2] Update version history --- doc/version_history.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/version_history.rst b/doc/version_history.rst index 9e7bee9a..e208b213 100644 --- a/doc/version_history.rst +++ b/doc/version_history.rst @@ -6,6 +6,11 @@ Version History =============== +v1.24.2 +------- + +Update ``check_actuators.py`` to give the ability to ignore actuators in a bump test. + v1.24.1 -------