FCS-analysis / PyCorrFit

data analysis and fitting software for fluorescence correlation spectroscopy (FCS)
pycorrfit.craban.de
Other
47 stars 13 forks source link

traceback when trying to Fit #140

Closed mestia closed 8 years ago

mestia commented 8 years ago

HI, with the version 0.9.3 I am getting the following traceback when loading a test session and clicking Fit. Does it work for you ?

Thanks, Alex

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pycorrfit/page.py", line 330, in Fit_function
    Fit(self.corr)
  File "/usr/lib/python2.7/dist-packages/pycorrfit/fcs_data_set.py", line 720, in __init__
    self.minimize()
  File "/usr/lib/python2.7/dist-packages/pycorrfit/fcs_data_set.py", line 1332, in minimize
    params = self.get_lmfitparm()
  File "/usr/lib/python2.7/dist-packages/pycorrfit/fcs_data_set.py", line 1176, in get_lmfitparm
    max=self.fit_bound[pp][1],
  File "/usr/lib/python2.7/dist-packages/lmfit/parameter.py", line 55, in add
    min=min, max=max, expr=expr))
  File "/usr/lib/python2.7/dist-packages/lmfit/parameter.py", line 32, in __setitem__
    if not valid_symbol_name(key):
  File "/usr/lib/python2.7/dist-packages/lmfit/astutils.py", line 203, in valid_symbol_name
    return NAME_MATCH(name) is not None
TypeError: expected string or buffer
paulmueller commented 8 years ago

Hi, which version of lmfit are you using?

The Windows build uses lmfit 0.9.2.

I also use lmfit 0.9.2 on Ubuntu.

This page suggests that lmfit in debian/jessie is version 0.8.0. Could this be the problem? I did not think of that when I moved to lmfit. I just saw that it already is in the debian repositories, but did not check the version.

mestia commented 8 years ago

Hi, Yes, that was the case, for testing I used Jessie and the lmfit version 0.8.0. It works with 0.9.2. Thank you!