Skip to content
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

Adding ability to ignore actuators #133

Merged
merged 2 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/version_history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------

Expand Down
14 changes: 14 additions & 0 deletions python/lsst/ts/standardscripts/maintel/m1m3/check_actuators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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):
Expand Down