Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-32940: Use the butler.exists() API replacing datasetExists #188

Merged
merged 1 commit into from
Jun 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 7 additions & 7 deletions tests/test_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,12 @@ def testrunApPipeGen3Steps(self):

# Use datasets as a proxy for pipeline completion
id = _getDataIds(self.workspace.analysisButler)[0]
self.assertTrue(self.workspace.analysisButler.datasetExists("calexp", id))
self.assertTrue(self.workspace.analysisButler.datasetExists("src", id))
self.assertTrue(self.workspace.analysisButler.datasetExists("goodSeeingDiff_differenceExp", id))
self.assertTrue(self.workspace.analysisButler.datasetExists("goodSeeingDiff_diaSrc", id))
self.assertTrue(self.workspace.analysisButler.datasetExists("apdb_marker", id))
self.assertTrue(self.workspace.analysisButler.datasetExists("goodSeeingDiff_assocDiaSrc", id))
self.assertTrue(self.workspace.analysisButler.exists("calexp", id))
self.assertTrue(self.workspace.analysisButler.exists("src", id))
self.assertTrue(self.workspace.analysisButler.exists("goodSeeingDiff_differenceExp", id))
self.assertTrue(self.workspace.analysisButler.exists("goodSeeingDiff_diaSrc", id))
self.assertTrue(self.workspace.analysisButler.exists("apdb_marker", id))
self.assertTrue(self.workspace.analysisButler.exists("goodSeeingDiff_assocDiaSrc", id))

def _getCmdLineArgs(self, parseAndRunArgs):
if parseAndRunArgs[0]:
Expand Down Expand Up @@ -147,7 +147,7 @@ def testrunApPipeGen3Reuse(self):
id = _getDataIds(self.workspace.analysisButler)[0]
calexpQuery = set(self.workspace.analysisButler.registry.queryDatasetTypes("calexp"))
calexpExists = len(calexpQuery) > 0
self.assertFalse(calexpExists and self.workspace.analysisButler.datasetExists("calexp", id))
self.assertFalse(calexpExists and self.workspace.analysisButler.exists("calexp", id))


class MemoryTester(lsst.utils.tests.MemoryTestCase):
Expand Down