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

Replace scipy.ndimage.filters with scipy.ndimage for scipy v2 support #2035

Merged
merged 1 commit into from
Nov 21, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading