-
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
vesicle @ structure_factor incorrect (Trac #1257) #233
Comments
after merging https://github.com/SasView/sasmodels/tree/ticket_822_v5_unit_tests into master, |
You don't need to fit the two volfractions independently. Instead, fit scale and the tied volfraction, and interpret it as S.volfraction = tied volfraction, and P.volfraction = scale*S.volfraction. Whether the 5.0 GUI should show the volfraction parameter in both models is a separate (and confusing!) issue. I suggest that reporting it as part of S and dropping it from P in the user interface since that is consistent with how all the models without volfraction operate. Or put "implicit volfraction" in all P models as a non-fittable parameter which shows the value from volfraction from S to make it clear that P@S is multiplied by volfraction even before scale is applied. Bumps does allow you to compute uncertainty on derived parameters from the DREAM output. We could in principle show this on the implicit volfraction for P. |
What we have now in 5.0 is at least the same as 4.2 I(Q)=scale.Svolfrac.P(R,Q).S(Q,Reff,Svolfrac) if in some circumstances confusing for the users as scale changes on adding an S(Q). Suggest we leave this as is for now until we have agreement on whether all relevant P(Q) explicitly have a Pvolfraction, so that then I(Q)=scale.Pvolfrac.P(R,Q).S(Q,Reff,Svolfrac) when scale would not change on adding an S(Q). Specifically for this ticket, in vesicle model there is a volfraction name collision which causes the previously mentioned bad behavior in 5.0 gui. |
The relevant code is in ESS_GUI at Simple fix is to pop the volfraction parameter out of s_params list before populating the s_params table. Longer term, should add enough information into the model_info structure so that the GUI can group the parameters. This might be useful for standalone models with lots of parameters. |
… #1280, #1295, SasView/sasmodels#219, sasview/sasmodels#199, SasView/sasmodels#101.
With the merge of PR #101 this issue should now be closed |
Comparing vesicle@S with no core to sphere@S I get different answers. Repeat using:
This is not true for hollow_cylinder with no core vs cylinder:
I think the issue is that the vesicle model defines volfraction, and this is colliding with the definition of volfraction in the structure factor, which then gets turned into volfraction_S.
Vescicle and sphere match if volfraction_S is set to the same value as volfraction.
Should update product model to use volfraction if it exists in the model.
This will require changes to
sasmodels/product.py
, both when constructing the model and when splitting the parameter set into P and S parameters.Migrated from http://trac.sasview.org/ticket/1257
The text was updated successfully, but these errors were encountered: