Skip to content

Commit

Permalink
Update for cameraGeom API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
czwa committed Sep 25, 2019
1 parent a1a4c1a commit f621bde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/lsst/cp/pipe/makeBrighterFatterKernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def runDataRef(self, dataRef, visitPairs):
# these need to be retrieved from the camera and dereferenced
# rather than accessed directly
detector = dataRef.get('camera')[dataRef.dataId[self.config.ccdKey]]
ampInfoCat = detector.getAmpInfoCatalog()
ampInfoCat = detector.getAmplifiers()
ampNames = [amp.getName() for amp in ampInfoCat]
xcorrs = {key: [] for key in ampNames}
means = {key: [] for key in ampNames}
Expand Down Expand Up @@ -499,7 +499,7 @@ def _makeCroppedExposures(self, exp, gains, level):
returnAreas = {}

detector = local_exp.getDetector()
ampInfoCat = detector.getAmpInfoCatalog()
ampInfoCat = detector.getAmplifiers()

mi = local_exp.getMaskedImage() # makeStatistics does not seem to take exposures
temp = mi.clone()
Expand Down Expand Up @@ -681,7 +681,7 @@ def estimateGains(self, dataRef, visitPairs):
"""
# NB: don't use dataRef.get('raw_detector') due to composites
detector = dataRef.get('camera')[dataRef.dataId[self.config.ccdKey]]
ampInfoCat = detector.getAmpInfoCatalog()
ampInfoCat = detector.getAmplifiers()
ampNames = [amp.getName() for amp in ampInfoCat]

ampMeans = {key: [] for key in ampNames} # these get turned into np.arrays later
Expand Down

0 comments on commit f621bde

Please sign in to comment.