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

DM-27177: Deprecate transitional getFilterLabel API #166

Merged
merged 1 commit into from
Jun 8, 2022
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
2 changes: 1 addition & 1 deletion python/lsst/meas/astrom/ref_match.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def _getExposureMetadata(self, exposure):

"""
exposureInfo = exposure.getInfo()
filterLabel = exposureInfo.getFilterLabel()
filterLabel = exposureInfo.getFilter()
filterName = filterLabel.bandLabel if filterLabel is not None else None
epoch = None
if exposure.getInfo().hasVisitInfo():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_astrometryTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def setUp(self):
cdMatrix=afwGeom.makeCdMatrix(scale=5.1e-5*lsst.geom.degrees))
self.exposure = afwImage.ExposureF(self.bbox)
self.exposure.setWcs(self.tanWcs)
self.exposure.setFilterLabel(afwImage.FilterLabel(band="r", physical="rTest"))
self.exposure.setFilter(afwImage.FilterLabel(band="r", physical="rTest"))
filenames = sorted(glob.glob(os.path.join(refCatDir, 'ref_cats', 'cal_ref_cat', '??????.fits')))
self.refObjLoader = MockReferenceObjectLoaderFromFiles(filenames, htmLevel=8)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_joinMatchListWithCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setUp(self):
smallExposure = ExposureF(os.path.join(testDir, "v695833-e0-c000-a00.sci.fits"))
self.exposure = ExposureF(self.bbox)
self.exposure.setWcs(smallExposure.getWcs())
self.exposure.setFilterLabel(smallExposure.getFilterLabel())
self.exposure.setFilter(smallExposure.getFilter())
# copy the pixels we can, in case the user wants a debug display
mi = self.exposure.getMaskedImage()
mi.assign(smallExposure.getMaskedImage(), smallExposure.getBBox())
Expand Down