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-19852: Add deprecation messages around classes that have moved to pipe_tasks #102

Merged
merged 1 commit into from
Jul 29, 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
7 changes: 7 additions & 0 deletions python/lsst/pipe/drivers/background.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import numpy
import itertools
from scipy.ndimage import gaussian_filter
from deprecated.sphinx import deprecated

import lsst.afw.math as afwMath
import lsst.afw.image as afwImage
Expand Down Expand Up @@ -479,6 +480,12 @@ class FocalPlaneBackgroundConfig(Config):
binning = Field(dtype=int, default=64, doc="Binning to use for CCD background model (pixels)")


@deprecated(
reason="pipe_drivers is deprecated. It will be removed after v25. "
"Please use lsst.pipe.tasks.background.FocalPlaneBackground instead.",
version="v25.0",
category=FutureWarning,
)
class FocalPlaneBackground:
"""Background model for a focal plane camera

Expand Down
9 changes: 9 additions & 0 deletions python/lsst/pipe/drivers/skyCorrection.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from deprecated.sphinx import deprecated

import lsst.afw.math as afwMath
import lsst.afw.image as afwImage
import lsst.pipe.base as pipeBase
Expand Down Expand Up @@ -194,6 +197,12 @@ def setDefaults(self):
self.bgModel2.smoothScale = 1.0


@deprecated(
reason="pipe_drivers is deprecated. It will be removed after v25. "
"Please use lsst.pipe.tasks.skyCorrection.SkyCorrectionTask instead.",
version="v25.0",
category=FutureWarning,
)
class SkyCorrectionTask(pipeBase.PipelineTask, BatchPoolTask):
"""Correct sky over entire focal plane"""
ConfigClass = SkyCorrectionConfig
Expand Down