Add module for combining SasView models with reflectivity data#11
Add module for combining SasView models with reflectivity data#11hoogerheide wants to merge 14 commits intomainfrom
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.
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 |
|
There's an issue with this PR that the CVO uncertainty plots don't work for the SAS models. This is because the plots are expecting the molgroups layer to show up in a particular place (model.sample.molgroups_layer) but this doesn't exist on the SAS models. The right way to do this is to have the Experiment objects expose a dictionary of molgroups layers associated with them, and then the worker function can go look them up by name. I will implement and test this before merging this PR. |
…ltiple sources of molgroups layers (SAS and reflectometry)
Resolved by most recent pushes. |
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.