[SciPy-Dev] curve_fit() should require initial values for parameters

Stefan van der Walt stefanv at berkeley.edu
Thu Jan 24 02:07:38 EST 2019


On Thu, 24 Jan 2019 15:50:45 +1100, Andrew Nelson wrote:
> >
> > In terms of proposed usage emitting warnings is relatively
> straightforward. I guess p0 should become a new positional argument as part
> of this change (or some other name). How does one introduce a new
> positional argument whilst remaining back compatible? Using *args?

That's harder work; perhaps just keep it a kwd arg for now and make sure
it gets specified?

Soon, we'll have https://www.python.org/dev/peps/pep-3102/ !

Stéfan


More information about the SciPy-Dev mailing list