-
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
validation of beta(Q) and other calculations against external code (Trac #1121) #181
Comments
Trac update at
to:
to:
sasmodels/explore/beta/sasfit_compare.py in the beta_approx branch contains code for computing <F^2^> P S I=PS S_eff and I_beta = PS_eff in a way that is compatible with sasview 4.2, Yun's matlab code and sasfit. As of this writing, the following alogithm is used, as cribbed from the ellipsoid_pe function:
The match to sasfit is not very good (in the order of 1% relative error), but probably good enough that we know what calculation is being performed even though we are using different numeric procedures to perform it. |
Trac update at For information, Greg's original fork of sasmodels is here: |
Trac update at Some progress today attempting to validate the beta(Q) calcs in qt5 ESS_GUI branch of sasview and beta_approx branch of sasmodels I have started with data files oddly called richard_test etc from sasmodels/explore/beta/data which can be loaded into sasview, code fragment below from sasfit_compare.py gives the details of their contents, polydisperse spheres and ellipsoid time hard sphere, with or without beta(Q) included. def compare_sasfit_sphere_schulz():
def compare_sasfit_ellipsoid_schulz():
Thus far sasview appears to produce results consistent with these files from sasfit, bar issues with the overall scale which may require some thought. I will attach some pdf reports to demonstrate, however note that the reports are alas not yet reporting polydispersity! However in one case I got cranky results, see ellipsoid6bad where note the poor fit at small Q. Loading the data and setting up again in a new fit tab gave OK results see ellipsoid6better, this is rather worrying. Changing model in the original fit tab then back again to correct model seemed to sort the issue, which might be due to plotting problems? On appending P(Q) to the plots in some cases, note that P(Q) is much smaller than you might expect due to "scale" being large, even if scale is set to 1.0 and sld adjusted the appended P(Q)is still nowhere near the fit. This needs some thought but may be a consequence of our single scale (or volume) parameter. |
Trac update at |
Trac update at |
Trac update at |
Trac update at |
Trac update at |
Trac update at |
Trac update at |
Trac update at
|
Please document here detail results of testing against sasfit, Fish, own matlab codes etc, especially noting where issue were found and how these were resolved.
This will provide background information for sasview & sasmodels documentation.
Migrated from http://trac.sasview.org/ticket/1121
The text was updated successfully, but these errors were encountered: