Changeset 7e6bdf9 in sasview for src/sas/sasgui/perspectives/fitting/media/plugin.rst
- Timestamp:
- Oct 9, 2016 11:59:04 AM (8 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 9cc002d
- Parents:
- 467202f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/sasgui/perspectives/fitting/media/plugin.rst
rb2a3814 r7e6bdf9 6 6 .. note:: If some code blocks are not readable, expand the documentation window 7 7 8 Introduction 9 ^^^^^^^^^^^^ 10 11 There are currently two ways to add your own models to SasView: 12 13 * Using the :ref:`Custom_Model_Editor` 14 * By Writing a Plugin Model 15 16 The Custom Model Editor lets you combine *existing* SasView library models. For anything more 17 complex, or if you want to apply polydispersity to parameters, you will need to write a Plugin Model. 18 8 19 Overview 9 20 ^^^^^^^^ 10 21 11 You can write your own model and save it to the the SasView 12 *plugin_models* folder 22 If you write your own model and save it to the the SasView *plugin_models* folder 13 23 14 24 *C:\\Users\\[username]\\.sasview\\plugin_models* (on Windows) 15 25 16 The next time SasView is started it will compile the plugin and add 17 it to the list of *Customized Models* in a FitPage. It is recommended that an 18 existing model be used as a template. 26 the next time SasView is started it will compile the plugin and add 27 it to the list of *Customized Models* in a FitPage. 19 28 20 29 SasView has three ways of writing models: … … 42 51 43 52 In the *~\\.sasview\\plugin_models* directory, copy the appropriate files 44 ( using the examples above as templates) to mymodel.py (and mymodel.c, etc)53 (we recommend using the examples above as templates) to mymodel.py (and mymodel.c, etc) 45 54 as required, where "mymodel" is the name for the model you are creating. 46 55
Note: See TracChangeset
for help on using the changeset viewer.