Skip to content

Commit

Permalink
Fix use of deprecated scipy function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZedThree committed Jun 25, 2024
1 parent cbfbf5f commit 1bf9d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fusiondls/LRBv21.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
from scipy import interpolate
from scipy.integrate import cumtrapz
from scipy.integrate import cumulative_trapezoid

from .DLScommonTools import pad_profile
from .Iterate import iterate
Expand Down Expand Up @@ -338,7 +338,7 @@ def LRBv21(
) # Initial upstream pressure in Pa, calculated so it can be kept constant if required

# Cooling curve integral
Lint = cumtrapz(si.Lz[1] * np.sqrt(si.Lz[0]), si.Lz[0], initial=0)
Lint = cumulative_trapezoid(si.Lz[1] * np.sqrt(si.Lz[0]), si.Lz[0], initial=0)
integralinterp = interpolate.interp1d(si.Lz[0], Lint)

# Guesses/initialisations for control variables assuming qpll0 everywhere and qpll=0 at target
Expand Down

0 comments on commit 1bf9d72

Please sign in to comment.