Skip to content

Commit

Permalink
Test potential fix to support older versions of scipy (and ubuntu 22.04)
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebBell committed Aug 5, 2024
1 parent 4a79821 commit 62de8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thermo/utils/tp_dependent_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def interpolate_P(self, T, P, name):

# Only allow linear extrapolation, but with whatever transforms are specified
# extrapolator = RectBivariateSpline(Ts2_sorted, Ps2_sorted, properties2_sorted.T, kx=1, ky=1, s=0) # interpolation if fill value is missing
extrapolator = RegularGridInterpolator((Ts2_sorted, Ps2_sorted), properties2_sorted.T, method='slinear', fill_value=None, bounds_error=False) # interpolation if fill value is missing
extrapolator = RegularGridInterpolator((Ts2_sorted, Ps2_sorted), properties2_sorted.T, method='linear', fill_value=None, bounds_error=False) # interpolation if fill value is missing
# If more than 5 property points, create a spline interpolation
if len(properties) >= 5:
spline = RectBivariateSpline(Ts2_sorted, Ps2_sorted, properties2_sorted.T, kx=3, ky=3, s=0)
Expand Down

0 comments on commit 62de8b6

Please sign in to comment.