Skip to content

Commit

Permalink
Merge pull request #358 from lsst/tickets/DM-41145
Browse files Browse the repository at this point in the history
DM-41145: Deprecate Astrometry and Matcher SourceSelectors
  • Loading branch information
parejkoj authored Dec 4, 2023
2 parents c49de88 + 0134c9a commit 33a09d4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AstrometrySourceSelectorTask

``AstrometrySourceSelectorTask`` selects sources that are useful for astrometry.

To be removed on DM-41146.

.. _lsst.meas.algorithms.AstrometrySourceSelectorTask-api:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ MatcherSourceSelectorTask

``MatcherSourceSelectorTask`` selects sources that are useful for matching, without checking footprints or bad flags.

To be removed on DM-41146.

.. _lsst.meas.algorithms.MatcherSourceSelectorTask-api:

Python API summary
Expand Down
7 changes: 7 additions & 0 deletions python/lsst/meas/algorithms/astrometrySourceSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@

__all__ = ["AstrometrySourceSelectorConfig", "AstrometrySourceSelectorTask"]

from deprecated.sphinx import deprecated

import numpy as np

import lsst.pex.config as pexConfig
Expand Down Expand Up @@ -61,6 +63,11 @@ class AstrometrySourceSelectorConfig(BaseSourceSelectorConfig):
)


# remove this file on DM-41146
@deprecated(reason=("This Task has been replaced by an appropriately configured ScienceSourceSelector."
" See `AstrometryConfig.setDefaults` in meas_astrom for an example config that was "
"made to closely match this Task. Will be removed after v27."),
version="v27.0", category=FutureWarning)
@pexConfig.registerConfigurable("astrometry", sourceSelectorRegistry)
class AstrometrySourceSelectorTask(BaseSourceSelectorTask):
"""Select sources that are useful for astrometry.
Expand Down
6 changes: 6 additions & 0 deletions python/lsst/meas/algorithms/matcherSourceSelector.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

__all__ = ["MatcherSourceSelectorConfig", "MatcherSourceSelectorTask"]

from deprecated.sphinx import deprecated

import numpy as np

import lsst.pex.config as pexConfig
Expand Down Expand Up @@ -49,6 +51,10 @@ class MatcherSourceSelectorConfig(BaseSourceSelectorConfig):
)


# remove this file on DM-41146
@deprecated(reason=("This Task has been replaced by an appropriately configured ScienceSourceSelector."
" Will be removed after v27."),
version="v27.0", category=FutureWarning)
@pexConfig.registerConfigurable("matcher", sourceSelectorRegistry)
class MatcherSourceSelectorTask(BaseSourceSelectorTask):
"""Select sources that are useful for matching.
Expand Down

0 comments on commit 33a09d4

Please sign in to comment.