Skip to content

Commit

Permalink
Merge pull request #228 from lsst/tickets/DM-24347
Browse files Browse the repository at this point in the history
DM-24347: Allow WCS ingest test to be used for all obs types
  • Loading branch information
timj committed Apr 24, 2020
2 parents 6423acc + 7f88afc commit 0e06596
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions python/lsst/obs/base/ingest_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,8 @@ def runIngestTest(self, files=None):
# Since components follow a different code path we check that
# WCS match and also we check that at least the shape
# of the image is the same (rather than doing per-pixel equality)
# Check the observation type before trying to check WCS
obsType = self.butler.registry.expandDataId(dataId).records["exposure"].observation_type
if obsType == "science":
wcs = self.butler.get("raw.wcs", dataId)
self.assertEqual(wcs, exposure.getWcs())
wcs = self.butler.get("raw.wcs", dataId)
self.assertEqual(wcs, exposure.getWcs())

rawImage = self.butler.get("raw.image", dataId)
self.assertEqual(rawImage.getBBox(), exposure.getBBox())
Expand Down

0 comments on commit 0e06596

Please sign in to comment.