Changeset 30d3a1b in sasview for fittingview/docs/sphinx/html/api/perspectives/fitting/pagestate.html
- Timestamp:
- Oct 24, 2011 1:15:13 PM (13 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, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 89b7858
- Parents:
- 63edfb2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fittingview/docs/sphinx/html/api/perspectives/fitting/pagestate.html
r5a9a98f r30d3a1b 3 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 4 4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 5 5 6 6 7 <html xmlns="http://www.w3.org/1999/xhtml"> … … 8 9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 9 10 10 <title>pagestate — sansview v0.1.0 documentation</title> 11 <title>pagestate — sansview 0.1.0 documentation</title> 12 11 13 <link rel="stylesheet" href="../../../_static/default.css" type="text/css" /> 12 14 <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> 15 13 16 <script type="text/javascript"> 14 17 var DOCUMENTATION_OPTIONS = { … … 23 26 <script type="text/javascript" src="../../../_static/underscore.js"></script> 24 27 <script type="text/javascript" src="../../../_static/doctools.js"></script> 25 <link rel="top" title="sansview v0.1.0 documentation" href="../../../index.html" />28 <link rel="top" title="sansview 0.1.0 documentation" href="../../../index.html" /> 26 29 <link rel="up" title="Reference" href="index.html" /> 27 <link rel="next" title=" simfitpage" href="simfitpage.html" />28 <link rel="prev" title="model s" href="models.html" />30 <link rel="next" title="report_dialog" href="report_dialog.html" /> 31 <link rel="prev" title="model_thread" href="model_thread.html" /> 29 32 </head> 30 33 <body> … … 39 42 >modules</a> |</li> 40 43 <li class="right" > 41 <a href=" simfitpage.html" title="simfitpage"44 <a href="report_dialog.html" title="report_dialog" 42 45 accesskey="N">next</a> |</li> 43 46 <li class="right" > 44 <a href="model s.html" title="models"47 <a href="model_thread.html" title="model_thread" 45 48 accesskey="P">previous</a> |</li> 46 <li><a href="../../../index.html">sansview v0.1.0 documentation</a> »</li>49 <li><a href="../../../index.html">sansview 0.1.0 documentation</a> »</li> 47 50 <li><a href="index.html" accesskey="U">Reference</a> »</li> 48 51 </ul> … … 56 59 <div class="section" id="pagestate"> 57 60 <h1>pagestate<a class="headerlink" href="#pagestate" title="Permalink to this headline">¶</a></h1> 58 <div class="section" id=" module-sans.perspectives.fitting.pagestate">59 < span id="sans-perspectives-fitting-pagestate"></span><h2><a class="reference internal" href="#module-sans.perspectives.fitting.pagestate" title="sans.perspectives.fitting.pagestate"><tt class="xref py py-mod docutils literal"><span class="pre">sans.perspectives.fitting.pagestate</span></tt></a><a class="headerlink" href="#module-sans.perspectives.fitting.pagestate" title="Permalink to this headline">¶</a></h2>60 < dl class="class">61 <div class="section" id="sans-perspectives-fitting-pagestate"> 62 <h2><a class="reference internal" href="#module-sans.perspectives.fitting.pagestate" title="sans.perspectives.fitting.pagestate"><tt class="xref py py-mod docutils literal"><span class="pre">sans.perspectives.fitting.pagestate</span></tt></a><a class="headerlink" href="#sans-perspectives-fitting-pagestate" title="Permalink to this headline">¶</a></h2> 63 <span class="target" id="module-sans.perspectives.fitting.pagestate"></span><dl class="class"> 61 64 <dt id="sans.perspectives.fitting.pagestate.PageState"> 62 <em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.pagestate.</tt><tt class="descname">PageState</tt>< big>(</big><em>parent=None</em>, <em>model=None</em>, <em>data=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState" title="Permalink to this definition">¶</a></dt>65 <em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.pagestate.</tt><tt class="descname">PageState</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState" title="Permalink to this definition">¶</a></dt> 63 66 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> 64 67 <p>Contains information to reconstruct a page of the fitpanel.</p> 68 <dl class="attribute"> 69 <dt id="sans.perspectives.fitting.pagestate.PageState.__class__"> 70 <tt class="descname">__class__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__class__" title="Permalink to this definition">¶</a></dt> 71 <dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p> 72 </dd></dl> 73 74 <dl class="attribute"> 75 <dt id="sans.perspectives.fitting.pagestate.PageState.__delattr__"> 76 <tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__delattr__" title="Permalink to this definition">¶</a></dt> 77 <dd><p>x.__delattr__(‘name’) <==> del x.name</p> 78 </dd></dl> 79 80 <dl class="attribute"> 81 <dt id="sans.perspectives.fitting.pagestate.PageState.__dict__"> 82 <tt class="descname">__dict__</tt><em class="property"> = <dictproxy object at 0x0873E610></em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__dict__" title="Permalink to this definition">¶</a></dt> 83 <dd></dd></dl> 84 85 <dl class="attribute"> 86 <dt id="sans.perspectives.fitting.pagestate.PageState.__getattribute__"> 87 <tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__getattribute__" title="Permalink to this definition">¶</a></dt> 88 <dd><p>x.__getattribute__(‘name’) <==> x.name</p> 89 </dd></dl> 90 91 <dl class="attribute"> 92 <dt id="sans.perspectives.fitting.pagestate.PageState.__hash__"> 93 <tt class="descname">__hash__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__hash__" title="Permalink to this definition">¶</a></dt> 94 <dd><p>x.__hash__() <==> hash(x)</p> 95 </dd></dl> 96 97 <dl class="method"> 98 <dt id="sans.perspectives.fitting.pagestate.PageState.__init__"> 99 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__init__" title="Permalink to this definition">¶</a></dt> 100 <dd><p>Initialize the current state</p> 101 <table class="docutils field-list" frame="void" rules="none"> 102 <col class="field-name" /> 103 <col class="field-body" /> 104 <tbody valign="top"> 105 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 106 <li><strong>model</strong> – a selected model within a page</li> 107 <li><strong>data</strong> – </li> 108 </ul> 109 </td> 110 </tr> 111 </tbody> 112 </table> 113 </dd></dl> 114 115 <dl class="attribute"> 116 <dt id="sans.perspectives.fitting.pagestate.PageState.__module__"> 117 <tt class="descname">__module__</tt><em class="property"> = 'sans.perspectives.fitting.pagestate'</em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__module__" title="Permalink to this definition">¶</a></dt> 118 <dd></dd></dl> 119 120 <dl class="staticmethod"> 121 <dt id="sans.perspectives.fitting.pagestate.PageState.__new__"> 122 <em class="property">static </em><tt class="descname">__new__</tt><big>(</big><em>S</em>, <em>...</em><big>)</big> → a new object with type S, a subtype of T<a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__new__" title="Permalink to this definition">¶</a></dt> 123 <dd></dd></dl> 124 125 <dl class="method"> 126 <dt id="sans.perspectives.fitting.pagestate.PageState.__reduce__"> 127 <tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__reduce__" title="Permalink to this definition">¶</a></dt> 128 <dd><p>helper for pickle</p> 129 </dd></dl> 130 131 <dl class="method"> 132 <dt id="sans.perspectives.fitting.pagestate.PageState.__reduce_ex__"> 133 <tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__reduce_ex__" title="Permalink to this definition">¶</a></dt> 134 <dd><p>helper for pickle</p> 135 </dd></dl> 136 137 <dl class="method"> 138 <dt id="sans.perspectives.fitting.pagestate.PageState.__repr__"> 139 <tt class="descname">__repr__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__repr__" title="Permalink to this definition">¶</a></dt> 140 <dd><p>output string for printing</p> 141 </dd></dl> 142 143 <dl class="attribute"> 144 <dt id="sans.perspectives.fitting.pagestate.PageState.__setattr__"> 145 <tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__setattr__" title="Permalink to this definition">¶</a></dt> 146 <dd><p>x.__setattr__(‘name’, value) <==> x.name = value</p> 147 </dd></dl> 148 149 <dl class="attribute"> 150 <dt id="sans.perspectives.fitting.pagestate.PageState.__str__"> 151 <tt class="descname">__str__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__str__" title="Permalink to this definition">¶</a></dt> 152 <dd><p>x.__str__() <==> str(x)</p> 153 </dd></dl> 154 155 <dl class="attribute"> 156 <dt id="sans.perspectives.fitting.pagestate.PageState.__weakref__"> 157 <tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.__weakref__" title="Permalink to this definition">¶</a></dt> 158 <dd><p>list of weak references to the object (if defined)</p> 159 </dd></dl> 160 161 <dl class="method"> 162 <dt id="sans.perspectives.fitting.pagestate.PageState._check_html_format"> 163 <tt class="descname">_check_html_format</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState._check_html_format" title="Permalink to this definition">¶</a></dt> 164 <dd><p>Check string ‘%’ for html format</p> 165 </dd></dl> 166 167 <dl class="method"> 168 <dt id="sans.perspectives.fitting.pagestate.PageState._fromXML_helper"> 169 <tt class="descname">_fromXML_helper</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState._fromXML_helper" title="Permalink to this definition">¶</a></dt> 170 <dd><p>Helper function to write state to xml</p> 171 </dd></dl> 172 173 <dl class="method"> 174 <dt id="sans.perspectives.fitting.pagestate.PageState._repr_helper"> 175 <tt class="descname">_repr_helper</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState._repr_helper" title="Permalink to this definition">¶</a></dt> 176 <dd><p>Helper method to print a state</p> 177 </dd></dl> 178 179 <dl class="method"> 180 <dt id="sans.perspectives.fitting.pagestate.PageState._toXML_helper"> 181 <tt class="descname">_toXML_helper</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState._toXML_helper" title="Permalink to this definition">¶</a></dt> 182 <dd><p>Helper method to create xml file for saving state</p> 183 </dd></dl> 184 65 185 <dl class="method"> 66 186 <dt id="sans.perspectives.fitting.pagestate.PageState.clone"> … … 71 191 <dl class="method"> 72 192 <dt id="sans.perspectives.fitting.pagestate.PageState.fromXML"> 73 <tt class="descname">fromXML</tt><big>(</big>< em>file=None</em>, <em>node=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.fromXML" title="Permalink to this definition">¶</a></dt>193 <tt class="descname">fromXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.fromXML" title="Permalink to this definition">¶</a></dt> 74 194 <dd><p>Load fitting state from a file</p> 75 195 <table class="docutils field-list" frame="void" rules="none"> … … 77 197 <col class="field-body" /> 78 198 <tbody valign="top"> 79 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">199 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 80 200 <li><strong>file</strong> – .fitv file</li> 81 201 <li><strong>node</strong> – node of a XML document to read from</li> … … 89 209 <dl class="method"> 90 210 <dt id="sans.perspectives.fitting.pagestate.PageState.report"> 91 <tt class="descname">report</tt><big>(</big>< em>figs=None</em>, <em>canvases=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.report" title="Permalink to this definition">¶</a></dt>211 <tt class="descname">report</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.report" title="Permalink to this definition">¶</a></dt> 92 212 <dd><p>Invoke report dialog panel</p> 93 213 <p>: param figs: list of pylab figures [list]</p> … … 96 216 <dl class="method"> 97 217 <dt id="sans.perspectives.fitting.pagestate.PageState.set_plot_state"> 98 <tt class="descname">set_plot_state</tt><big>(</big>< em>figs</em>, <em>canvases</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.set_plot_state" title="Permalink to this definition">¶</a></dt>218 <tt class="descname">set_plot_state</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.set_plot_state" title="Permalink to this definition">¶</a></dt> 99 219 <dd><p>Build image state that wx.html understand 100 220 by plotting, putting it into wx.FileSystem image object</p> … … 109 229 <dl class="method"> 110 230 <dt id="sans.perspectives.fitting.pagestate.PageState.toXML"> 111 <tt class="descname">toXML</tt><big>(</big>< em>file='fitting_state.fitv'</em>, <em>doc=None</em>, <em>entry_node=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.toXML" title="Permalink to this definition">¶</a></dt>231 <tt class="descname">toXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.PageState.toXML" title="Permalink to this definition">¶</a></dt> 112 232 <dd><p>Writes the state of the InversionControl panel to file, as XML.</p> 113 233 <p>Compatible with standalone writing, or appending to an … … 118 238 <col class="field-body" /> 119 239 <tbody valign="top"> 120 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">240 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 121 241 <li><strong>file</strong> – file to write to</li> 122 242 <li><strong>doc</strong> – XML document object [optional]</li> … … 133 253 <dl class="class"> 134 254 <dt id="sans.perspectives.fitting.pagestate.Reader"> 135 <em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.pagestate.</tt><tt class="descname">Reader</tt>< big>(</big><em>call_back=None</em>, <em>cansas=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader" title="Permalink to this definition">¶</a></dt>255 <em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.pagestate.</tt><tt class="descname">Reader</tt><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader" title="Permalink to this definition">¶</a></dt> 136 256 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">sans.dataloader.readers.cansas_reader.Reader</span></tt></p> 137 257 <p>Class to load a .fitv fitting file</p> 138 258 <dl class="method"> 259 <dt id="sans.perspectives.fitting.pagestate.Reader.__init__"> 260 <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.__init__" title="Permalink to this definition">¶</a></dt> 261 <dd></dd></dl> 262 263 <dl class="attribute"> 264 <dt id="sans.perspectives.fitting.pagestate.Reader.__module__"> 265 <tt class="descname">__module__</tt><em class="property"> = 'sans.perspectives.fitting.pagestate'</em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.__module__" title="Permalink to this definition">¶</a></dt> 266 <dd></dd></dl> 267 268 <dl class="method"> 269 <dt id="sans.perspectives.fitting.pagestate.Reader._data2d_to_xml_doc"> 270 <tt class="descname">_data2d_to_xml_doc</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._data2d_to_xml_doc" title="Permalink to this definition">¶</a></dt> 271 <dd><p>Create an XML document to contain the content of a Data2D</p> 272 <table class="docutils field-list" frame="void" rules="none"> 273 <col class="field-name" /> 274 <col class="field-body" /> 275 <tbody valign="top"> 276 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>datainfo</strong> – Data2D object</td> 277 </tr> 278 </tbody> 279 </table> 280 </dd></dl> 281 282 <dl class="method"> 283 <dt id="sans.perspectives.fitting.pagestate.Reader._parse_entry"> 284 <tt class="descname">_parse_entry</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._parse_entry" title="Permalink to this definition">¶</a></dt> 285 <dd><p>Parse a SASentry</p> 286 <table class="docutils field-list" frame="void" rules="none"> 287 <col class="field-name" /> 288 <col class="field-body" /> 289 <tbody valign="top"> 290 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>node</strong> – SASentry node</td> 291 </tr> 292 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">Data1D/Data2D object</td> 293 </tr> 294 </tbody> 295 </table> 296 </dd></dl> 297 298 <dl class="method"> 299 <dt id="sans.perspectives.fitting.pagestate.Reader._parse_state"> 300 <tt class="descname">_parse_state</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._parse_state" title="Permalink to this definition">¶</a></dt> 301 <dd><p>Read a fit result from an XML node</p> 302 <table class="docutils field-list" frame="void" rules="none"> 303 <col class="field-name" /> 304 <col class="field-body" /> 305 <tbody valign="top"> 306 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>entry</strong> – XML node to read from</td> 307 </tr> 308 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">PageState object</td> 309 </tr> 310 </tbody> 311 </table> 312 </dd></dl> 313 314 <dl class="method"> 315 <dt id="sans.perspectives.fitting.pagestate.Reader._read_cansas"> 316 <tt class="descname">_read_cansas</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._read_cansas" title="Permalink to this definition">¶</a></dt> 317 <dd><p>Load data and P(r) information from a CanSAS XML file.</p> 318 <table class="docutils field-list" frame="void" rules="none"> 319 <col class="field-name" /> 320 <col class="field-body" /> 321 <tbody valign="top"> 322 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><p class="first"><strong>path</strong> – file path</p> 323 </td> 324 </tr> 325 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first">Data1D object if a single SASentry was found, 326 or a list of Data1D objects if multiple entries were found, 327 or None of nothing was found</p> 328 </td> 329 </tr> 330 <tr class="field-odd field"><th class="field-name">Raises:</th><td class="field-body"><ul class="first last simple"> 331 <li><strong>RuntimeError</strong> – when the file can’t be opened</li> 332 <li><strong>ValueError</strong> – when the length of the data vectors are inconsistent</li> 333 </ul> 334 </td> 335 </tr> 336 </tbody> 337 </table> 338 </dd></dl> 339 340 <dl class="method"> 341 <dt id="sans.perspectives.fitting.pagestate.Reader._store_content"> 342 <tt class="descname">_store_content</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._store_content" title="Permalink to this definition">¶</a></dt> 343 <dd><p>Get the content of a xpath location and store 344 the result. The value is treated as a string.</p> 345 <p>The xpath location might or might not exist. 346 If it does not exist, nothing is done</p> 347 <table class="docutils field-list" frame="void" rules="none"> 348 <col class="field-name" /> 349 <col class="field-body" /> 350 <tbody valign="top"> 351 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> 352 <li><strong>location</strong> – xpath location to fetch</li> 353 <li><strong>node</strong> – node to read the data from</li> 354 <li><strong>variable</strong> – name of the data member to store it in [string]</li> 355 <li><strong>storage</strong> – data object that has the ‘variable’ data member</li> 356 </ul> 357 </td> 358 </tr> 359 <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">return a list of errors</p> 360 </td> 361 </tr> 362 </tbody> 363 </table> 364 </dd></dl> 365 366 <dl class="method"> 367 <dt id="sans.perspectives.fitting.pagestate.Reader._store_float"> 368 <tt class="descname">_store_float</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._store_float" title="Permalink to this definition">¶</a></dt> 369 <dd><p>Get the content of a xpath location and store 370 the result. Check that the units are compatible 371 with the destination. The value is expected to 372 be a float.</p> 373 <p>The xpath location might or might not exist. 374 If it does not exist, nothing is done</p> 375 <table class="docutils field-list" frame="void" rules="none"> 376 <col class="field-name" /> 377 <col class="field-body" /> 378 <tbody valign="top"> 379 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> 380 <li><strong>location</strong> – xpath location to fetch</li> 381 <li><strong>node</strong> – node to read the data from</li> 382 <li><strong>variable</strong> – name of the data member to store it in [string]</li> 383 <li><strong>storage</strong> – data object that has the ‘variable’ data member</li> 384 <li><strong>optional</strong> – if True, no exception will be raised 385 if unit conversion can’t be done</li> 386 </ul> 387 </td> 388 </tr> 389 <tr class="field-even field"><th class="field-name" colspan="2">Raises ValueError:</th></tr> 390 <tr class="field-even field"><td> </td><td class="field-body"><p class="first last">raised when the units are not recognized</p> 391 </td> 392 </tr> 393 </tbody> 394 </table> 395 </dd></dl> 396 397 <dl class="method"> 398 <dt id="sans.perspectives.fitting.pagestate.Reader._to_xml_doc"> 399 <tt class="descname">_to_xml_doc</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader._to_xml_doc" title="Permalink to this definition">¶</a></dt> 400 <dd><p>Create an XML document to contain the content of a Data1D</p> 401 <table class="docutils field-list" frame="void" rules="none"> 402 <col class="field-name" /> 403 <col class="field-body" /> 404 <tbody valign="top"> 405 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>datainfo</strong> – Data1D object</td> 406 </tr> 407 </tbody> 408 </table> 409 </dd></dl> 410 411 <dl class="attribute"> 412 <dt id="sans.perspectives.fitting.pagestate.Reader.ext"> 413 <tt class="descname">ext</tt><em class="property"> = ['.fitv', '.FITV', '.svs', 'SVS']</em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.ext" title="Permalink to this definition">¶</a></dt> 414 <dd></dd></dl> 415 416 <dl class="method"> 139 417 <dt id="sans.perspectives.fitting.pagestate.Reader.get_state"> 140 418 <tt class="descname">get_state</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.get_state" title="Permalink to this definition">¶</a></dt> … … 143 421 <dl class="method"> 144 422 <dt id="sans.perspectives.fitting.pagestate.Reader.read"> 145 <tt class="descname">read</tt><big>(</big>< em>path</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.read" title="Permalink to this definition">¶</a></dt>423 <tt class="descname">read</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.read" title="Permalink to this definition">¶</a></dt> 146 424 <dd><p>Load a new P(r) inversion state from file</p> 147 425 <table class="docutils field-list" frame="void" rules="none"> … … 149 427 <col class="field-body" /> 150 428 <tbody valign="top"> 151 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>path</strong> – file path</td> 152 </tr> 153 </tbody> 154 </table> 155 </dd></dl> 429 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>path</strong> – file path</td> 430 </tr> 431 </tbody> 432 </table> 433 </dd></dl> 434 435 <dl class="attribute"> 436 <dt id="sans.perspectives.fitting.pagestate.Reader.type"> 437 <tt class="descname">type</tt><em class="property"> = ['Fitting files (*.fitv)|*.fitvSANSView file (*.svs)|*.svs']</em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.type" title="Permalink to this definition">¶</a></dt> 438 <dd></dd></dl> 439 440 <dl class="attribute"> 441 <dt id="sans.perspectives.fitting.pagestate.Reader.type_name"> 442 <tt class="descname">type_name</tt><em class="property"> = 'Fitting'</em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.type_name" title="Permalink to this definition">¶</a></dt> 443 <dd></dd></dl> 444 445 <dl class="attribute"> 446 <dt id="sans.perspectives.fitting.pagestate.Reader.version"> 447 <tt class="descname">version</tt><em class="property"> = '1.0'</em><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.version" title="Permalink to this definition">¶</a></dt> 448 <dd></dd></dl> 156 449 157 450 <dl class="method"> 158 451 <dt id="sans.perspectives.fitting.pagestate.Reader.write"> 159 <tt class="descname">write</tt><big>(</big>< em>filename</em>, <em>datainfo=None</em>, <em>fitstate=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.write" title="Permalink to this definition">¶</a></dt>452 <tt class="descname">write</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.write" title="Permalink to this definition">¶</a></dt> 160 453 <dd><p>Write the content of a Data1D as a CanSAS XML file only for standalone</p> 161 454 <table class="docutils field-list" frame="void" rules="none"> … … 163 456 <col class="field-body" /> 164 457 <tbody valign="top"> 165 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">458 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 166 459 <li><strong>filename</strong> – name of the file to write</li> 167 460 <li><strong>datainfo</strong> – Data1D object</li> … … 176 469 <dl class="method"> 177 470 <dt id="sans.perspectives.fitting.pagestate.Reader.write_toXML"> 178 <tt class="descname">write_toXML</tt><big>(</big>< em>datainfo=None</em>, <em>state=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.write_toXML" title="Permalink to this definition">¶</a></dt>471 <tt class="descname">write_toXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.Reader.write_toXML" title="Permalink to this definition">¶</a></dt> 179 472 <dd><p>Write toXML, a helper for write() , could be used by guimanager._on_save()</p> 180 473 <p>: return: xml doc</p> … … 185 478 <dl class="function"> 186 479 <dt id="sans.perspectives.fitting.pagestate.parse_entry_helper"> 187 <tt class="descclassname">sans.perspectives.fitting.pagestate.</tt><tt class="descname">parse_entry_helper</tt><big>(</big>< em>node</em>, <em>item</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.parse_entry_helper" title="Permalink to this definition">¶</a></dt>480 <tt class="descclassname">sans.perspectives.fitting.pagestate.</tt><tt class="descname">parse_entry_helper</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.pagestate.parse_entry_helper" title="Permalink to this definition">¶</a></dt> 188 481 <dd><p>Create a numpy list from value extrated from the node</p> 189 482 <table class="docutils field-list" frame="void" rules="none"> … … 191 484 <col class="field-body" /> 192 485 <tbody valign="top"> 193 <tr class="field "><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">486 <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 194 487 <li><strong>node</strong> – node from each the value is stored</li> 195 488 <li><strong>item</strong> – list name of three strings.the two first are name of data … … 216 509 <ul> 217 510 <li><a class="reference internal" href="#">pagestate</a><ul> 218 <li><a class="reference internal" href="# module-sans.perspectives.fitting.pagestate"><tt class="docutils literal"><span class="pre">sans.perspectives.fitting.pagestate</span></tt></a></li>511 <li><a class="reference internal" href="#sans-perspectives-fitting-pagestate"><tt class="docutils literal"><span class="pre">sans.perspectives.fitting.pagestate</span></tt></a></li> 219 512 </ul> 220 513 </li> … … 222 515 223 516 <h4>Previous topic</h4> 224 <p class="topless"><a href="model s.html"225 title="previous chapter">model s</a></p>517 <p class="topless"><a href="model_thread.html" 518 title="previous chapter">model_thread</a></p> 226 519 <h4>Next topic</h4> 227 <p class="topless"><a href=" simfitpage.html"228 title="next chapter"> simfitpage</a></p>520 <p class="topless"><a href="report_dialog.html" 521 title="next chapter">report_dialog</a></p> 229 522 <h3>This Page</h3> 230 523 <ul class="this-page-menu"> … … 235 528 <h3>Quick search</h3> 236 529 <form class="search" action="../../../search.html" method="get"> 237 <input type="text" name="q" size="18"/>530 <input type="text" name="q" /> 238 531 <input type="submit" value="Go" /> 239 532 <input type="hidden" name="check_keywords" value="yes" /> … … 259 552 >modules</a> |</li> 260 553 <li class="right" > 261 <a href=" simfitpage.html" title="simfitpage"554 <a href="report_dialog.html" title="report_dialog" 262 555 >next</a> |</li> 263 556 <li class="right" > 264 <a href="model s.html" title="models"557 <a href="model_thread.html" title="model_thread" 265 558 >previous</a> |</li> 266 <li><a href="../../../index.html">sansview v0.1.0 documentation</a> »</li>559 <li><a href="../../../index.html">sansview 0.1.0 documentation</a> »</li> 267 560 <li><a href="index.html" >Reference</a> »</li> 268 561 </ul> … … 270 563 <div class="footer"> 271 564 © Copyright 2010, sans group. 272 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1. 0.7.565 Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 273 566 </div> 274 567 </body>
Note: See TracChangeset
for help on using the changeset viewer.