Skip to content

Commit

Permalink
Merge pull request #192 from lsst/tickets/DM-42489
Browse files Browse the repository at this point in the history
DM-42489: Update tests for changes in Apdb.makeSchema interface
  • Loading branch information
andy-slac committed Feb 26, 2024
2 parents 14551fb + ef7d7b9 commit 2c0a737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_loadDiaCatalogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import yaml

from lsst.ap.association import LoadDiaCatalogsTask, LoadDiaCatalogsConfig
from lsst.dax.apdb import ApdbSql, ApdbSqlConfig, ApdbTables
from lsst.dax.apdb import Apdb, ApdbSql, ApdbSqlConfig, ApdbTables
from lsst.utils import getPackageDir
import lsst.utils.tests
from utils_tests import makeExposure, makeDiaObjects, makeDiaSources, makeDiaForcedSources
Expand Down Expand Up @@ -64,8 +64,8 @@ def setUp(self):
self.apdbConfig.dia_object_index = "baseline"
self.apdbConfig.dia_object_columns = []

Apdb.makeSchema(self.apdbConfig)
self.apdb = ApdbSql(config=self.apdbConfig)
self.apdb.makeSchema()

self.exposure = makeExposure(False, False)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_packageAlerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
from lsst.afw.cameraGeom.testUtils import DetectorWrapper
import lsst.afw.image as afwImage
import lsst.daf.base as dafBase
from lsst.dax.apdb import ApdbSql, ApdbSqlConfig
from lsst.dax.apdb import Apdb, ApdbSql, ApdbSqlConfig
import lsst.geom as geom
import lsst.meas.base.tests
from lsst.sphgeom import Box
Expand Down Expand Up @@ -71,8 +71,8 @@ def _roundTripThroughApdb(objects, sources, forcedSources, dateTime):
apdbConfig.dia_object_index = "baseline"
apdbConfig.dia_object_columns = []

Apdb.makeSchema(apdbConfig)
apdb = ApdbSql(config=apdbConfig)
apdb.makeSchema()

wholeSky = Box.full()
diaObjects = pd.concat([apdb.getDiaObjects(wholeSky), objects])
Expand Down

0 comments on commit 2c0a737

Please sign in to comment.