Changes in example/sesansfit.py [fa902d4:d459d4e] in sasmodels
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesansfit.py
rfa902d4 rd459d4e 47 47 48 48 data.has_no_finite_acceptance = acceptance_angle is not None 49 radius = initial_vals.get("radius", 1000) 49 if "radius" in initial_vals: 50 radius = initial_vals.get("radius") 51 else: 52 radius = 1000 50 53 data.Rmax = 30*radius # [A] 51 54 … … 59 62 for k, v in initial_vals.items(): 60 63 param = model.parameters().get(k) 61 param.value = v64 setattr(param, "value", v) 62 65 for k, v in param_range.items(): 63 66 param = model.parameters().get(k) 64 67 if param is not None: 65 param.range(*v)68 setattr(param.bounds, "limits", v) 66 69 67 70 if False: # for future implementation
Note: See TracChangeset
for help on using the changeset viewer.