Changes in / [1671636:670eee4] in sasmodels
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
example/sesans_parameters_sphere.py
rfa902d4 r9217ef8 27 27 "sld" : 7.0, 28 28 "radius" : 1000, 29 "s olvent_sld" : 1.0,29 "sld_solvent" : 1.0, 30 30 } 31 31 -
example/sesansfit.py
rfa902d4 r9217ef8 54 54 55 55 # Load custom parameters, initial values and parameter ranges 56 pars = model.parameters().copy() 57 pars.update(custom_params) 56 58 for k, v in custom_params.items(): 59 if k not in pars: 60 par_error("Can't set parameter %r in model"%k, pars) 57 61 setattr(model, k, v) 58 62 model._parameter_names.append(k) 59 63 for k, v in initial_vals.items(): 60 param = model.parameters().get(k) 64 if k not in pars: 65 par_error("Can't get parameter %r from model"%k, pars) 66 param = pars[k] 61 67 param.value = v 62 68 for k, v in param_range.items(): 63 param = model.parameters().get(k) 64 if param is not None: 65 param.range(*v) 69 if k not in pars: 70 par_error("Can't set range on parameter %r in model"%k, pars) 71 param = pars[k] 72 param.range(*v) 66 73 67 74 if False: # for future implementation … … 73 80 problem = FitProblem(M_sesans) 74 81 return problem 82 83 84 def par_error(msg, pars): 85 raise ValueError(msg+"\nAvailable parameters: %s"%", ".join(sorted(pars.keys()))) -
sasmodels/bumps_model.py
ra84a0ca r9217ef8 238 238 Not Implemented. 239 239 """ 240 if self.data_type == "sesans": 241 np.savetxt(basename+".dat", np.array([self._data.x, self.theory()]).T) 240 242 pass 241 243 -
sasmodels/models/mass_fractal.py
r9418d75 r95441ff 46 46 47 47 48 Reference 49 --------- 48 References 49 ---------- 50 50 51 51 D Mildner and P Hall, *J. Phys. D: Appl. Phys.*, -
sasmodels/models/mass_surface_fractal.py
r9418d75 r95441ff 46 46 47 47 48 Reference 49 --------- 48 References 49 ---------- 50 50 51 51 P Schmidt, *J Appl. Cryst.*, 24 (1991) 414-435 Equation(19) -
sasmodels/models/surface_fractal.py
r9418d75 r95441ff 45 45 46 46 47 Reference 48 --------- 47 References 48 ---------- 49 49 50 50 D Mildner and P Hall, *J. Phys. D: Appl. Phys.*, 19 (1986) 1535-1545
Note: See TracChangeset
for help on using the changeset viewer.