From cf9e0923d238ecf0a80033e7571f9214e0cf7e17 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 c44c238cf..f7a654bf3 100644 --- a/tests/test_calibrateImage.py +++ b/tests/test_calibrateImage.py @@ -383,7 +383,7 @@ class CalibrateImageTaskRunQuantumTests(lsst.utils.tests.TestCase): def setUp(self): instrument = "testCam" exposure0 = 101 - exposure1 = 101 + exposure1 = 102 visit = 100101 detector = 42 @@ -399,10 +399,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"}, @@ -452,6 +452,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)