Skip to content

Commit

Permalink
Fix bug in snap tests
Browse files Browse the repository at this point in the history
This didn't actually affect the tests, but it's better to have two
distinct exposures in the test butler.
  • Loading branch information
parejkoj committed Feb 9, 2024
1 parent afa0039 commit 89cb8e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_calibrateImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class CalibrateImageTaskRunQuantumTests(lsst.utils.tests.TestCase):
def setUp(self):
instrument = "testCam"
exposure0 = 101
exposure1 = 101
exposure1 = 102
visit = 100101
detector = 42

Expand All @@ -408,10 +408,10 @@ def setUp(self):

# dataIds for fake data
butlerTests.addDataIdValue(self.repo, "instrument", instrument)
butlerTests.addDataIdValue(self.repo, "detector", detector)
butlerTests.addDataIdValue(self.repo, "exposure", exposure0)
butlerTests.addDataIdValue(self.repo, "exposure", exposure1)
butlerTests.addDataIdValue(self.repo, "visit", visit)
butlerTests.addDataIdValue(self.repo, "detector", detector)

# inputs
butlerTests.addDatasetType(self.repo, "postISRCCD", {"instrument", "exposure", "detector"},
Expand Down Expand Up @@ -455,6 +455,7 @@ def setUp(self):
# put empty data
self.butler = butlerTests.makeTestCollection(self.repo)
self.butler.put(afwImage.ExposureF(), "postISRCCD", self.exposure0_id)
self.butler.put(afwImage.ExposureF(), "postISRCCD", self.exposure1_id)
self.butler.put(afwTable.SimpleCatalog(), "gaia_dr3_20230707", self.htm_id)
self.butler.put(afwTable.SimpleCatalog(), "ps1_pv3_3pi_20170110", self.htm_id)

Expand Down

0 comments on commit 89cb8e8

Please sign in to comment.