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

DM-47365: new manual defects for LSSTComCam #584

Merged
merged 2 commits into from
Dec 13, 2024
Merged

DM-47365: new manual defects for LSSTComCam #584

merged 2 commits into from
Dec 13, 2024

Conversation

aferte
Copy link
Contributor

@aferte aferte commented Nov 26, 2024

No description provided.

@aferte aferte requested a review from czwa November 26, 2024 00:35
@aferte aferte force-pushed the tickets/DM-47365 branch 2 times, most recently from b63a25e to a9e436b Compare November 26, 2024 23:24
Copy link
Contributor

@czwa czwa left a comment

Choose a reason for hiding this comment

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

One request that will just make this more consistent with some of our other scripts.


# This is only valid for LSSTComCam which has a single raft
manual_defects = \
Defects.readText('obs_lsst_data/comCam/manual_defects/r22_s'+detName[5:]+'/20241120T000000.ecsv')
Copy link
Contributor

Choose a reason for hiding this comment

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

This may be redundant with the changes in obs_base that make these curated calibrations that are ingested into the butler with butler write-curated-calibrations. The files are small, and doing it this way means we can generate (and regenerate) the defects prior this this merging, so I don't think it's that big of a deal.
However, I think this would be better getting the path dynamically, like we do in other scripts like this (https://github.com/lsst/obs_lsst/blob/main/python/lsst/obs/lsst/script/write_latiss_crosstalk_coeffs.py#L42 for reference). getPackageDir and os.join make it safer to construct paths like this, as it will use whichever obs_lsst_data source is set up.

@aferte aferte merged commit c69374d into main Dec 13, 2024
3 checks passed
@aferte aferte deleted the tickets/DM-47365 branch December 13, 2024 20:49
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