File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -291,6 +291,7 @@ def setGetValueOpt(self):
291291 # Crete method to interpolate this info for each interpolation type
292292 if self .__interpolation__ == "spline" :
293293 coeffs = self .__splineCoefficients__
294+
294295 def getValueOpt (x ):
295296 xInterval = np .searchsorted (xData , x )
296297 # Interval found... interpolate... or extrapolate
@@ -315,6 +316,7 @@ def getValueOpt(x):
315316 self .getValueOpt = getValueOpt
316317
317318 elif self .__interpolation__ == "linear" :
319+
318320 def getValueOpt (x ):
319321 xInterval = np .searchsorted (xData , x )
320322 # Interval found... interpolate... or extrapolate
@@ -342,6 +344,7 @@ def getValueOpt(x):
342344
343345 elif self .__interpolation__ == "akima" :
344346 coeffs = np .array (self .__akimaCoefficients__ )
347+
345348 def getValueOpt (x ):
346349 xInterval = np .searchsorted (xData , x )
347350 # Interval found... interpolate... or extrapolate
@@ -365,6 +368,7 @@ def getValueOpt(x):
365368
366369 elif self .__interpolation__ == "polynomial" :
367370 coeffs = self .__polynomialCoefficients__
371+
368372 def getValueOpt (x ):
369373 # Interpolate... or extrapolate
370374 if xmin <= x <= xmax :
You can’t perform that action at this time.
0 commit comments