Changes between Version 16 and Version 17 of ModelConvInst
- Timestamp:
- Nov 22, 2015 12:31:11 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ModelConvInst
v16 v17 56 56 - "volume" parameters are passed to Iq(), Iqxy(), and form_volume(), and have polydispersity loops generated automatically. 57 57 - "orientation" parameters are only passed to Iqxy(). 58 - "units" is the string that is displayed to the user in the user interface. This is not latex markup. If you want the manual to show fancy markup, do the following: 59 - check RST_UNITS variable near the top of [https://github.com/SasView/sasmodels/tree/master/sasmodels/generate.py sasmodels/generate.py] for units with special markup 60 - if you don't see the units you need there, make a new entry in the RST_UNITS table 61 - use the macros defined in [https://github.com/SasView/sasmodels/tree/master/doc/rst_prolog doc/rst_prolog], or add your own if needed 62 - if the markup is trivial, or if the it is really a one-off, then you can put the restructured text commands into RST_UNITS directly (I'm not sure if $latex$ works in this context) 63 - if there is enough demand, we can set units to "display string|markup string" and have the model loader/documentation generator select the correct version for whomever is asking 58 64 - **THE COMPUTATION** 59 65 - Pure Python … … 109 115 '''TEST YOUR NEW/NEWLY-CONVERTED MODEL''' 110 116 111 Test your new model by run ing compare.py to verify that the converted model is giving the same results as it did in SasView prior to conversion. In order to do this, you need either a version of SasView installed in your python path, or a locally-builtSasView in a checked-out directory ''at the same level'' as the checked-out sasmodels repository; i.e. you have the file structure:117 Test your new model by running compare.py to verify that the converted model is giving the same results as it did in !SasView prior to conversion. In order to do this, you need either a version of !SasView installed in your python path, or a locally-built !SasView in a checked-out directory ''at the same level'' as the checked-out sasmodels repository; i.e. you have the file structure: 112 118 113 119 {{{ … … 122 128 }}} 123 129 124 If using a locally-built SasView, you need to add ''drive:\some_folder\sasview'' to your PYTHONPATH environment variable, or use \sasmodels\compare.sh which will do so for you. If you don't have PYTHONPATH, use the ''User'' PATH variable instead.130 If using a locally-built !SasView, you need to add ''drive:\some_folder\sasview'' to your PYTHONPATH environment variable, or use \sasmodels\compare.sh which will do so for you. If you don't have PYTHONPATH, use the ''User'' PATH variable instead. 125 131 126 132 The first thing to test is that you are getting the same answer as !SasView for the 1D version of the model. This is done with: … … 130 136 }}} 131 137 132 This will result in some comparison metrics between the openCL implementation (if installed - should revert to using ctypes if no OpenCL is installed) and a plot of the two calculations and a comparison plot.138 This will result in some comparison metrics between the OpenCL implementation (if installed - should revert to using ctypes if no OpenCL is installed) and a plot of the two calculations and a comparison plot. 133 139 134 140 If the model has 2D orientational calculation, then you should additionally test with: … … 146 152 }}} 147 153 154 '''CHECK THE DOCS''' 155 156 To build the docs you will need: 157 - sphinx 158 {{{ 159 conda install sphinx 160 }}} 161 - gnu make (e.g., from http://gnuwin32.sourceforge.net/packages.html, or maybe there is an anaconda mingw package) 162 163 Make sure C:\Program Files (x86)\!GnuWin32\bin and C:\Python27 are on your path. 164 165 Build the docs by changing into path/to/sasmodels/doc and typing "make html". 166 167 Navigate to path/to/sasmodels/doc/_build/html in your file browser and open index.html. You will need to use firefox, chrome or safari since internet explorer doesn't seem to support mathjax from a local file. 168 148 169 '''FINALLY''' 149 170