Skip to content

Commit

Permalink
Converting scipy.integrate.simps to simpson
Browse files Browse the repository at this point in the history
  • Loading branch information
AarynnCarter committed Jul 2, 2024
1 parent b2c6ff9 commit 073c752
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spaceKLIP/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import importlib
import scipy.ndimage.interpolation as sinterp

from scipy.integrate import simps
from scipy.integrate import simpson
from scipy.ndimage import fourier_shift, gaussian_filter
from scipy.ndimage import shift as spline_shift

Expand Down Expand Up @@ -654,8 +654,8 @@ def _get_tp_comsubst(instrume,
# Compute COM substrate transmission averaged over the respective
# filter profile.
bandpass_throughput = np.interp(comsubst_wave, bandpass_wave, bandpass_throughput)
int_tp_bandpass = simps(bandpass_throughput, comsubst_wave)
int_tp_bandpass_comsubst = simps(bandpass_throughput * comsubst_throughput, comsubst_wave)
int_tp_bandpass = simpson(bandpass_throughput, comsubst_wave)
int_tp_bandpass_comsubst = simpson(bandpass_throughput * comsubst_throughput, comsubst_wave)
tp_comsubst = int_tp_bandpass_comsubst / int_tp_bandpass

# Return.
Expand Down

0 comments on commit 073c752

Please sign in to comment.