|
1 | | -import numpy as np |
2 | 1 | from bumps.names import FitProblem, FreeVariables |
3 | 2 |
|
4 | 3 | from sasdata import data_path |
|
22 | 21 | model = Model(kernel, **pars) |
23 | 22 |
|
24 | 23 | # radius and polydispersity (if any) are shared |
25 | | -model.radius.range(0, np.inf) |
| 24 | +model.radius.range(0, 3000.) |
26 | 25 | #model.radius_pd.range(0, 1) |
27 | 26 |
|
28 | 27 | # Contrast and dilution are the same for both measurements, but are not |
29 | 28 | # separable with a single measurement (i.e., I(q) ~ F(q) contrast^2 Vf), |
30 | 29 | # so fit one of scale, sld or solvent sld. With absolute scaling from |
31 | 30 | # data reduction, can use the same parameter for both datasets. |
32 | | -model.scale.range(0, np.inf) |
| 31 | +model.scale.range(0, 1.0) |
33 | 32 | #model.sld.range(-inf, inf) |
34 | 33 | #model.sld_solvent.range(-inf, inf) |
35 | 34 |
|
|
39 | 38 | names=[data.run[0] for data in datasets], |
40 | 39 | background=model.background, |
41 | 40 | ) |
42 | | -free.background.range(-np.inf, np.inf) |
| 41 | +free.background.range(-1, 1) |
43 | 42 |
|
44 | 43 | # Note: can access the parameters for the individual models using |
45 | 44 | # free.background[0] and free.background[1], setting constraints or |
|
0 commit comments