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