Skip to content

Commit

Permalink
Update col names and tests to work with refcat v2
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsaunders committed Dec 13, 2022
1 parent c9534b9 commit c63f907
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Associations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ void Associations::collectRefStars(afw::table::SimpleCatalog &refCat, geom::Angl

// TODO: we aren't getting covariances from Gaia yet, so maybe ignore this for now?
try {
pmRaDecCovKey = refCat.getSchema().find<float>("pm_ra_Dec_Cov").key;
pmRaDecCovKey = refCat.getSchema().find<float>("pm_ra_pm_dec_Cov").key;
} catch (pex::exceptions::NotFoundError &ex) {
LOGLS_WARN(_log, "No ra/dec proper motion covariances in refcat: " << ex.what());
}
Expand Down
3 changes: 2 additions & 1 deletion tests/test_jointcal.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from lsst.daf.base import DateTime
import lsst.geom
from lsst.meas.algorithms import getRefFluxField, ReferenceObjectLoader
from lsst.meas.algorithms import convertReferenceCatalog
import lsst.obs.base
import lsst.pipe.base
import lsst.jointcal
Expand All @@ -52,7 +53,7 @@ def setup_module(module):

def make_fake_refcat(center, flux, filterName):
"""Make a fake reference catalog."""
schema = ReferenceObjectLoader.makeMinimalSchema([filterName], addProperMotion=True)
schema = convertReferenceCatalog._makeSchema([filterName], fullPositionInformation=True)
catalog = lsst.afw.table.SimpleCatalog(schema)
record = catalog.addNew()
record.setCoord(center)
Expand Down

0 comments on commit c63f907

Please sign in to comment.