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

Tickets/DM-47619 Update implementation of the ignore feature in scripts. #169

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

MarcoRocchietti
Copy link
Contributor

Update scripts to use the disable_checks_for_components method of the RemoteGroup class.

Also:
- Minor fix in `BaseTakePTCFlats.get_schema`
- Added a `test_configure_ignore` for script `take_ptc_flats_comcam.py`
Also:
- Remove default value for the `ignore` attribute in `get_schema()`
- Added a `test_configure_ignore` to the script tests
…sGenCam

Also:
- Remove default value for the `ignore` attribute in `get_schema()`
- Update `move_dome()`
- Added a `test_configure_ignore` to the script tests
Also:
- Remove default value for the `ignore` attribute in `get_schema()`
- Added a `test_configure_ignore` to the script tests
Also:
- Move the implementation of the ignore feature of MTCS components from the
  base-class to `TakeTwilightFlatsComCam` and `TakeTwilightFlatsLSSTCam`.
- Added a `test_configure_ignore` to the script tests
@MarcoRocchietti MarcoRocchietti marked this pull request as ready for review January 3, 2025 20:16
Copy link
Member

@tribeiro tribeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some questions about the changes made in the twilight flats scripts. Can you please clarify?

if hasattr(config, "ignore"):
# Ignoring only specific MTCS components
allowed_ignore = ["mtdome", "mtdometrajectory"]
for comp in map(RemoteGroup._remote_name_to_attr_format, config.ignore):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is using a "private" method from RemoteGroup. Not sure I understand what is going on here. Can you please clarify?

if hasattr(config, "ignore"):
# Ignoring only specific MTCS components
allowed_ignore = ["mtdome", "mtdometrajectory"]
for comp in map(RemoteGroup._remote_name_to_attr_format, config.ignore):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again, this is using a "private" method from RemoteGroup. Not sure I understand what is going on here. Can you please, clarify?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants