Skip to content

Commit

Permalink
Update utils to use new metadata butler getters
Browse files Browse the repository at this point in the history
  • Loading branch information
parejkoj committed Oct 16, 2017
1 parent dfcfed9 commit 9490863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/jointcal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def compute_rms(self, data_refs, reference):
"""

# DECAM doesn't have "filter" in its registry, so we have to get filter names from VisitInfo.
self.filters = [ref.get('calexp').getInfo().getFilter().getName() for ref in data_refs]
self.filters = [ref.get('calexp_filter').getName() for ref in data_refs]
self.visits_per_dataRef = [ref.dataId['visit'] for ref in data_refs]

def compute(catalogs, photoCalibs):
Expand Down Expand Up @@ -118,7 +118,7 @@ def compute(catalogs, photoCalibs):
old_calibs = []
if self.do_photometry:
for ref in data_refs:
calib = ref.get('calexp').getCalib()
calib = ref.get('calexp_calib')
fluxMag0 = calib.getFluxMag0()
old_calibs.append(lsst.afw.image.PhotoCalib(1.0/fluxMag0[0], fluxMag0[1]/fluxMag0[0]**2))

Expand Down

0 comments on commit 9490863

Please sign in to comment.