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

Review for DM-8714: Add unittest for base_SdssShape_psf measurement #57

Merged
merged 1 commit into from Dec 27, 2016

Conversation

jdswinbank
Copy link
Contributor

This test is being added here in meas_algorithms rather than meas_base
(where SdssShape lives) due to the need to apply a spatially varying
psf model such that the psf is different at each position in the image.
This varying psf model is built with meas_algorithms' PcaPsf (which is
not accessible from meas_base).

exposure, catalog = self._runMeasurementTask(psf=varyingPsf)
key = measBase.SdssShapeResultKey(catalog.schema["base_SdssShape"])
for record in catalog:
psfTruth = exposure.getPsf().computeShape(afwGeom.Point2D(record.getX(), record.getY()))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have absolute faith that the PSF really is varying exactly as you say it is.

But.. what if it wasn't? If we screwed up and varyingPsf was actually constant across the image, then this test would pass even if the original bug was still in SdssShape.

I grant it's unlikely, but could we add an extra assertion here to establish that psfTruth really does vary by record?

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

This test is being added here in meas_algorithms rather than meas_base
(where SdssShape lives) due to the need to apply a spatially varying
PSF model such that the PSF is different at each position in the image.
This varying psf model is built with meas_algorithms' PcaPsf (which is
not accessible from meas_base).
@laurenam laurenam merged commit e8fbbba into master Dec 27, 2016
@ktlim ktlim deleted the tickets/DM-8714 branch August 25, 2018 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants