Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Which LMFIT version was used? #1

Open
vzickus opened this issue Mar 11, 2020 · 2 comments
Open

Which LMFIT version was used? #1

vzickus opened this issue Mar 11, 2020 · 2 comments

Comments

@vzickus
Copy link

vzickus commented Mar 11, 2020

When trying to run the test case (no modifications after cloning), I get an error associated with lmfit. Could you list the versions of packages you used when distributing the latest version?

simulating spectrum & irf data...
[108.0, 385.0, 2200.0]
[0.85, 0.147, 0.003]
counts: 4998983.000000004
calculating individual fit weights...


reconvolution fitting with 3 components...

Traceback (most recent call last):
  File "DReconvolutionProc.py", line 1046, in <module>
    fitModelDecay = Model(ExpDecay_3)
  File "/home/vytas/anaconda3/lib/python3.7/site-packages/lmfit/model.py", line 274, in __init__
    self._parse_params()
  File "/home/vytas/anaconda3/lib/python3.7/site-packages/lmfit/model.py", line 480, in _parse_params
    if fpar.default == fpar.empty:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

@aravind-j
Copy link

aravind-j commented Jul 23, 2020

I am also getting the same lmfit error with WinPython.

runfile('C:/DLTReconvolution-master/DReconvolutionProc.py', wdir='C:/DLTReconvolution-master')
Reloaded modules: DReconvolutionModel, DReconvolutionInput, DReconvolutionSpecSimulator
simulating spectrum & irf data...
[108.0, 385.0, 2200.0]
[0.85, 0.147, 0.003]
counts: 5000932.000000008
calculating individual fit weights...


reconvolution fitting with 3 components...

Traceback (most recent call last):

  File "<ipython-input-9-da1133ae3b2b>", line 1, in <module>
    runfile('C:/DLTReconvolution-master/DReconvolutionProc.py', wdir='C:/DLTReconvolution-master')

  File "C:\Software - Portable\WPy64-3810\python-3.8.1.amd64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile
    execfile(filename, namespace)

  File "C:\Software - Portable\WPy64-3810\python-3.8.1.amd64\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/DLTReconvolution-master/DReconvolutionProc.py", line 1046, in <module>
    fitModelDecay = Model(ExpDecay_3)

  File "C:\Software - Portable\WPy64-3810\python-3.8.1.amd64\lib\site-packages\lmfit\model.py", line 274, in __init__
    self._parse_params()

  File "C:\Software - Portable\WPy64-3810\python-3.8.1.amd64\lib\site-packages\lmfit\model.py", line 480, in _parse_params
    if fpar.default == fpar.empty:

ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

@kitchenknif
Copy link

kitchenknif commented Dec 16, 2021

Latest version of lmfit that works with the current version 7662ec7 is 0.9.13

After that something broke, I'll try to figure it out if I have time.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants