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

pipe_tasks DM-6078: changes to fix SDSS apcorr #49

Merged
merged 5 commits into from
May 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ bin/imageDifference.py
bin/imageDifferenceWinter2013.py
bin/ingestCalibs.py
bin/ingestImages.py
bin/ingestReferenceCatalog.py
bin/makeCoaddTempExp.py
bin/makeDiscreteSkyMap.py
bin/makeSkyMap.py
Expand Down
7 changes: 4 additions & 3 deletions python/lsst/pipe/tasks/detectAndMeasure.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
from lsst.afw.table import SourceTable, IdFactory
from lsst.meas.algorithms import SourceDetectionTask
from lsst.meas.deblender import SourceDeblendTask
from lsst.meas.base import BasePlugin, SingleFrameMeasurementTask, MeasureApCorrTask
from lsst.meas.base import BasePlugin, SingleFrameMeasurementTask
from lsst.meas.algorithms import MeasureApCorrTask

__all__ = ["DetectAndMeasureConfig", "DetectAndMeasureTask"]

Expand Down Expand Up @@ -239,9 +240,9 @@ def measure(self, exposure, exposureIdInfo, sourceCat, allowApCorr=True):

sourceCat.sort(SourceTable.getParentKey())

if self.config.doMeasureApCorr:
if self.config.doMeasureApCorr and allowApCorr:
# measure the aperture correction map
apCorrMap = self.measureApCorr.run(bbox=exposure.getBBox(), catalog=sourceCat).apCorrMap
apCorrMap = self.measureApCorr.run(exposure=exposure, catalog=sourceCat).apCorrMap
exposure.getInfo().setApCorrMap(apCorrMap)

# 2) run APCORR_ORDER only to apply the aperture correction to the measured
Expand Down
2 changes: 1 addition & 1 deletion python/lsst/pipe/tasks/measurePsf.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def __init__(self, schema=None, **kwargs):
else:
self.candidateKey = None
self.usedKey = None
self.makeSubtask("starSelector")
self.makeSubtask("starSelector", schema=schema)
self.psfDeterminer = self.config.psfDeterminer.apply()

@pipeBase.timeMethod
Expand Down