1 | |
---|
2 | |
---|
3 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
4 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
5 | |
---|
6 | |
---|
7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
8 | <head> |
---|
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
10 | |
---|
11 | <title>GSAS-II Scripts — GSAS-II 0.2.0 documentation</title> |
---|
12 | |
---|
13 | <link rel="stylesheet" href="_static/default.css" type="text/css" /> |
---|
14 | <link rel="stylesheet" href="_static/pygments.css" type="text/css" /> |
---|
15 | |
---|
16 | <script type="text/javascript"> |
---|
17 | var DOCUMENTATION_OPTIONS = { |
---|
18 | URL_ROOT: '', |
---|
19 | VERSION: '0.2.0', |
---|
20 | COLLAPSE_INDEX: false, |
---|
21 | FILE_SUFFIX: '.html', |
---|
22 | HAS_SOURCE: true |
---|
23 | }; |
---|
24 | </script> |
---|
25 | <script type="text/javascript" src="_static/jquery.js"></script> |
---|
26 | <script type="text/javascript" src="_static/underscore.js"></script> |
---|
27 | <script type="text/javascript" src="_static/doctools.js"></script> |
---|
28 | <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> |
---|
29 | <link rel="top" title="GSAS-II 0.2.0 documentation" href="index.html" /> |
---|
30 | <link rel="next" title="GSAS-II Export Modules" href="exports.html" /> |
---|
31 | <link rel="prev" title="GSASII powder calculation module" href="GSASIIpwd.html" /> |
---|
32 | </head> |
---|
33 | <body> |
---|
34 | <div class="related"> |
---|
35 | <h3>Navigation</h3> |
---|
36 | <ul> |
---|
37 | <li class="right" style="margin-right: 10px"> |
---|
38 | <a href="genindex.html" title="General Index" |
---|
39 | accesskey="I">index</a></li> |
---|
40 | <li class="right" > |
---|
41 | <a href="py-modindex.html" title="Python Module Index" |
---|
42 | >modules</a> |</li> |
---|
43 | <li class="right" > |
---|
44 | <a href="exports.html" title="GSAS-II Export Modules" |
---|
45 | accesskey="N">next</a> |</li> |
---|
46 | <li class="right" > |
---|
47 | <a href="GSASIIpwd.html" title="GSASII powder calculation module" |
---|
48 | accesskey="P">previous</a> |</li> |
---|
49 | <li><a href="index.html">GSAS-II 0.2.0 documentation</a> »</li> |
---|
50 | </ul> |
---|
51 | </div> |
---|
52 | |
---|
53 | <div class="document"> |
---|
54 | <div class="documentwrapper"> |
---|
55 | <div class="bodywrapper"> |
---|
56 | <div class="body"> |
---|
57 | |
---|
58 | <div class="section" id="module-testDeriv"> |
---|
59 | <span id="gsas-ii-scripts"></span><h1><em>GSAS-II Scripts</em><a class="headerlink" href="#module-testDeriv" title="Permalink to this headline">¶</a></h1> |
---|
60 | <div class="section" id="testderiv-check-derivative-computation"> |
---|
61 | <h2><em>testDeriv: Check derivative computation</em><a class="headerlink" href="#testderiv-check-derivative-computation" title="Permalink to this headline">¶</a></h2> |
---|
62 | <p>Use this to check derivatives used in structure least squares |
---|
63 | refinement against numerical values computed in this script.</p> |
---|
64 | <p>To use set <tt class="docutils literal"><span class="pre">DEBUG=True</span></tt> in GSASIIstrMain.py (line 22, as of version |
---|
65 | 1110); run the least squares - one cycle is sufficient. Do the “Save |
---|
66 | Results”; this will write the file testDeriv.dat in the local |
---|
67 | directory.</p> |
---|
68 | <p>Then run this program to see plots of derivatives for all |
---|
69 | parameters refined in the last least squares. Shown will be numerical |
---|
70 | derivatives generated over all observations (including penalty terms) |
---|
71 | and the corresponding analytical ones produced in the least |
---|
72 | squares. They should match.</p> |
---|
73 | <dl class="function"> |
---|
74 | <dt id="testDeriv.main"> |
---|
75 | <tt class="descclassname">testDeriv.</tt><tt class="descname">main</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/testDeriv.html#main"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#testDeriv.main" title="Permalink to this definition">¶</a></dt> |
---|
76 | <dd><p>Starts main application to compute and plot derivatives</p> |
---|
77 | </dd></dl> |
---|
78 | |
---|
79 | </div> |
---|
80 | <span class="target" id="module-GSASIItestplot"></span><div class="section" id="gsasiitestplot-plotting-for-testderiv"> |
---|
81 | <h2><em>GSASIItestplot: Plotting for testDeriv</em><a class="headerlink" href="#gsasiitestplot-plotting-for-testderiv" title="Permalink to this headline">¶</a></h2> |
---|
82 | <p>Plotting module used for script testDeriv.</p> |
---|
83 | <dl class="class"> |
---|
84 | <dt id="GSASIItestplot.Plot"> |
---|
85 | <em class="property">class </em><tt class="descclassname">GSASIItestplot.</tt><tt class="descname">Plot</tt><big>(</big><em>parent</em>, <em>id=-1</em>, <em>dpi=None</em>, <em>**kwargs</em><big>)</big><a class="reference internal" href="_modules/GSASIItestplot.html#Plot"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GSASIItestplot.Plot" title="Permalink to this definition">¶</a></dt> |
---|
86 | <dd><p>Creates a plotting window</p> |
---|
87 | </dd></dl> |
---|
88 | |
---|
89 | <dl class="class"> |
---|
90 | <dt id="GSASIItestplot.PlotNotebook"> |
---|
91 | <em class="property">class </em><tt class="descclassname">GSASIItestplot.</tt><tt class="descname">PlotNotebook</tt><big>(</big><em>id=-1</em><big>)</big><a class="reference internal" href="_modules/GSASIItestplot.html#PlotNotebook"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#GSASIItestplot.PlotNotebook" title="Permalink to this definition">¶</a></dt> |
---|
92 | <dd><p>creates a Wx application and a plotting notebook</p> |
---|
93 | </dd></dl> |
---|
94 | |
---|
95 | </div> |
---|
96 | <span class="target" id="module-scanCCD"></span><div class="section" id="scanccd-reduce-data-from-scanning-ccd"> |
---|
97 | <h2><em>scanCCD: reduce data from scanning CCD</em><a class="headerlink" href="#scanccd-reduce-data-from-scanning-ccd" title="Permalink to this headline">¶</a></h2> |
---|
98 | <p>Quickly prototyped routine for reduction of data from detector described in |
---|
99 | B.H. Toby, T.J. Madden, M.R. Suchomel, J.D. Baldwin, and R.B. Von Dreele, |
---|
100 | “A Scanning CCD Detector for Powder Diffraction Measurements”. |
---|
101 | Journal of Applied Crystallography. 46(4): p. 1058-63 (2013).</p> |
---|
102 | <dl class="function"> |
---|
103 | <dt id="scanCCD.main"> |
---|
104 | <tt class="descclassname">scanCCD.</tt><tt class="descname">main</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/scanCCD.html#main"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#scanCCD.main" title="Permalink to this definition">¶</a></dt> |
---|
105 | <dd><p>starts main application to merge data from scanning CCD</p> |
---|
106 | </dd></dl> |
---|
107 | |
---|
108 | </div> |
---|
109 | <span class="target" id="module-makeMacApp"></span><div class="section" id="makemacapp-create-mac-applet"> |
---|
110 | <h2><em>makeMacApp: Create Mac Applet</em><a class="headerlink" href="#makemacapp-create-mac-applet" title="Permalink to this headline">¶</a></h2> |
---|
111 | <p>This script creates an AppleScript app to launch GSAS-II. The app is |
---|
112 | created in the directory where the GSAS-II script is located. |
---|
113 | A softlink to Python is created, but is named GSAS-II, so that |
---|
114 | GSAS-II shows up as the name of the app rather than Python in the |
---|
115 | menu bar, etc. Note that this requires finding an app version of Python |
---|
116 | (expected name .../Resources/Python.app/Contents/MacOS/Python in |
---|
117 | directory tree of the calling python interpreter).</p> |
---|
118 | <p>Run this script with one optional argument, the path to the GSASII.py |
---|
119 | The script path may be specified relative to the current path or given |
---|
120 | an absolute path, but will be accessed via an absolute path. |
---|
121 | If no arguments are supplied, the GSASII.py script is assumed to be in the |
---|
122 | same directory as this file.</p> |
---|
123 | </div> |
---|
124 | <span class="target" id="module-unit_tests"></span><div class="section" id="unit-tests-self-test-module"> |
---|
125 | <h2><em>unit_tests: Self-test Module</em><a class="headerlink" href="#unit-tests-self-test-module" title="Permalink to this headline">¶</a></h2> |
---|
126 | <p>A script that can be run to test a series of self-tests in GSAS-II. At present, |
---|
127 | only modules <tt class="docutils literal"><span class="pre">GSASIIspc</span></tt> and <tt class="docutils literal"><span class="pre">GSASIIlattice</span></tt> have self-tests.</p> |
---|
128 | <dl class="function"> |
---|
129 | <dt id="unit_tests.test_GSASIIlattice"> |
---|
130 | <tt class="descclassname">unit_tests.</tt><tt class="descname">test_GSASIIlattice</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/unit_tests.html#test_GSASIIlattice"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#unit_tests.test_GSASIIlattice" title="Permalink to this definition">¶</a></dt> |
---|
131 | <dd><p>Test registered self-tests in <tt class="docutils literal"><span class="pre">GSASIIlattice</span></tt>. |
---|
132 | Takes no input and returns nothing. Throws an Exception if a test fails.</p> |
---|
133 | </dd></dl> |
---|
134 | |
---|
135 | <dl class="function"> |
---|
136 | <dt id="unit_tests.test_GSASIIspc"> |
---|
137 | <tt class="descclassname">unit_tests.</tt><tt class="descname">test_GSASIIspc</tt><big>(</big><big>)</big><a class="reference internal" href="_modules/unit_tests.html#test_GSASIIspc"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#unit_tests.test_GSASIIspc" title="Permalink to this definition">¶</a></dt> |
---|
138 | <dd><p>Test registered self-tests in <tt class="docutils literal"><span class="pre">GSASIIspc</span></tt>. |
---|
139 | Takes no input and returns nothing. Throws an Exception if a test fails.</p> |
---|
140 | </dd></dl> |
---|
141 | |
---|
142 | </div> |
---|
143 | </div> |
---|
144 | |
---|
145 | |
---|
146 | </div> |
---|
147 | </div> |
---|
148 | </div> |
---|
149 | <div class="sphinxsidebar"> |
---|
150 | <div class="sphinxsidebarwrapper"> |
---|
151 | <p class="logo"><a href="index.html"> |
---|
152 | <img class="logo" src="_static/G2_html_logo.png" alt="Logo"/> |
---|
153 | </a></p> |
---|
154 | <h3><a href="index.html">Table Of Contents</a></h3> |
---|
155 | <ul> |
---|
156 | <li><a class="reference internal" href="#"><em>GSAS-II Scripts</em></a><ul> |
---|
157 | <li><a class="reference internal" href="#testderiv-check-derivative-computation"><em>testDeriv: Check derivative computation</em></a></li> |
---|
158 | <li><a class="reference internal" href="#gsasiitestplot-plotting-for-testderiv"><em>GSASIItestplot: Plotting for testDeriv</em></a></li> |
---|
159 | <li><a class="reference internal" href="#scanccd-reduce-data-from-scanning-ccd"><em>scanCCD: reduce data from scanning CCD</em></a></li> |
---|
160 | <li><a class="reference internal" href="#makemacapp-create-mac-applet"><em>makeMacApp: Create Mac Applet</em></a></li> |
---|
161 | <li><a class="reference internal" href="#unit-tests-self-test-module"><em>unit_tests: Self-test Module</em></a></li> |
---|
162 | </ul> |
---|
163 | </li> |
---|
164 | </ul> |
---|
165 | |
---|
166 | <h4>Previous topic</h4> |
---|
167 | <p class="topless"><a href="GSASIIpwd.html" |
---|
168 | title="previous chapter"><em>GSASII powder calculation module</em></a></p> |
---|
169 | <h4>Next topic</h4> |
---|
170 | <p class="topless"><a href="exports.html" |
---|
171 | title="next chapter"><em>GSAS-II Export Modules</em></a></p> |
---|
172 | <h3>This Page</h3> |
---|
173 | <ul class="this-page-menu"> |
---|
174 | <li><a href="_sources/GSASIIscripts.txt" |
---|
175 | rel="nofollow">Show Source</a></li> |
---|
176 | </ul> |
---|
177 | <div id="searchbox" style="display: none"> |
---|
178 | <h3>Quick search</h3> |
---|
179 | <form class="search" action="search.html" method="get"> |
---|
180 | <input type="text" name="q" /> |
---|
181 | <input type="submit" value="Go" /> |
---|
182 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
183 | <input type="hidden" name="area" value="default" /> |
---|
184 | </form> |
---|
185 | <p class="searchtip" style="font-size: 90%"> |
---|
186 | Enter search terms or a module, class or function name. |
---|
187 | </p> |
---|
188 | </div> |
---|
189 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
190 | </div> |
---|
191 | </div> |
---|
192 | <div class="clearer"></div> |
---|
193 | </div> |
---|
194 | <div class="related"> |
---|
195 | <h3>Navigation</h3> |
---|
196 | <ul> |
---|
197 | <li class="right" style="margin-right: 10px"> |
---|
198 | <a href="genindex.html" title="General Index" |
---|
199 | >index</a></li> |
---|
200 | <li class="right" > |
---|
201 | <a href="py-modindex.html" title="Python Module Index" |
---|
202 | >modules</a> |</li> |
---|
203 | <li class="right" > |
---|
204 | <a href="exports.html" title="GSAS-II Export Modules" |
---|
205 | >next</a> |</li> |
---|
206 | <li class="right" > |
---|
207 | <a href="GSASIIpwd.html" title="GSASII powder calculation module" |
---|
208 | >previous</a> |</li> |
---|
209 | <li><a href="index.html">GSAS-II 0.2.0 documentation</a> »</li> |
---|
210 | </ul> |
---|
211 | </div> |
---|
212 | <div class="footer"> |
---|
213 | © Copyright 2013, Von Dreele and Toby for Argonne National Laboratory. |
---|
214 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.2. |
---|
215 | </div> |
---|
216 | </body> |
---|
217 | </html> |
---|