-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simultaneous fitting returning incorrect fit #1914
Comments
I concur @Caddy-Jones . But I think it's more serious than that; I think fitting is totally broken! You can't even get a single fit to converge. And it's affecting multiple optimisers. I'm making this a blocker for the moment. |
Does main now require a later version of bumps? I currently have 0.7.11. |
Hi @smk78 |
We also observed that the fitting seems to work, in the sense that the returned chi^2 is ok and the parameters as well, but they are not sent back to the appropriate place in the interface, where they appear mixed (e.g. the radius in the background box, etc.), making the plot meaningless. @smk78, can you confirm if you get this as well? |
Yes, I think I see the same @gonzalezma . (Sorry for the delay in checking by the way; I hadn't built anything on this computer since the start of the pandemic!) |
Hi guys, I have made two pull requests to fix this issue. #1915 just gets rid of the code, from pull request #1682, that is causing the bumps fitting to misbehave. #1916 is my attempt to fix the code, so it’s function is still fulfilled (propagating errors for constrained parameters in this case) without causing incorrect fitting. #1915 is rendered obsolete by #1916, however is still useful as a quick fix while #1916 is being tested. @smk78 could you maybe test my pull requests, to ensure you are not getting the same results? |
Just tested #1915. Is good. |
Just tested #1916. Also looks good. |
When attempting to use the “constrained or simultaneous fit” functionality with the master branch SasView version, the fit isn’t correct.
For example, the attached plot shows the fit the three tutorial files: AOT_Microemulsion-Core_Contrast.xml, AOT_Microemulsion-Shell_Contrast.xml, and AOT_Microemulsion-Drop_Contrast.xml; using SasView on the Master branch. This seems incorrect and is different to the plots obtained using the current released version of SasView, version 5.0.4, and the demonstration plots in the tutorial. Also the scale and background parameters seem to be constrained without being asked to.
When attempting to plot two sets of experimental data, plots also attaches, SasView seems to only use the data from the first fit page for fitting. This behaviour is different form the behaviour of the released version of SasView, version 5.0.4. Again all selected fitting parameters, in this case sld_core, sld_shell and sld_solvent, appear to be constrained with the same values between the datasets. This is without any constraints being added.
The text was updated successfully, but these errors were encountered: