From 8543e0603f9b81efd9472b72a0606a4df5f11c5e Mon Sep 17 00:00:00 2001 From: Tony Tung Date: Wed, 19 Jun 2019 11:45:23 -0700 Subject: [PATCH] [easy] Warn about the deprecation of the MaxProject filter Depends on #1386 --- starfish/core/image/_filter/max_proj.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/starfish/core/image/_filter/max_proj.py b/starfish/core/image/_filter/max_proj.py index ee88f6c33..30ad81253 100644 --- a/starfish/core/image/_filter/max_proj.py +++ b/starfish/core/image/_filter/max_proj.py @@ -1,3 +1,4 @@ +import warnings from typing import Iterable, Optional, Union from starfish.core.imagestack.imagestack import ImageStack @@ -23,6 +24,10 @@ class MaxProject(FilterAlgorithmBase): def __init__(self, dims: Iterable[Union[Axes, str]]) -> None: + warnings.warn( + "Filter.MaxProject is being deprecated in favor of Filter.Reduce(func='max')", + DeprecationWarning, + ) self.dims = dims _DEFAULT_TESTING_PARAMETERS = {"dims": 'r'}