Changeset 3048ec6 in sasmodels for doc/guide/plugin.rst
- Timestamp:
- Sep 28, 2017 7:58:47 AM (7 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- 59485a4
- Parents:
- 3b32f8d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/guide/plugin.rst
r9844c3a r3048ec6 78 78 at the start of the model documentation and as a tooltip in the SasView GUI 79 79 80 - a **short d iscription**:80 - a **short description**: 81 81 - this is the **description** string in the *.py* file 82 82 - this is a medium length description which appears when you click … … 233 233 234 234 **name = "mymodel"** defines the name of the model that is shown to the user. 235 If it is not provided, it will use the name of the model file, with '_' 236 replaced by spaces and the parts capitalized. So *adsorbed_layer.py* will 237 become *Adsorbed Layer*. The predefined models all use the name of the 238 model file as the name of the model, so the default may be changed. 235 If it is not provided it will use the name of the model file. The name must 236 be a valid variable name, starting with a letter and contains only letters, 237 numbers or underscore. Spaces, dashes, and other symbols are not permitted. 239 238 240 239 **title = "short description"** is short description of the model which … … 298 297 - **"name"** is the name of the parameter shown on the FitPage. 299 298 299 - the name must be a valid variable name, starting with a letter and 300 containing only letters, numbers and underscore. 301 300 302 - parameter names should follow the mathematical convention; e.g., 301 303 *radius_core* not *core_radius*, or *sld_solvent* not *solvent_sld*. … … 366 368 dispersion. 367 369 368 369 Integer Parameters370 ..................371 372 370 Some models will have integer parameters, such as number of pearls in the 373 371 pearl necklace model, or number of shells in the multi-layer vesicle model. … … 390 388 ... 391 389 392 Derivati bve based optimizers such as Levenberg-Marquardt will not work390 Derivative based optimizers such as Levenberg-Marquardt will not work 393 391 for integer parameters since the partial derivative is always zero, but 394 392 the remaining optimizers (DREAM, differential evolution, Nelder-Mead simplex) … … 419 417 \approx \frac{\sum_{i=1}^n G(x_i) I(q,x_i)}{\sum_{i=1}^n G(x_i) V(x_i)} 420 418 421 That is, the indiv dual models do not need to include polydispersity419 That is, the individual models do not need to include polydispersity 422 420 calculations, but instead rely on numerical integration to compute the 423 421 appropriately smeared pattern. Angular dispersion values over polar angle … … 439 437 The parameters *par1, par2, ...* are the list of non-orientation parameters 440 438 to the model in the order that they appear in the parameter table. 441 **Note that the auto generated model file uses** *x* **rather than** *q*.439 **Note that the auto-generated model file uses** *x* **rather than** *q*. 442 440 443 441 The *.py* file should import trigonometric and exponential functions from … … 963 961 across multiple parameters can be very slow). 964 962 965 If your model has 2D orientation alcalculation, then you should also963 If your model has 2D orientation calculation, then you should also 966 964 test with:: 967 965
Note: See TracChangeset
for help on using the changeset viewer.