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

Fix a bug in how aperture correction is applied #48

Merged
merged 1 commit into from May 12, 2016
Merged

Conversation

r-owen
Copy link
Contributor

@r-owen r-owen commented May 12, 2016

In DetectAndMeasure make sure that all plugins that need aperture-
corrected fluxes get them. This requires running final measurement
in two phases after measuring aperture correction: one to apply
corrections, the other to run all remaining plugins. The need
for this is a misfeature that will be fixed as part of DM-5877.

@r-owen r-owen force-pushed the tickets/DM-6063 branch 2 times, most recently from 0fb7cf8 to 0bc844a Compare May 12, 2016 00:30
With the current flow, the aperture corrections were being applied only
after all the measurement plugins had run through, independent of their
execution order.  This resulted in plugins whose measurements rely on
aperture corrected fluxes (i.e. with execution order > APCORR_ORDER)
being applied prior to the aperture correction, leading to erroneous
results.  The only plugin currently affected by this is
base_ClassificationExtendedness.

We handle this here by running the measurement and aperture correction
in DetectAndMeasure in three stages: first run all plugins up to order
APCORR_ORDER to measure all fluxes; second run a step whose only action
is to apply the aperture corrections to the fluxes measured in the
first step; finally, run all remaining (APCORR_ORDER+1) plugins, whose
measurements rely on aperture-corrected fluxes, but with aperture
correction disabled (to avoid multiply applying aperture correction).

This fix indeed results in the correct order of operations, but it is
far from elegant.  This situation should be remedied as part of:
https://jira.lsstcorp.org/browse/DM-5877
@laurenam laurenam merged commit 7b41ccf into master May 12, 2016
@ktlim ktlim deleted the tickets/DM-6063 branch August 25, 2018 06: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