Skip to content

Commit

Permalink
update for scipy > 1.14
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrammer committed Jun 26, 2024
1 parent d4fc775 commit 8609c96
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions eazy/photoz.py
Original file line number Diff line number Diff line change
Expand Up @@ -2587,8 +2587,11 @@ def show_fit(self, id, id_is_idx=False, zshow=None, show_fnu=0, get_spec=False,
"""
import matplotlib.pyplot as plt
from matplotlib.gridspec import GridSpec
from scipy.integrate import cumtrapz

try:
from scipy.integrate import cumtrapz
except ImportError:
from scipy.integrate import cumulative_trapezoid as cumtrapz

import astropy.units as u
from cycler import cycler

Expand Down Expand Up @@ -3824,7 +3827,10 @@ def pz_percentiles(self, percentiles=[2.5,16,50,84,97.5], oversample=5,
"""
import scipy.interpolate
from scipy.integrate import cumtrapz
try:
from scipy.integrate import cumtrapz
except ImportError:
from scipy.integrate import cumulative_trapezoid as cumtrapz

interpolator = scipy.interpolate.Akima1DInterpolator

Expand Down

0 comments on commit 8609c96

Please sign in to comment.