Skip to content

Commit

Permalink
scipy.ndimage.filters is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
moustakas committed Jul 21, 2022
1 parent 03d83f9 commit b8acafd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions py/fastspecfit/continuum.py
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ def smooth_continuum(self, wave, flux, ivar, redshift, medbin=150,
Smooth one-sigma uncertainty spectrum.
"""
from scipy.ndimage.filters import median_filter
from scipy.ndimage import median_filter
from numpy.lib.stride_tricks import sliding_window_view
from astropy.stats import sigma_clip

Expand Down Expand Up @@ -1527,7 +1527,7 @@ def kcorr_and_absmag(self, data, continuum, coeff, snrmin=2.0):
"""
from scipy.stats import sigmaclip
from scipy.ndimage.filters import median_filter
from scipy.ndimage import median_filter

redshift = data['zredrock']

Expand Down
2 changes: 1 addition & 1 deletion py/fastspecfit/emlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -1683,7 +1683,7 @@ def qa_fastspec(self, data, fastspec, metadata, coadd_type='healpix',
"""
from astropy.table import Table, Column
from scipy.ndimage.filters import median_filter
from scipy.ndimage import median_filter
import matplotlib.pyplot as plt
from matplotlib import colors
import matplotlib.ticker as ticker
Expand Down
6 changes: 1 addition & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
numpy
scipy
astropy
fitsio
healpy
numba
seaborn
matplotlib
git+https://github.com/desihub/speclite.git@v0.16#egg=speclite
git+https://github.com/desihub/desimodel.git@0.17.0#egg=desimodel
git+https://github.com/desihub/desitarget.git@2.5.0#egg=desitarget
git+https://github.com/desihub/desispec.git@master#egg=desispec
git+https://github.com/desihub/fastspecfit.git@master#egg=fastspecfit
# Install desiutil in .github/workflows/python-package.yml.
# git+https://github.com/desihub/desiutil.git@master#egg=desiutil
git+https://github.com/desihub/desispec.git

0 comments on commit b8acafd

Please sign in to comment.