def bestfit_func(self, bestfit_x):
        """
        Returns y value
        """
        if not self.bestfit_func:
            raise KeyError("Do do_bestfit first")
        return self.args["func"](self.fit_args, bestfit_x)
def bestfit_func ( self , bestfit_x ) : if not self . bestfit_func : raise KeyError ( "Do do_bestfit first" ) return self . args [ "func" ] ( self . fit_args , bestfit_x )
Returns y value