source: sasview/inversionview/docs/sphinx/html/api/perspectives/pr/inversion_state.html @ 40299ce

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 40299ce was 40299ce, checked in by Gervaise Alina <gervyh@…>, 13 years ago

edit doc

  • Property mode set to 100644
File size: 11.2 KB
Line 
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>inversion_state &mdash; prview 0.1.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.1.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    <link rel="top" title="prview 0.1.0 documentation" href="../../../index.html" />
29    <link rel="up" title="Reference" href="index.html" />
30    <link rel="next" title="pr" href="pr.html" />
31    <link rel="prev" title="inversion_panel" href="inversion_panel.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="pr.html" title="pr"
45             accesskey="N">next</a> |</li>
46        <li class="right" >
47          <a href="inversion_panel.html" title="inversion_panel"
48             accesskey="P">previous</a> |</li>
49        <li><a href="../../../index.html">prview 0.1.0 documentation</a> &raquo;</li>
50          <li><a href="index.html" accesskey="U">Reference</a> &raquo;</li> 
51      </ul>
52    </div> 
53
54    <div class="document">
55      <div class="documentwrapper">
56        <div class="bodywrapper">
57          <div class="body">
58           
59  <div class="section" id="inversion-state">
60<h1>inversion_state<a class="headerlink" href="#inversion-state" title="Permalink to this headline">¶</a></h1>
61<div class="section" id="sans-perspectives-pr-inversion-state">
62<h2><a class="reference internal" href="#module-sans.perspectives.pr.inversion_state" title="sans.perspectives.pr.inversion_state"><tt class="xref py py-mod docutils literal"><span class="pre">sans.perspectives.pr.inversion_state</span></tt></a><a class="headerlink" href="#sans-perspectives-pr-inversion-state" title="Permalink to this headline">¶</a></h2>
63<span class="target" id="module-sans.perspectives.pr.inversion_state"></span><dl class="class">
64<dt id="sans.perspectives.pr.inversion_state.InversionState">
65<em class="property">class </em><tt class="descclassname">sans.perspectives.pr.inversion_state.</tt><tt class="descname">InversionState</tt><a class="headerlink" href="#sans.perspectives.pr.inversion_state.InversionState" title="Permalink to this definition">¶</a></dt>
66<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
67<p>Class to hold the state information of the InversionControl panel.</p>
68<dl class="method">
69<dt id="sans.perspectives.pr.inversion_state.InversionState.fromXML">
70<tt class="descname">fromXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.pr.inversion_state.InversionState.fromXML" title="Permalink to this definition">¶</a></dt>
71<dd><p>Load a P(r) inversion state from a file</p>
72<table class="docutils field-list" frame="void" rules="none">
73<col class="field-name" />
74<col class="field-body" />
75<tbody valign="top">
76<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
77<li><strong>file</strong> &#8211; .prv file</li>
78<li><strong>node</strong> &#8211; node of a XML document to read from</li>
79</ul>
80</td>
81</tr>
82</tbody>
83</table>
84</dd></dl>
85
86<dl class="method">
87<dt id="sans.perspectives.pr.inversion_state.InversionState.toXML">
88<tt class="descname">toXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.pr.inversion_state.InversionState.toXML" title="Permalink to this definition">¶</a></dt>
89<dd><p>Writes the state of the InversionControl panel to file, as XML.</p>
90<p>Compatible with standalone writing, or appending to an
91already existing XML document. In that case, the XML document
92is required. An optional entry node in the XML document
93may also be given.</p>
94<table class="docutils field-list" frame="void" rules="none">
95<col class="field-name" />
96<col class="field-body" />
97<tbody valign="top">
98<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
99<li><strong>file</strong> &#8211; file to write to</li>
100<li><strong>doc</strong> &#8211; XML document object [optional]</li>
101<li><strong>entry_node</strong> &#8211; XML node within the XML document at which
102we will append the data [optional]</li>
103</ul>
104</td>
105</tr>
106</tbody>
107</table>
108</dd></dl>
109
110</dd></dl>
111
112<dl class="class">
113<dt id="sans.perspectives.pr.inversion_state.Reader">
114<em class="property">class </em><tt class="descclassname">sans.perspectives.pr.inversion_state.</tt><tt class="descname">Reader</tt><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader" title="Permalink to this definition">¶</a></dt>
115<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">sans.dataloader.readers.cansas_reader.Reader</span></tt></p>
116<p>Class to load a .prv P(r) inversion file</p>
117<dl class="attribute">
118<dt id="sans.perspectives.pr.inversion_state.Reader.ext">
119<tt class="descname">ext</tt><em class="property"> = ['.prv', '.PRV', '.svs', '.SVS']</em><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.ext" title="Permalink to this definition">¶</a></dt>
120<dd></dd></dl>
121
122<dl class="method">
123<dt id="sans.perspectives.pr.inversion_state.Reader.read">
124<tt class="descname">read</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.read" title="Permalink to this definition">¶</a></dt>
125<dd><p>Load a new P(r) inversion state from file</p>
126<table class="docutils field-list" frame="void" rules="none">
127<col class="field-name" />
128<col class="field-body" />
129<tbody valign="top">
130<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>path</strong> &#8211; file path</td>
131</tr>
132<tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">None</td>
133</tr>
134</tbody>
135</table>
136</dd></dl>
137
138<dl class="attribute">
139<dt id="sans.perspectives.pr.inversion_state.Reader.type">
140<tt class="descname">type</tt><em class="property"> = ['P(r) files (*.prv)|*.prv', 'SANSView files (*.svs)|*.svs']</em><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.type" title="Permalink to this definition">¶</a></dt>
141<dd></dd></dl>
142
143<dl class="attribute">
144<dt id="sans.perspectives.pr.inversion_state.Reader.type_name">
145<tt class="descname">type_name</tt><em class="property"> = 'P(r)'</em><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.type_name" title="Permalink to this definition">¶</a></dt>
146<dd></dd></dl>
147
148<dl class="attribute">
149<dt id="sans.perspectives.pr.inversion_state.Reader.version">
150<tt class="descname">version</tt><em class="property"> = '1.0'</em><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.version" title="Permalink to this definition">¶</a></dt>
151<dd></dd></dl>
152
153<dl class="method">
154<dt id="sans.perspectives.pr.inversion_state.Reader.write">
155<tt class="descname">write</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.write" title="Permalink to this definition">¶</a></dt>
156<dd><p>Write the content of a Data1D as a CanSAS XML file</p>
157<table class="docutils field-list" frame="void" rules="none">
158<col class="field-name" />
159<col class="field-body" />
160<tbody valign="top">
161<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
162<li><strong>filename</strong> &#8211; name of the file to write</li>
163<li><strong>datainfo</strong> &#8211; Data1D object</li>
164<li><strong>prstate</strong> &#8211; InversionState object</li>
165</ul>
166</td>
167</tr>
168</tbody>
169</table>
170</dd></dl>
171
172<dl class="method">
173<dt id="sans.perspectives.pr.inversion_state.Reader.write_toXML">
174<tt class="descname">write_toXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.pr.inversion_state.Reader.write_toXML" title="Permalink to this definition">¶</a></dt>
175<dd><p>Write toXML, a helper for write()</p>
176<p>: return: xml doc</p>
177</dd></dl>
178
179</dd></dl>
180
181</div>
182</div>
183
184
185          </div>
186        </div>
187      </div>
188      <div class="sphinxsidebar">
189        <div class="sphinxsidebarwrapper">
190  <h3><a href="../../../index.html">Table Of Contents</a></h3>
191  <ul>
192<li><a class="reference internal" href="#">inversion_state</a><ul>
193<li><a class="reference internal" href="#sans-perspectives-pr-inversion-state"><tt class="docutils literal"><span class="pre">sans.perspectives.pr.inversion_state</span></tt></a></li>
194</ul>
195</li>
196</ul>
197
198  <h4>Previous topic</h4>
199  <p class="topless"><a href="inversion_panel.html"
200                        title="previous chapter">inversion_panel</a></p>
201  <h4>Next topic</h4>
202  <p class="topless"><a href="pr.html"
203                        title="next chapter">pr</a></p>
204  <h3>This Page</h3>
205  <ul class="this-page-menu">
206    <li><a href="../../../_sources/api/perspectives/pr/inversion_state.txt"
207           rel="nofollow">Show Source</a></li>
208  </ul>
209<div id="searchbox" style="display: none">
210  <h3>Quick search</h3>
211    <form class="search" action="../../../search.html" method="get">
212      <input type="text" name="q" />
213      <input type="submit" value="Go" />
214      <input type="hidden" name="check_keywords" value="yes" />
215      <input type="hidden" name="area" value="default" />
216    </form>
217    <p class="searchtip" style="font-size: 90%">
218    Enter search terms or a module, class or function name.
219    </p>
220</div>
221<script type="text/javascript">$('#searchbox').show(0);</script>
222        </div>
223      </div>
224      <div class="clearer"></div>
225    </div>
226    <div class="related">
227      <h3>Navigation</h3>
228      <ul>
229        <li class="right" style="margin-right: 10px">
230          <a href="../../../genindex.html" title="General Index"
231             >index</a></li>
232        <li class="right" >
233          <a href="../../../py-modindex.html" title="Python Module Index"
234             >modules</a> |</li>
235        <li class="right" >
236          <a href="pr.html" title="pr"
237             >next</a> |</li>
238        <li class="right" >
239          <a href="inversion_panel.html" title="inversion_panel"
240             >previous</a> |</li>
241        <li><a href="../../../index.html">prview 0.1.0 documentation</a> &raquo;</li>
242          <li><a href="index.html" >Reference</a> &raquo;</li> 
243      </ul>
244    </div>
245    <div class="footer">
246        &copy; Copyright 2010, sans group.
247      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.
248    </div>
249  </body>
250</html>
Note: See TracBrowser for help on using the repository browser.