@@ -614,11 +614,11 @@ def _updateRcalcSampling(self):
614614 tp = self .getFitSamplingType ()
615615 # Gcalc:
616616 if len (self ._Gcalc ) > 0 :
617- newGcalc = grid_interpolation (self ._rcalc , self ._Gcalc , newrcalc , tp )
617+ newGcalc = grid_interpolation (self ._rcalc , self ._Gcalc , newrcalc , tp = tp )
618618 self ._Gcalc = list (newGcalc )
619619 # dGcalc
620620 if len (self ._dGcalc ) > 0 :
621- newdGcalc = grid_interpolation (self ._rcalc , self ._dGcalc , newrcalc , tp )
621+ newdGcalc = grid_interpolation (self ._rcalc , self ._dGcalc , newrcalc , tp = tp )
622622 self ._dGcalc = list (newdGcalc )
623623 # invalidate Gtrunc and dGtrunc
624624 self ._Gtrunc = []
@@ -712,7 +712,7 @@ def _get_Gtrunc(self):
712712 self ._updateRcalcSampling ()
713713 if not self ._Gtrunc :
714714 tp = self .getFitSamplingType ()
715- newGtrunc = grid_interpolation (self .robs , self .Gobs , self .rcalc , tp )
715+ newGtrunc = grid_interpolation (self .robs , self .Gobs , self .rcalc , tp = tp )
716716 self ._Gtrunc = list (newGtrunc )
717717 return self ._Gtrunc
718718
@@ -733,9 +733,9 @@ def _get_dGtrunc(self):
733733 self .robs ,
734734 self .dGobs ,
735735 self .rcalc ,
736- tp ,
737736 left = sum (self .dGobs [:1 ]),
738737 right = sum (self .dGobs [- 1 :]),
738+ tp = tp ,
739739 )
740740 self ._dGtrunc = list (newdGtrunc )
741741 return self ._dGtrunc
@@ -814,7 +814,7 @@ def _linear_interpolation(x0, y0, x1, youtleft, youtright):
814814 return y1
815815
816816
817- def grid_interpolation (x0 , y0 , x1 , tp , left = None , right = None ):
817+ def grid_interpolation (x0 , y0 , x1 , left = None , right = None , tp = None ):
818818 """Interpolate values from one grid onto another using either linear or
819819 Whittaker–Shannon interpolation.
820820
0 commit comments