I'm working with non-linear regression with python and obtained 'popt' and 'pcov' from 'curve_fit' but when I call 'popt' from a function, I receive an error that there is a missing argument.
I don't understand why do I have to use a pointer to call this variable, I thought that with python we don't need to use it.
Here's an example from Scipy documentation:
>>>> popt, pcov = curve_fit(func, xdata, ydata, bounds=(0, [3., 1., 0.5]))
>>>> popt
array([2.43736712, 1. , 0.34463856])
>>>> plt.plot(xdata, func(xdata, *popt), 'g--',
... label='fit: a=%5.3f, b=%5.3f, c=%5.3f' % tuple(popt))