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-34793: Fix gen2 class references #182

Merged
merged 1 commit into from
Jul 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions python/lsst/meas/astrom/directMatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

import warnings

from lsst.pex.config import Config, Field, ConfigurableField
from lsst.pex.config import Config, Field, ConfigurableField, ConfigField
from lsst.pipe.base import Task, Struct
from lsst.meas.algorithms import (LoadReferenceObjectsTask, ScienceSourceSelectorTask,
from lsst.meas.algorithms import (LoadReferenceObjectsConfig, ScienceSourceSelectorTask,
ReferenceSourceSelectorTask)
import lsst.afw.table as afwTable
from lsst.geom import arcseconds, averageSpherePoint
Expand All @@ -25,7 +25,8 @@ class DirectMatchConfigWithoutLoader(Config):
class DirectMatchConfig(DirectMatchConfigWithoutLoader):
"""Configuration for `DirectMatchTask`.
"""
refObjLoader = ConfigurableField(target=LoadReferenceObjectsTask, doc="Load reference objects")
refObjLoader = ConfigField(dtype=LoadReferenceObjectsConfig,
doc="Configuration of reference object loader")


class DirectMatchTask(Task):
Expand Down