Skip to content

Commit

Permalink
Update ref schema making function
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsaunders committed Dec 14, 2022
1 parent 2f5c2ff commit 611260e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_colorterm.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import astropy.units as u

import lsst.utils.tests
from lsst.meas.algorithms import LoadReferenceObjectsTask
from lsst.meas.algorithms import convertReferenceCatalog
from lsst.pipe.tasks.colorterms import Colorterm, ColortermDict, ColortermLibrary, ColortermNotFoundError

# From the last page of http://www.naoj.org/staff/nakata/suprime/illustration/colorterm_report_ver3.pdf
Expand Down Expand Up @@ -113,7 +113,7 @@ def testPickle(self):
def make_fake_refcat(center, flux):
"""Make a fake reference catalog."""
filters = ['f1', 'f2']
schema = LoadReferenceObjectsTask.makeMinimalSchema(filters)
schema = convertReferenceCatalog._makeSchema(filters)
catalog = lsst.afw.table.SimpleCatalog(schema)
record = catalog.addNew()
record.setCoord(center)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_loadReferenceCatalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lsst.utils.tests
import lsst.afw.geom
import lsst.pipe.base as pipeBase
from lsst.meas.algorithms import (LoadReferenceObjectsTask,
from lsst.meas.algorithms import (convertReferenceCatalog,
getRefFluxField,
ReferenceObjectLoader)
from lsst.pipe.tasks.loadReferenceCatalog import LoadReferenceCatalogConfig, LoadReferenceCatalogTask
Expand Down Expand Up @@ -34,7 +34,7 @@ class TrivialLoader(ReferenceObjectLoader):
def make_synthetic_refcat(self, center, flux):
"""Make a synthetic reference catalog."""
filters = ["ref1", "ref2", "ref3"]
schema = LoadReferenceObjectsTask.makeMinimalSchema(filters)
schema = convertReferenceCatalog._makeSchema(filters)
schema.addField('pm_ra', 'D')
schema.addField('pm_dec', 'D')

Expand Down

0 comments on commit 611260e

Please sign in to comment.