[512573a] | 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 | |
---|
[c0d873f] | 6 | |
---|
[512573a] | 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 8 | <head> |
---|
| 9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
| 10 | |
---|
[c0d873f] | 11 | <title>ModelIO — sansmodels 0.1.0 documentation</title> |
---|
| 12 | |
---|
[512573a] | 13 | <link rel="stylesheet" href="../_static/default.css" type="text/css" /> |
---|
| 14 | <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
---|
[c0d873f] | 15 | |
---|
[512573a] | 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> |
---|
[c0d873f] | 28 | <link rel="top" title="sansmodels 0.1.0 documentation" href="../index.html" /> |
---|
[512573a] | 29 | <link rel="up" title="Reference" href="index.html" /> |
---|
| 30 | <link rel="next" title="MulComponent" href="MulComponent.html" /> |
---|
| 31 | <link rel="prev" title="ModelFactory" href="ModelFactory.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="MulComponent.html" title="MulComponent" |
---|
| 45 | accesskey="N">next</a> |</li> |
---|
| 46 | <li class="right" > |
---|
| 47 | <a href="ModelFactory.html" title="ModelFactory" |
---|
| 48 | accesskey="P">previous</a> |</li> |
---|
[c0d873f] | 49 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
[512573a] | 50 | <li><a href="index.html" accesskey="U">Reference</a> »</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="modelio"> |
---|
| 60 | <h1>ModelIO<a class="headerlink" href="#modelio" title="Permalink to this headline">¶</a></h1> |
---|
[c0d873f] | 61 | <div class="section" id="sans-models-modelio"> |
---|
| 62 | <h2><a class="reference internal" href="#module-sans.models.ModelIO" title="sans.models.ModelIO"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.ModelIO</span></tt></a><a class="headerlink" href="#sans-models-modelio" title="Permalink to this headline">¶</a></h2> |
---|
| 63 | <span class="target" id="module-sans.models.ModelIO"></span><p>Model IO |
---|
[512573a] | 64 | Class that saves and loads composite models from files |
---|
| 65 | The parameters of the models are not set. The loaded |
---|
| 66 | model object will have the default parameters for all |
---|
| 67 | sub-models.</p> |
---|
| 68 | <p>@author: Mathieu Doucet / UTK |
---|
| 69 | @contact: <a class="reference external" href="mailto:mathieu.doucet%40nist.gov">mathieu<span>.</span>doucet<span>@</span>nist<span>.</span>gov</a></p> |
---|
| 70 | <dl class="class"> |
---|
| 71 | <dt id="sans.models.ModelIO.ModelIO"> |
---|
[c0d873f] | 72 | <em class="property">class </em><tt class="descclassname">sans.models.ModelIO.</tt><tt class="descname">ModelIO</tt><a class="headerlink" href="#sans.models.ModelIO.ModelIO" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 73 | <dd><p>Class to create composite models from file or save a model</p> |
---|
| 74 | <dl class="method"> |
---|
[c0d873f] | 75 | <dt id="sans.models.ModelIO.ModelIO.__init__"> |
---|
| 76 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelIO.ModelIO.__init__" title="Permalink to this definition">¶</a></dt> |
---|
| 77 | <dd><p>Initizalization |
---|
| 78 | @param factory: ModelFactory object</p> |
---|
| 79 | </dd></dl> |
---|
| 80 | |
---|
| 81 | <dl class="attribute"> |
---|
| 82 | <dt id="sans.models.ModelIO.ModelIO.__module__"> |
---|
| 83 | <tt class="descname">__module__</tt><em class="property"> = 'sans.models.ModelIO'</em><a class="headerlink" href="#sans.models.ModelIO.ModelIO.__module__" title="Permalink to this definition">¶</a></dt> |
---|
| 84 | <dd></dd></dl> |
---|
| 85 | |
---|
| 86 | <dl class="method"> |
---|
[512573a] | 87 | <dt id="sans.models.ModelIO.ModelIO.load"> |
---|
[c0d873f] | 88 | <tt class="descname">load</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelIO.ModelIO.load" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 89 | <dd><p>Load a model from a file |
---|
| 90 | @param file: file to load |
---|
| 91 | @return: a new BaseComponent</p> |
---|
| 92 | </dd></dl> |
---|
| 93 | |
---|
| 94 | <dl class="method"> |
---|
| 95 | <dt id="sans.models.ModelIO.ModelIO.lookupComponentNodes"> |
---|
[c0d873f] | 96 | <tt class="descname">lookupComponentNodes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelIO.ModelIO.lookupComponentNodes" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 97 | <dd><p>Look up a component node among the children of a node |
---|
| 98 | @param node: the minidom node to investigate |
---|
| 99 | @return: the model object described by the component node, None otherwise</p> |
---|
| 100 | </dd></dl> |
---|
| 101 | |
---|
| 102 | <dl class="method"> |
---|
| 103 | <dt id="sans.models.ModelIO.ModelIO.modelToXML"> |
---|
[c0d873f] | 104 | <tt class="descname">modelToXML</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelIO.ModelIO.modelToXML" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 105 | <dd><p>Saves XML representation of the component |
---|
| 106 | @param model: model to save |
---|
| 107 | @param file: name of file to write to (if None, a string is returned)</p> |
---|
| 108 | </dd></dl> |
---|
| 109 | |
---|
| 110 | <dl class="method"> |
---|
| 111 | <dt id="sans.models.ModelIO.ModelIO.processComponentNode"> |
---|
[c0d873f] | 112 | <tt class="descname">processComponentNode</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelIO.ModelIO.processComponentNode" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 113 | <dd><p>Process an XML ‘Component’ node in a model file |
---|
| 114 | @param node: XML minidom node to process |
---|
| 115 | @param model: model object to build from</p> |
---|
| 116 | </dd></dl> |
---|
| 117 | |
---|
| 118 | <dl class="method"> |
---|
| 119 | <dt id="sans.models.ModelIO.ModelIO.save"> |
---|
[c0d873f] | 120 | <tt class="descname">save</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelIO.ModelIO.save" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 121 | <dd><p>Save the XML representation of a model to a file |
---|
| 122 | @param model: XML representation of the model |
---|
| 123 | @param filename: the path of the file to write to |
---|
| 124 | @return: True if everything went well</p> |
---|
| 125 | </dd></dl> |
---|
| 126 | |
---|
| 127 | </dd></dl> |
---|
| 128 | |
---|
| 129 | </div> |
---|
| 130 | </div> |
---|
| 131 | |
---|
| 132 | |
---|
| 133 | </div> |
---|
| 134 | </div> |
---|
| 135 | </div> |
---|
| 136 | <div class="sphinxsidebar"> |
---|
| 137 | <div class="sphinxsidebarwrapper"> |
---|
| 138 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
| 139 | <ul> |
---|
| 140 | <li><a class="reference internal" href="#">ModelIO</a><ul> |
---|
[c0d873f] | 141 | <li><a class="reference internal" href="#sans-models-modelio"><tt class="docutils literal"><span class="pre">sans.models.ModelIO</span></tt></a></li> |
---|
[512573a] | 142 | </ul> |
---|
| 143 | </li> |
---|
| 144 | </ul> |
---|
| 145 | |
---|
| 146 | <h4>Previous topic</h4> |
---|
| 147 | <p class="topless"><a href="ModelFactory.html" |
---|
| 148 | title="previous chapter">ModelFactory</a></p> |
---|
| 149 | <h4>Next topic</h4> |
---|
| 150 | <p class="topless"><a href="MulComponent.html" |
---|
| 151 | title="next chapter">MulComponent</a></p> |
---|
| 152 | <h3>This Page</h3> |
---|
| 153 | <ul class="this-page-menu"> |
---|
| 154 | <li><a href="../_sources/api/ModelIO.txt" |
---|
| 155 | rel="nofollow">Show Source</a></li> |
---|
| 156 | </ul> |
---|
| 157 | <div id="searchbox" style="display: none"> |
---|
| 158 | <h3>Quick search</h3> |
---|
| 159 | <form class="search" action="../search.html" method="get"> |
---|
[c0d873f] | 160 | <input type="text" name="q" /> |
---|
[512573a] | 161 | <input type="submit" value="Go" /> |
---|
| 162 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
| 163 | <input type="hidden" name="area" value="default" /> |
---|
| 164 | </form> |
---|
| 165 | <p class="searchtip" style="font-size: 90%"> |
---|
| 166 | Enter search terms or a module, class or function name. |
---|
| 167 | </p> |
---|
| 168 | </div> |
---|
| 169 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
| 170 | </div> |
---|
| 171 | </div> |
---|
| 172 | <div class="clearer"></div> |
---|
| 173 | </div> |
---|
| 174 | <div class="related"> |
---|
| 175 | <h3>Navigation</h3> |
---|
| 176 | <ul> |
---|
| 177 | <li class="right" style="margin-right: 10px"> |
---|
| 178 | <a href="../genindex.html" title="General Index" |
---|
| 179 | >index</a></li> |
---|
| 180 | <li class="right" > |
---|
| 181 | <a href="../py-modindex.html" title="Python Module Index" |
---|
| 182 | >modules</a> |</li> |
---|
| 183 | <li class="right" > |
---|
| 184 | <a href="MulComponent.html" title="MulComponent" |
---|
| 185 | >next</a> |</li> |
---|
| 186 | <li class="right" > |
---|
| 187 | <a href="ModelFactory.html" title="ModelFactory" |
---|
| 188 | >previous</a> |</li> |
---|
[c0d873f] | 189 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
[512573a] | 190 | <li><a href="index.html" >Reference</a> »</li> |
---|
| 191 | </ul> |
---|
| 192 | </div> |
---|
| 193 | <div class="footer"> |
---|
| 194 | © Copyright 2010, sans group. |
---|
[c0d873f] | 195 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. |
---|
[512573a] | 196 | </div> |
---|
| 197 | </body> |
---|
| 198 | </html> |
---|