Skip to content

Commit d4cc243

Browse files
committed
Fix use of deprecated scipy.integrate.trapz
1 parent 197001d commit d4cc243

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ptplot/science/snr.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def StockBkg_ComputeSNR(SensFr, SensOm, GWFr, GWOm, Tobs, fmin=-1, fmax=-1) :
108108

109109
# Numerical integration over frequency
110110
rat = OmGWi**2 / OmEff**2
111-
Itg = scipy.integrate.trapz(rat, fr)
111+
Itg = scipy.integrate.trapezoid(rat, fr)
112112

113113
# Calculate snr taking into account the observation time
114114
snr = np.sqrt(Tobs*Itg)

0 commit comments

Comments
 (0)