Skip to content

Commit

Permalink
replace scipy.ndimage.filters with scipy.ndimage for scipy v2 (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
shachafl authored Nov 21, 2024
1 parent 4501c4d commit f9a7937
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion starfish/core/image/Filter/bandpass.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Bandpass(FilterAlgorithm):
"""
Convolve with a Gaussian to remove short-wavelength noise and subtract out long-wavelength
variations, retaining features of intermediate scale. This implementation relies on
scipy.ndimage.filters.gaussian_filter.
scipy.ndimage.gaussian_filter.
This method is a thin wrapper around :doc:`trackpy:generated/trackpy.preprocessing.bandpass`.
Expand Down
4 changes: 2 additions & 2 deletions starfish/core/image/Filter/mean_high_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
import xarray as xr
from scipy.ndimage.filters import uniform_filter
from scipy.ndimage import uniform_filter

from starfish.core.imagestack.imagestack import ImageStack
from starfish.core.types import Levels, Number
Expand All @@ -22,7 +22,7 @@ class MeanHighPass(FilterAlgorithm):
The mean filter is also known as a uniform or box filter. It can also be considered as a fast
approximation to a GaussianHighPass filter.
This is a pass through for :py:func:`scipy.ndimage.filters.uniform_filter`
This is a pass through for :py:func:`scipy.ndimage.uniform_filter`
Parameters
----------
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from scipy.ndimage.filters import gaussian_filter
from scipy.ndimage import gaussian_filter

from starfish import ImageStack
from starfish.core.spots.DecodeSpots.trace_builders import build_traces_nearest_neighbors
Expand Down
2 changes: 1 addition & 1 deletion starfish/core/test/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from typing import Tuple

import numpy as np
from scipy.ndimage.filters import gaussian_filter
from scipy.ndimage import gaussian_filter
from skimage import img_as_float32, img_as_uint

from starfish import Codebook, ImageStack, IntensityTable
Expand Down

0 comments on commit f9a7937

Please sign in to comment.