Changes in example/multiscatfit.py [49d1f8b8:bc248f8] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
example/multiscatfit.py
r49d1f8b8 rbc248f8 34 34 from sasmodels.data import load_data, set_beam_stop, set_top 35 35 36 from sasmodels.multiscat import MultipleScattering36 from multiscat import MultipleScattering 37 37 38 38 ## Load the data 39 39 #data = load_data('DEC07267.DAT') 40 40 #set_beam_stop(data, 0.003, outer=0.025) 41 data = load_data('latex_smeared.xml', index= 0)41 data = load_data('latex_smeared.xml', index=1) 42 42 43 43 ## Define the model … … 66 66 67 67 # Mulitple scattering probability parameter 68 # HACK: the probability is stuffed in as an extra parameter to the experiment. 68 # HACK: the parameter is assigned to model.theta, which is otherwise unused 69 # since the dataset is 1D; this won't work for 2D data 69 70 probability = Parameter(name="probability", value=0.0) 70 71 probability.range(0.0, 0.9) 72 model.phi = probability 71 73 72 M = Experiment(data=data, model=model , extra_pars={'probability': probability})74 M = Experiment(data=data, model=model) 73 75 74 76 # Stack mulitple scattering on top of the existing resolution function.
Note: See TracChangeset
for help on using the changeset viewer.