Skip to content

Commit

Permalink
Dependencies:Be robust to scipy version >=1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
smithsp committed Jun 25, 2024
1 parent 3ad3d03 commit 65e8238
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion omas/omas_physics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,10 @@ def core_profiles_currents(
)
return

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

prof1d = ods['core_profiles.profiles_1d'][time_index]

Expand Down

0 comments on commit 65e8238

Please sign in to comment.