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-25132: Update ref schema making function #735

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Show file tree
Hide file tree
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
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