From ed3e79fd4b335a3c7d94a6d20db937d57f0f0925 Mon Sep 17 00:00:00 2001 From: John Parejko Date: Thu, 8 Feb 2024 23:26:20 -0800 Subject: [PATCH] Fix bug in snap tests This didn't actually affect the tests, but it's better to have two distinct exposures in the test butler. --- tests/test_calibrateImage.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_calibrateImage.py b/tests/test_calibrateImage.py index 6944a4beba..60d01eea3c 100644 --- a/tests/test_calibrateImage.py +++ b/tests/test_calibrateImage.py @@ -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 @@ -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"}, @@ -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)