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 Mar 22, 2024
1 parent 7020ca4 commit f2d3e67
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 @@ -406,7 +406,7 @@ class CalibrateImageTaskRunQuantumTests(lsst.utils.tests.TestCase):
def setUp(self):
instrument = "testCam"
exposure0 = 101
exposure1 = 101
exposure1 = 102
visit = 100101
detector = 42

Expand All @@ -422,10 +422,10 @@ def setUp(self):
self.repo.registry.syncDimensionData("instrument", instrumentRecord)

# dataIds for fake data
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 @@ -475,6 +475,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 f2d3e67

Please sign in to comment.