[Numpy-discussion] Euroscipy

2016-08-02 Thread Sebastian Berg
Hi all, I am still pondering whether or not (and if which days) to go to EuroScipy. Who else is there and would like to discuss a bit or whatever else? - Sebastian signature.asc Description: This is a digitally signed message part ___ NumPy-Discussion

[Numpy-discussion] scipy curve_fit variable list of optimisation parameters

2016-08-02 Thread Siegfried Gonzi
Hi all Does anyone know how to invoke curve_fit with a variable number of parameters, e.g. a1 to a10 without writing it out, e.g. def func2( x, a1,a2,a3,a4 ): # Bessel function tmp = scipy.special.j0( x[:,:] ) return np.dot( tmp[:,:] , np.array( [a1,a2,a3,a4] ) ### y

Re: [Numpy-discussion] scipy curve_fit variable list of optimisation parameters

2016-08-02 Thread Evgeni Burovski
On Tue, Aug 2, 2016 at 6:41 PM, Siegfried Gonzi wrote: > Hi all > > Does anyone know how to invoke curve_fit with a variable number of > parameters, e.g. a1 to a10 without writing it out, > > e.g. > > def func2( x, a1,a2,a3,a4 ): > > # Bessel function > tmp = scipy.special.j0( x[: