Python Forum

Full Version: Passing data to Labview gives NoneType
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, I am trying to run some Python code through Labview involving the lmfit module. The minimize() function of the lmfit module outputs a Parameter() object containing the fitting results. The data in this object can, for example, be called using
self.params['A'].value
This gives the value of fitting parameter A. So far so good. Passing this to labview as a float data type works. However when I try to pass the standard devation value from the Parameter() object using
self.params['A'].stderr
Labview then gives the following error:
Error:
Python returned the following error: <class 'TypeError'> must be real number, not NoneType
However, executing the exact same code in Spyder does give the correct stderr value, while Labview stated there is a NoneType. What seems to be the problem here? How can the value from example 1 be okay, while stderr from example 2 not Think