diff --git a/python/cucim/src/cucim/skimage/util/noise.py b/python/cucim/src/cucim/skimage/util/noise.py index fb7d9dc28..675dac293 100644 --- a/python/cucim/src/cucim/skimage/util/noise.py +++ b/python/cucim/src/cucim/skimage/util/noise.py @@ -1,6 +1,5 @@ import cupy as cp -from .._shared.utils import DEPRECATED, deprecate_parameter from .dtype import img_as_float __all__ = ["random_noise"] @@ -54,12 +53,7 @@ def _bernoulli(p, shape, *, rng): return rng.random(shape) <= p -@deprecate_parameter( - "seed", new_name="rng", start_version="23.12", stop_version="24.12" -) -def random_noise( - image, mode="gaussian", rng=None, clip=True, *, seed=DEPRECATED, **kwargs -): +def random_noise(image, mode="gaussian", rng=None, clip=True, **kwargs): """ Function to add random noise of various types to a floating-point image. diff --git a/python/cucim/src/cucim/skimage/util/tests/test_random_noise.py b/python/cucim/src/cucim/skimage/util/tests/test_random_noise.py index 43383113f..6dcc0578c 100644 --- a/python/cucim/src/cucim/skimage/util/tests/test_random_noise.py +++ b/python/cucim/src/cucim/skimage/util/tests/test_random_noise.py @@ -16,14 +16,6 @@ def test_set_seed(): assert_array_equal(test, random_noise(cam, rng=seed)) -def test_random_noise_futurewarning(): - seed = 42 - cam = cp.asarray(camerad) - with pytest.warns(FutureWarning): - test = random_noise(cam, seed=seed) - assert_array_equal(test, random_noise(cam, rng=seed)) - - def test_salt(): amount = 0.15 cam = img_as_float(camerad)