smoothfit icon indicating copy to clipboard operation
smoothfit copied to clipboard

error when running lambda.py

Open Magaud59 opened this issue 3 years ago • 1 comments

Dear NSchloe,

I would like to use the smoothfit package to generate a function that will fit a dataset... so far so good, I should be at the right door.

I was looking for a way to create a function from your code and I found the lambda.py exemple that normally do this via the function named u (l.21).

When running the code, my spyder console is returning me the following:

vals = [u(xx) for xx in x]
TypeError: 'tuple' object is not callable

Is it only happening to me? How can I set up a general function from the package?

Thanks for your support.

With regards

Matthieu

Magaud59 avatar Nov 28 '22 20:11 Magaud59

Hi Matthieu,

To properly help you, I'd need some complete and minimal code that reproduces the error.

Cheers, Nico

nschloe avatar Mar 06 '23 17:03 nschloe