-
Notifications
You must be signed in to change notification settings - Fork 29
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
generalise broad peak model #458
Conversation
Will this break backward compatibility with old projects? Does it require some translations for that compatibiltiy? |
To keep backward compatibility with old save projects saved with old parameter names you will need to update sasmodels/conversion_table.py. The python file houses a dictionary that maps the previous SasView version to the changes made after that version was released. This can accommodate model name and parameter name change. General usage, but more information is given in the file documentation:
|
Tested to save a project and analysis after fitting with some test data from the PR and load it to the Release version, and vice versa. The parameters are passed on correctly and files are read smoothly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation and mathematics in the code match each other, and the conversion table update matches what is expected. The build failure is due to a doc building failure that was fixed in #462. There is an issue in SasView, noted in SasView#1902 when loading projects with reparameterized models. Whether this PR should be held up because of the SasView issue is up for discussion.
sasmodels ready for testing on Win |
Made a fit using Results
Conclusion:
|
I think we agreed that this could be merged to main once the release branch is created? The SasView Issue, SasView #1902, to fix the problem with loading project has already been listed as a blocker. |
The model "broad_peak" can be generalized to cover Lorentz like behavior and Debye-Anderson-Brumberger by introducing a outer power term with "exponent_p". The commit does the necessary changes.