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-21950: Update validate_drp to work with different external calibrations #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the exitStatus to __call__
. Please squash the two commits related to that, since they go together.
externalPhotoCalibName = Field( | ||
dtype=str, | ||
doc=("Type of external PhotoCalib. Currently supported are jointcal, " | ||
"fgcm, and fgcm_tract."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should be a ChoiceField
, to get some automatic validation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I didn't know about the ChoiceField
.
53c9def
to
6810312
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A handful of other comments here on some docs. Clean those up and you're good to merge.
doApplyExternalPhotoCalib = Field( | ||
dtype=bool, default=False, | ||
doc=("Whether to apply external photometric calibration via an " | ||
"`lsst.afw.image.PhotoCalib` object. Uses the " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two spaces? ;-)
Also, I don't think these docstrings need to be wrapped at 80 characters. At least, I hope they don't.
Parameters | ||
---------- | ||
butler: `lsst.daf.persistence.Butler` | ||
dataId: Butler dataId |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docstrings for these two (and below)? Is the "Butler dataId" a dict
or an lsst.daf.persistence.ButlerDataRef
?
python/lsst/validate/drp/validate.py
Outdated
Use jointcal/meas_mosaic outputs to calibrate positions and fluxes. | ||
doApplyExternalPhotoCalib : bool, optional | ||
Apply external photoCalib to calibrate fluxes. | ||
Default is False. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need to specify defaults here (and below).
… be used. Configuration options have been updated to allow different external photometric calibrations (e.g. fgcmcal) to be used. The external PhotoCalib and WCS datasets can now be specified separately as well.
6810312
to
19eac21
Compare
External wcs is now doApplyExternalSkyWcs and externalSkyWcsName.
19eac21
to
cae20c0
Compare
Update validate_drp so that external photometric and astrometric corrections are separated, and so that fgcmcal can be used in place of jointcal for photometry.