Skip to content

Commit

Permalink
Merge pull request #24 from lsst/tickets/DM-31950
Browse files Browse the repository at this point in the history
DM-31950: Carry over changes in dp02_dc2.yml schema to imsim
  • Loading branch information
yalsayyad authored Jun 10, 2022
2 parents 1d37475 + eed4895 commit 19066b4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,42 +68,42 @@ def _validateSchema(self, dataset, dataId, tableName):
def testObjectSchemaMatch(self):
"""Check objectTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("objectTable_tract", dataId, "object")
self._validateSchema("objectTable_tract", dataId, "Object")

def testSourceSchemaMatch(self):
"""Check one sourceTable_visit"""
dataId = {"instrument": "LSSTCam-imSim", "detector": 100, "visit": 5884, "band": "y"}
self._validateSchema("sourceTable_visit", dataId, "source")
self._validateSchema("sourceTable_visit", dataId, "Source")

def testForcedSourceSchemaMatch(self):
"""Check forcedSourceTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("forcedSourceTable_tract", dataId, "forcedSource")
self._validateSchema("forcedSourceTable_tract", dataId, "ForcedSource")

def testDiaObjectSchemaMatch(self):
"""Check diaObjectTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("diaObjectTable_tract", dataId, "diaObject")
self._validateSchema("diaObjectTable_tract", dataId, "DiaObject")

def testDiaSourceSchemaMatch(self):
"""Check one diaSourceTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("diaSourceTable_tract", dataId, "diaSource")
self._validateSchema("diaSourceTable_tract", dataId, "DiaSource")

def testForcedSourceeOnDiaObjectSchemaMatch(self):
"""Check forcedSourceOnDiaObjectTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("forcedSourceOnDiaObjectTable_tract", dataId, "forcedSourceOnDiaObject")
self._validateSchema("forcedSourceOnDiaObjectTable_tract", dataId, "ForcedSourceOnDiaObject")

def testMatchRefSchemaMatch(self):
"""Check match_ref_truth_summary_objectTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("match_ref_truth_summary_objectTable_tract", dataId, "matchesTruth")
self._validateSchema("match_ref_truth_summary_objectTable_tract", dataId, "MatchesTruth")

def testMatchObjectSchemaMatch(self):
"""Check match_target_truth_summary_objectTable_tract"""
dataId = {"instrument": "LSSTCam-imSim", "tract": 0, "skymap": "discrete/ci_imsim/4k"}
self._validateSchema("match_target_truth_summary_objectTable_tract", dataId, "matchesObject")
self._validateSchema("match_target_truth_summary_objectTable_tract", dataId, "MatchesObject")


if __name__ == "__main__":
Expand Down

0 comments on commit 19066b4

Please sign in to comment.