Opened 9 years ago
Closed 8 years ago
#534 closed task (fixed)
Fitting not working in sasview with sasmodels
Reported by: | ajj | Owned by: | pkienzle |
---|---|---|---|
Priority: | blocker | Milestone: | SasView 4.0.0 |
Component: | SasView | Keywords: | |
Cc: | Work Package: | SasModels Redesign |
Description
The models load from sasmodels and calculate in sasview.
But fitting does not fit. Need to see why and fix.
Change History (8)
comment:1 Changed 9 years ago by ajj
- Work Package changed from SasView Bug Fixing to SasModels Redesign
comment:2 Changed 9 years ago by butler
- Owner set to ajj
- Status changed from new to assigned
- Type changed from defect to task
comment:3 Changed 9 years ago by ajj
- Owner changed from ajj to pkienzle
comment:4 Changed 9 years ago by butler
Mathieu says "Works, but you have to specify bumps 0.7.5.7." Not sure on what platform or what test. I have pulled the latest sasmodels and SasView, including my commits that fix the copy to clipboard and move the new models into categories. I am using my windows 10 laptop. check_packages.py reports I am using bumps 0.7.5.7. I used the cyl_400_40.txt test file from our 1D test folder and fit with the cylinder model starting with the default parameters and setting both sld values to be fixed - everything else varying. I found that the same three algorithms that worked in Andrews tests still work fine while both the LM and QuasiNewton do some processing as the chi2 goes from 21000 to 23,000 and error bars appear after the fit. However the parameters returned do not seem to change (except for rounding errors in QuasiNewton which displays background as 0.000998xx instead of 0.001 it starts with and which is displayed when using LM.
NOTE: while radius and length are allowed to float their initial values are what was used to create the test data so they are not expected to change.
Note 2: there seem to be several local minimum that are quite close but have large changes in the dimensions.
comment:5 Changed 9 years ago by butler
Note 3: the errors that Andrew reports above are not thrown when I was running it. All logs, including the eclipse output console are clean.
comment:6 Changed 9 years ago by smk78
Have just pulled on everything, built, and tried fitting on W7 using
Common Packages
reportlab Version Installed: 3.1.44
lxml Version Installed: 3.4.2.0
PIL Version Installed: 1.1.7
xhtml2pdf NOT INSTALLED
unittest-xml-reporting Version Installed: 1.10.0
pylint Installed (Unknown version)
matplotlib Version Installed: 1.4.3
bumps Version Installed: 0.7.5.7
scipy Version Installed: 0.15.1
periodictable Version Installed: 1.4.1
setuptools Version Installed: 18.4
sphinx Version Installed: 1.3.6
pyparsing Version Installed: 2.0.3
numpy Version Installed: 1.9.2
html5lib Version Installed: 0.999
wx Version Installed: 3.0.0.0
Windows Specific Packages:
pywin Version Installed: 219
py2exe Version Installed: 0.6.9
comtypes Version Installed: 0.6.2
I concur with Paul B above, fitting seems to do something but parameters and plot do not update. Also, you can't change optimiser (you can select a different one and click apply, but the dialog does not go away).
comment:7 Changed 9 years ago by smk78
Word on the street was that bumps 0.7.5.9 (not earlier) now needed.
Having updated bumps…
Common Packages
reportlab Version Installed: 3.1.44
lxml Version Installed: 3.4.2.0
PIL Version Installed: 1.1.7
xhtml2pdf NOT INSTALLED
unittest-xml-reporting Version Installed: 1.10.0
pylint Installed (Unknown version)
matplotlib Version Installed: 1.4.3
bumps Version Installed: 0.7.5.9
scipy Version Installed: 0.15.1
periodictable Version Installed: 1.4.1
setuptools Version Installed: 18.4
sphinx Version Installed: 1.3.6
pyparsing Version Installed: 2.0.3
numpy Version Installed: 1.9.2
html5lib Version Installed: 0.999
wx Version Installed: 3.0.0.0
Windows Specific Packages:
pywin Version Installed: 219
py2exe Version Installed: 0.6.9
comtypes Version Installed: 0.6.2
…and re-building, it does seem that fitting is now working on W7.
comment:8 Changed 8 years ago by butler
- Resolution set to fixed
- Status changed from assigned to closed
This I think has been resolved a while back and certainly is working in 4.00 alpha2. There are a number of other issues but they are subject of their own tickets. Am thus closing this ticket as resolved.
Notes on testing:
Working : DREAM, Nelder-Mead, Differential evolution
Not returning a fit : Levenberg-Marquardt
Completely broken (see below) : QuasiNewton