Skip to content

Commit

Permalink
Merge pull request #170 from lsst/tickets/DM-28329
Browse files Browse the repository at this point in the history
DM-28329: remove joinMatchList test and cleanup to use exposure info properties
  • Loading branch information
parejkoj committed Sep 2, 2022
2 parents 3c931c7 + 064da7d commit b4acbdd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 18,522 deletions.
13 changes: 5 additions & 8 deletions python/lsst/meas/astrom/ref_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,21 +249,18 @@ def _getExposureMetadata(self, exposure):
- ``photoCalib`` : photometric calibration (`lsst.afw.image.PhotoCalib`)
- ``filterName`` : name of filter band (`str`)
- ``epoch`` : date of exposure (`astropy.time.Time`)
"""
exposureInfo = exposure.getInfo()
filterLabel = exposureInfo.getFilter()
filterLabel = exposure.info.getFilter()
filterName = filterLabel.bandLabel if filterLabel is not None else None
epoch = None
if exposure.getInfo().hasVisitInfo():
epochTaiMjd = exposure.getInfo().getVisitInfo().getDate().get(system=DateTime.MJD,
scale=DateTime.TAI)
if exposure.info.hasVisitInfo():
epochTaiMjd = exposure.visitInfo.date.get(system=DateTime.MJD, scale=DateTime.TAI)
epoch = astropy.time.Time(epochTaiMjd, scale="tai", format="mjd")

return pipeBase.Struct(
bbox=exposure.getBBox(),
wcs=exposureInfo.getWcs(),
photoCalib=exposureInfo.getPhotoCalib(),
wcs=exposure.info.getWcs(),
photoCalib=exposure.info.getPhotoCalib(),
filterName=filterName,
epoch=epoch,
)
127 changes: 0 additions & 127 deletions tests/test_joinMatchListWithCatalog.py

This file was deleted.

0 comments on commit b4acbdd

Please sign in to comment.