Changes between Version 11 and Version 12 of ModelConvInst
- Timestamp:
- Nov 19, 2015 10:59:16 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModelConvInst
v11 v12 1 1 '''Introduction''' 2 2 3 In the new sasmodels package [https://gi hub.com/SasView/sasmodels] there are three ways of writing models:3 In the new sasmodels package [https://github.com/SasView/sasmodels] there are three ways of writing models: 4 4 - As a pure python model : Example - [https://github.com/SasView/sasmodels/blob/master/sasmodels/models/broad_peak.py broadpeak.py] 5 5 - As a python model with embedded C : Example - [https://github.com/SasView/sasmodels/blob/master/sasmodels/models/sphere.py sphere.py] … … 34 34 - parameters = [["name", "units", default, [min,max], "type", "tooltip"],...]. This is where the parameters get defined. The syntax should be obvious from the default. Copy the parameters from the model header file [https://github.com/SasView/sasview/tree/master/src/sas/models/include srs/sas/models/include] 35 35 - PARAMETER NAMES: VERY IMPORTANT. We are trying to make the model parameter more consistent between models. So solvent sld for example should have exactly the same name in every model. Current list of new parameters is: 36 - bkgd = background 36 37 - radius = radius 37 38 - sld = scattering length density of particle