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

Define camword for linkcal #2257

Merged
merged 1 commit into from
May 17, 2024
Merged

Define camword for linkcal #2257

merged 1 commit into from
May 17, 2024

Conversation

akremin
Copy link
Member

@akremin akremin commented May 17, 2024

Previously the camword for the linkcal jobs were given the default ('a0123456789') camword, but on at least one night we don't need all cameras and the night we were linking to didn't have all cameras. This updates the code to look at the current night under consideration and identify all good cameras available for at least one exposure. It then requests that union of good cameras as the camword. This does not check if the reference night has those cameras to link to, that is up to the person creating the override file to verify. The linkcal job will crash in that instance, at which time they'll have to find a different night to reference.

I've tested the code on the night that currently crashes in main and we now submit the correct camword:
INFO:processing.py:499:create_batch_script: Command to be run: ['desi_link_calibnight', '--refnight=20221119', '--newnight=20221120', '--cameras=a069b7r7', '--include=ctecorrnight,fiberflatnight']

I've also tested on another night with an override file and find that it correctly identifies that we need all cameras:
INFO:processing.py:499:create_batch_script: Command to be run: ['desi_link_calibnight', '--refnight=20231017', '--newnight=20231018', '--cameras=a0123456789', '--include=fiberflatnight,ctecorrnight']

I've also created a unit test that verifies that if nothing is specified we get the union in good exposures from the exposure_table, and if 'camword' is specified in the override file then that is used instead.

@akremin akremin requested a review from sbailey May 17, 2024 19:23
@sbailey sbailey merged commit cc3c0d7 into main May 17, 2024
26 checks passed
@sbailey sbailey deleted the linkcal_camword branch May 17, 2024 21:46
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.

None yet

2 participants