-
Notifications
You must be signed in to change notification settings - Fork 1
Add module for combining SasView models with reflectivity data #11
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
base: main
Are you sure you want to change the base?
Conversation
|
This is an example script. You can put it any dummy data for this to work. |
Now look at the tiox_dopc_sas.py example in the repo |
|
One note on this -- the calculation is quite slow. Loading the model takes about 0.3 seconds; the DirectModel instantiation takes about 0.03 seconds, and the calculation itself is quite fast. I'm not sure why it's slow given this; is FitProblem re-created on each calculation node every time a new data point is sent? |
…Experiment calculations; add MolgroupsExperiment example
|
All the mappers in bumps are designed to create workers that are set up only once per fit. |
…d setstate to support problem copying and pickling
bmaranville
left a comment
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.
This looks good - when we refactor the plot registry you'll have to change the register_webview_plot bit, but that's going to be a small change on this end (a bigger change on the bumps end)
|
Just improved the abstraction to allow both standard SAS models as well as full integration (spherical geometry only because this is the only multi-shell model supported by After this PR is merged I will work on a direct SAS calculator a la |
Sometimes reflectivity data have features that look like they might come from small angle scattering. Usually this means the sample needs to be re-made, but there are cases where this might actually be useful data, and other cases where the sources of the small angle scattering can otherwise not be removed.
This PR is for an Experiment-like object that combines SANS and reflectivity data into a single curve, and exposes the parameters of the
sasmodelsSANS model as Bumps parameters. The model specification includes the SANS model name, a dictionary of parameter values, and a transverse angular resolutiondtheta_lwhich is used to smear the SANS data.A custom decomposition plot into I(q) and R(q) is registered as well.