Skip to content

Commit 007ff97

Browse files
authored
processor.PTV2del(): rename integrate func call to scipy-1.14 (#35)
+ `processor.PTV2del()`: rename integrate func call to scipy-1.14 from `scipy.integrate.cumtrapz()` to `scipy.integrate.cumulative_trapezoid()`, as the former is removed from scipy since version 1.14.
1 parent 293308e commit 007ff97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pyaps3/processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,13 +216,13 @@ def PTV2del(Presi,Tempi,Vpri,hgt,cdict,verbose=False):
216216
DDry2[:,:,:] = k1*Rd*(Presi[:,:,:] - Presi[:,:,-1][:,:,np.newaxis])*1.0e-6/g
217217

218218
#Wet delay
219-
S1 = intg.cumtrapz(WonT,x=hgt,axis=-1)
219+
S1 = intg.cumulative_trapezoid(WonT,x=hgt,axis=-1)
220220
val = 2*S1[:,:,-1]-S1[:,:,-2]
221221
val = val[:,:,None]
222222
S1 = np.concatenate((S1,val),axis=-1)
223223
del WonT
224224

225-
S2 = intg.cumtrapz(WonT2,x=hgt,axis=-1)
225+
S2 = intg.cumulative_trapezoid(WonT2,x=hgt,axis=-1)
226226
val = 2*S2[:,:,-1]-S2[:,:,-2]
227227
val = val[:,:,None]
228228
S2 = np.concatenate((S2,val),axis=-1)

0 commit comments

Comments
 (0)