[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>BaseModel — 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="BCCrystalModel" href="BCCrystalModel.html" /> |
---|
| 31 | <link rel="prev" title="BaseComponent" href="BaseComponent.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="BCCrystalModel.html" title="BCCrystalModel" |
---|
| 45 | accesskey="N">next</a> |</li> |
---|
| 46 | <li class="right" > |
---|
| 47 | <a href="BaseComponent.html" title="BaseComponent" |
---|
| 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="basemodel"> |
---|
| 60 | <h1>BaseModel<a class="headerlink" href="#basemodel" title="Permalink to this headline">¶</a></h1> |
---|
[c0d873f] | 61 | <div class="section" id="sans-models-basemodel"> |
---|
| 62 | <h2><a class="reference internal" href="#module-sans.models.BaseModel" title="sans.models.BaseModel"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.BaseModel</span></tt></a><a class="headerlink" href="#sans-models-basemodel" title="Permalink to this headline">¶</a></h2> |
---|
| 63 | <span class="target" id="module-sans.models.BaseModel"></span><p>Provide base functionality for all model components</p> |
---|
[512573a] | 64 | <p>The following has changed since going from BaseComponent to BaseModel:</p> |
---|
| 65 | <blockquote> |
---|
| 66 | <div><ul class="simple"> |
---|
| 67 | <li>Arithmetic operation between models is no longer supported. |
---|
| 68 | It was found to be of little use and not very flexible.</li> |
---|
| 69 | <li>Parameters are now stored as Parameter object to provide |
---|
| 70 | the necessary extra information like limits, units, etc...</li> |
---|
| 71 | </ul> |
---|
| 72 | </div></blockquote> |
---|
| 73 | <dl class="class"> |
---|
| 74 | <dt id="sans.models.BaseModel.BaseModel"> |
---|
| 75 | <em class="property">class </em><tt class="descclassname">sans.models.BaseModel.</tt><tt class="descname">BaseModel</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel" title="Permalink to this definition">¶</a></dt> |
---|
| 76 | <dd><p>Bases: <a class="reference internal" href="ModelAdaptor.html#sans.models.ModelAdaptor.ModelAdaptor" title="sans.models.ModelAdaptor.ModelAdaptor"><tt class="xref py py-class docutils literal"><span class="pre">sans.models.ModelAdaptor.ModelAdaptor</span></tt></a></p> |
---|
| 77 | <p>Basic model component</p> |
---|
| 78 | <dl class="method"> |
---|
[c0d873f] | 79 | <dt id="sans.models.BaseModel.BaseModel.__add__"> |
---|
| 80 | <tt class="descname">__add__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__add__" title="Permalink to this definition">¶</a></dt> |
---|
| 81 | <dd></dd></dl> |
---|
| 82 | |
---|
| 83 | <dl class="method"> |
---|
| 84 | <dt id="sans.models.BaseModel.BaseModel.__call__"> |
---|
| 85 | <tt class="descname">__call__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__call__" title="Permalink to this definition">¶</a></dt> |
---|
| 86 | <dd><p>Evaluate the model. Equivalent to runXY(x)</p> |
---|
| 87 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 88 | <col class="field-name" /> |
---|
| 89 | <col class="field-body" /> |
---|
| 90 | <tbody valign="top"> |
---|
| 91 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>x</strong> – input value</td> |
---|
| 92 | </tr> |
---|
| 93 | <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body">value of the model</td> |
---|
| 94 | </tr> |
---|
| 95 | </tbody> |
---|
| 96 | </table> |
---|
| 97 | </dd></dl> |
---|
| 98 | |
---|
| 99 | <dl class="attribute"> |
---|
| 100 | <dt id="sans.models.BaseModel.BaseModel.__class__"> |
---|
| 101 | <tt class="descname">__class__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__class__" title="Permalink to this definition">¶</a></dt> |
---|
| 102 | <dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p> |
---|
| 103 | </dd></dl> |
---|
| 104 | |
---|
| 105 | <dl class="attribute"> |
---|
| 106 | <dt id="sans.models.BaseModel.BaseModel.__delattr__"> |
---|
| 107 | <tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__delattr__" title="Permalink to this definition">¶</a></dt> |
---|
| 108 | <dd><p>x.__delattr__(‘name’) <==> del x.name</p> |
---|
| 109 | </dd></dl> |
---|
| 110 | |
---|
| 111 | <dl class="attribute"> |
---|
| 112 | <dt id="sans.models.BaseModel.BaseModel.__dict__"> |
---|
| 113 | <tt class="descname">__dict__</tt><em class="property"> = <dictproxy object at 0x01DD5790></em><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__dict__" title="Permalink to this definition">¶</a></dt> |
---|
| 114 | <dd></dd></dl> |
---|
| 115 | |
---|
| 116 | <dl class="method"> |
---|
| 117 | <dt id="sans.models.BaseModel.BaseModel.__div__"> |
---|
| 118 | <tt class="descname">__div__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__div__" title="Permalink to this definition">¶</a></dt> |
---|
| 119 | <dd></dd></dl> |
---|
| 120 | |
---|
| 121 | <dl class="attribute"> |
---|
| 122 | <dt id="sans.models.BaseModel.BaseModel.__getattribute__"> |
---|
| 123 | <tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__getattribute__" title="Permalink to this definition">¶</a></dt> |
---|
| 124 | <dd><p>x.__getattribute__(‘name’) <==> x.name</p> |
---|
| 125 | </dd></dl> |
---|
| 126 | |
---|
| 127 | <dl class="attribute"> |
---|
| 128 | <dt id="sans.models.BaseModel.BaseModel.__hash__"> |
---|
| 129 | <tt class="descname">__hash__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__hash__" title="Permalink to this definition">¶</a></dt> |
---|
| 130 | <dd><p>x.__hash__() <==> hash(x)</p> |
---|
| 131 | </dd></dl> |
---|
| 132 | |
---|
| 133 | <dl class="method"> |
---|
| 134 | <dt id="sans.models.BaseModel.BaseModel.__init__"> |
---|
| 135 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__init__" title="Permalink to this definition">¶</a></dt> |
---|
| 136 | <dd></dd></dl> |
---|
| 137 | |
---|
| 138 | <dl class="attribute"> |
---|
| 139 | <dt id="sans.models.BaseModel.BaseModel.__module__"> |
---|
| 140 | <tt class="descname">__module__</tt><em class="property"> = 'sans.models.BaseModel'</em><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__module__" title="Permalink to this definition">¶</a></dt> |
---|
| 141 | <dd></dd></dl> |
---|
| 142 | |
---|
| 143 | <dl class="method"> |
---|
| 144 | <dt id="sans.models.BaseModel.BaseModel.__mul__"> |
---|
| 145 | <tt class="descname">__mul__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__mul__" title="Permalink to this definition">¶</a></dt> |
---|
| 146 | <dd></dd></dl> |
---|
| 147 | |
---|
| 148 | <dl class="staticmethod"> |
---|
| 149 | <dt id="sans.models.BaseModel.BaseModel.__new__"> |
---|
| 150 | <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.models.BaseModel.BaseModel.__new__" title="Permalink to this definition">¶</a></dt> |
---|
| 151 | <dd></dd></dl> |
---|
| 152 | |
---|
| 153 | <dl class="method"> |
---|
| 154 | <dt id="sans.models.BaseModel.BaseModel.__reduce__"> |
---|
| 155 | <tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__reduce__" title="Permalink to this definition">¶</a></dt> |
---|
| 156 | <dd><p>helper for pickle</p> |
---|
| 157 | </dd></dl> |
---|
| 158 | |
---|
| 159 | <dl class="method"> |
---|
| 160 | <dt id="sans.models.BaseModel.BaseModel.__reduce_ex__"> |
---|
| 161 | <tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__reduce_ex__" title="Permalink to this definition">¶</a></dt> |
---|
| 162 | <dd><p>helper for pickle</p> |
---|
| 163 | </dd></dl> |
---|
| 164 | |
---|
| 165 | <dl class="attribute"> |
---|
| 166 | <dt id="sans.models.BaseModel.BaseModel.__repr__"> |
---|
| 167 | <tt class="descname">__repr__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__repr__" title="Permalink to this definition">¶</a></dt> |
---|
| 168 | <dd><p>x.__repr__() <==> repr(x)</p> |
---|
| 169 | </dd></dl> |
---|
| 170 | |
---|
| 171 | <dl class="attribute"> |
---|
| 172 | <dt id="sans.models.BaseModel.BaseModel.__setattr__"> |
---|
| 173 | <tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__setattr__" title="Permalink to this definition">¶</a></dt> |
---|
| 174 | <dd><p>x.__setattr__(‘name’, value) <==> x.name = value</p> |
---|
| 175 | </dd></dl> |
---|
| 176 | |
---|
| 177 | <dl class="attribute"> |
---|
| 178 | <dt id="sans.models.BaseModel.BaseModel.__str__"> |
---|
| 179 | <tt class="descname">__str__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__str__" title="Permalink to this definition">¶</a></dt> |
---|
| 180 | <dd><p>x.__str__() <==> str(x)</p> |
---|
| 181 | </dd></dl> |
---|
| 182 | |
---|
| 183 | <dl class="method"> |
---|
| 184 | <dt id="sans.models.BaseModel.BaseModel.__sub__"> |
---|
| 185 | <tt class="descname">__sub__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__sub__" title="Permalink to this definition">¶</a></dt> |
---|
| 186 | <dd></dd></dl> |
---|
| 187 | |
---|
| 188 | <dl class="attribute"> |
---|
| 189 | <dt id="sans.models.BaseModel.BaseModel.__weakref__"> |
---|
| 190 | <tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.models.BaseModel.BaseModel.__weakref__" title="Permalink to this definition">¶</a></dt> |
---|
| 191 | <dd><p>list of weak references to the object (if defined)</p> |
---|
| 192 | </dd></dl> |
---|
| 193 | |
---|
| 194 | <dl class="method"> |
---|
[512573a] | 195 | <dt id="sans.models.BaseModel.BaseModel.calculate_ER"> |
---|
| 196 | <tt class="descname">calculate_ER</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.calculate_ER" title="Permalink to this definition">¶</a></dt> |
---|
| 197 | <dd></dd></dl> |
---|
| 198 | |
---|
| 199 | <dl class="method"> |
---|
| 200 | <dt id="sans.models.BaseModel.BaseModel.clone"> |
---|
| 201 | <tt class="descname">clone</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.clone" title="Permalink to this definition">¶</a></dt> |
---|
| 202 | <dd><p>Returns a new object identical to the current object</p> |
---|
| 203 | </dd></dl> |
---|
| 204 | |
---|
| 205 | <dl class="method"> |
---|
| 206 | <dt id="sans.models.BaseModel.BaseModel.getParam"> |
---|
[c0d873f] | 207 | <tt class="descname">getParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.getParam" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 208 | <dd><p>Set the value of a model parameter</p> |
---|
| 209 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 210 | <col class="field-name" /> |
---|
| 211 | <col class="field-body" /> |
---|
| 212 | <tbody valign="top"> |
---|
[c0d873f] | 213 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
[512573a] | 214 | <li><strong>name</strong> – name of the parameter</li> |
---|
| 215 | <li><strong>value</strong> – value of the parameter</li> |
---|
| 216 | </ul> |
---|
| 217 | </td> |
---|
| 218 | </tr> |
---|
| 219 | </tbody> |
---|
| 220 | </table> |
---|
| 221 | </dd></dl> |
---|
| 222 | |
---|
| 223 | <dl class="method"> |
---|
| 224 | <dt id="sans.models.BaseModel.BaseModel.getParamList"> |
---|
| 225 | <tt class="descname">getParamList</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.getParamList" title="Permalink to this definition">¶</a></dt> |
---|
| 226 | <dd><p>Return a list of all available parameters for the model</p> |
---|
| 227 | </dd></dl> |
---|
| 228 | |
---|
| 229 | <dl class="method"> |
---|
| 230 | <dt id="sans.models.BaseModel.BaseModel.getParamListWithToken"> |
---|
[c0d873f] | 231 | <tt class="descname">getParamListWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.getParamListWithToken" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 232 | <dd></dd></dl> |
---|
| 233 | |
---|
| 234 | <dl class="method"> |
---|
| 235 | <dt id="sans.models.BaseModel.BaseModel.getParamWithToken"> |
---|
[c0d873f] | 236 | <tt class="descname">getParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.getParamWithToken" title="Permalink to this definition">¶</a></dt> |
---|
| 237 | <dd></dd></dl> |
---|
| 238 | |
---|
| 239 | <dl class="attribute"> |
---|
| 240 | <dt id="sans.models.BaseModel.BaseModel.name"> |
---|
| 241 | <tt class="descname">name</tt><em class="property"> = 'BaseModel'</em><a class="headerlink" href="#sans.models.BaseModel.BaseModel.name" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 242 | <dd></dd></dl> |
---|
| 243 | |
---|
| 244 | <dl class="method"> |
---|
| 245 | <dt id="sans.models.BaseModel.BaseModel.run"> |
---|
[c0d873f] | 246 | <tt class="descname">run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.run" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 247 | <dd></dd></dl> |
---|
| 248 | |
---|
| 249 | <dl class="method"> |
---|
| 250 | <dt id="sans.models.BaseModel.BaseModel.runXY"> |
---|
[c0d873f] | 251 | <tt class="descname">runXY</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.runXY" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 252 | <dd></dd></dl> |
---|
| 253 | |
---|
| 254 | <dl class="method"> |
---|
| 255 | <dt id="sans.models.BaseModel.BaseModel.setParam"> |
---|
[c0d873f] | 256 | <tt class="descname">setParam</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.setParam" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 257 | <dd><p>Set the value of a model parameter</p> |
---|
| 258 | <table class="docutils field-list" frame="void" rules="none"> |
---|
| 259 | <col class="field-name" /> |
---|
| 260 | <col class="field-body" /> |
---|
| 261 | <tbody valign="top"> |
---|
[c0d873f] | 262 | <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> |
---|
[512573a] | 263 | <li><strong>name</strong> – name of the parameter</li> |
---|
| 264 | <li><strong>value</strong> – value of the parameter</li> |
---|
| 265 | </ul> |
---|
| 266 | </td> |
---|
| 267 | </tr> |
---|
| 268 | </tbody> |
---|
| 269 | </table> |
---|
| 270 | </dd></dl> |
---|
| 271 | |
---|
| 272 | <dl class="method"> |
---|
| 273 | <dt id="sans.models.BaseModel.BaseModel.setParamWithToken"> |
---|
[c0d873f] | 274 | <tt class="descname">setParamWithToken</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.BaseModel.setParamWithToken" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 275 | <dd></dd></dl> |
---|
| 276 | |
---|
| 277 | </dd></dl> |
---|
| 278 | |
---|
| 279 | <dl class="class"> |
---|
| 280 | <dt id="sans.models.BaseModel.Parameter"> |
---|
[c0d873f] | 281 | <em class="property">class </em><tt class="descclassname">sans.models.BaseModel.</tt><tt class="descname">Parameter</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter" title="Permalink to this definition">¶</a></dt> |
---|
[512573a] | 282 | <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> |
---|
| 283 | <p>Parameter class</p> |
---|
[c0d873f] | 284 | <dl class="attribute"> |
---|
| 285 | <dt id="sans.models.BaseModel.Parameter.__class__"> |
---|
| 286 | <tt class="descname">__class__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__class__" title="Permalink to this definition">¶</a></dt> |
---|
| 287 | <dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p> |
---|
| 288 | </dd></dl> |
---|
| 289 | |
---|
| 290 | <dl class="attribute"> |
---|
| 291 | <dt id="sans.models.BaseModel.Parameter.__delattr__"> |
---|
| 292 | <tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__delattr__" title="Permalink to this definition">¶</a></dt> |
---|
| 293 | <dd><p>x.__delattr__(‘name’) <==> del x.name</p> |
---|
| 294 | </dd></dl> |
---|
| 295 | |
---|
| 296 | <dl class="attribute"> |
---|
| 297 | <dt id="sans.models.BaseModel.Parameter.__dict__"> |
---|
| 298 | <tt class="descname">__dict__</tt><em class="property"> = <dictproxy object at 0x01DD53B0></em><a class="headerlink" href="#sans.models.BaseModel.Parameter.__dict__" title="Permalink to this definition">¶</a></dt> |
---|
| 299 | <dd></dd></dl> |
---|
| 300 | |
---|
| 301 | <dl class="attribute"> |
---|
| 302 | <dt id="sans.models.BaseModel.Parameter.__getattribute__"> |
---|
| 303 | <tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__getattribute__" title="Permalink to this definition">¶</a></dt> |
---|
| 304 | <dd><p>x.__getattribute__(‘name’) <==> x.name</p> |
---|
| 305 | </dd></dl> |
---|
| 306 | |
---|
| 307 | <dl class="attribute"> |
---|
| 308 | <dt id="sans.models.BaseModel.Parameter.__hash__"> |
---|
| 309 | <tt class="descname">__hash__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__hash__" title="Permalink to this definition">¶</a></dt> |
---|
| 310 | <dd><p>x.__hash__() <==> hash(x)</p> |
---|
| 311 | </dd></dl> |
---|
| 312 | |
---|
| 313 | <dl class="method"> |
---|
| 314 | <dt id="sans.models.BaseModel.Parameter.__init__"> |
---|
| 315 | <tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.Parameter.__init__" title="Permalink to this definition">¶</a></dt> |
---|
| 316 | <dd></dd></dl> |
---|
| 317 | |
---|
| 318 | <dl class="attribute"> |
---|
| 319 | <dt id="sans.models.BaseModel.Parameter.__module__"> |
---|
| 320 | <tt class="descname">__module__</tt><em class="property"> = 'sans.models.BaseModel'</em><a class="headerlink" href="#sans.models.BaseModel.Parameter.__module__" title="Permalink to this definition">¶</a></dt> |
---|
| 321 | <dd></dd></dl> |
---|
| 322 | |
---|
| 323 | <dl class="staticmethod"> |
---|
| 324 | <dt id="sans.models.BaseModel.Parameter.__new__"> |
---|
| 325 | <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.models.BaseModel.Parameter.__new__" title="Permalink to this definition">¶</a></dt> |
---|
| 326 | <dd></dd></dl> |
---|
| 327 | |
---|
| 328 | <dl class="method"> |
---|
| 329 | <dt id="sans.models.BaseModel.Parameter.__reduce__"> |
---|
| 330 | <tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.Parameter.__reduce__" title="Permalink to this definition">¶</a></dt> |
---|
| 331 | <dd><p>helper for pickle</p> |
---|
| 332 | </dd></dl> |
---|
| 333 | |
---|
| 334 | <dl class="method"> |
---|
| 335 | <dt id="sans.models.BaseModel.Parameter.__reduce_ex__"> |
---|
| 336 | <tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.Parameter.__reduce_ex__" title="Permalink to this definition">¶</a></dt> |
---|
| 337 | <dd><p>helper for pickle</p> |
---|
| 338 | </dd></dl> |
---|
| 339 | |
---|
| 340 | <dl class="attribute"> |
---|
| 341 | <dt id="sans.models.BaseModel.Parameter.__repr__"> |
---|
| 342 | <tt class="descname">__repr__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__repr__" title="Permalink to this definition">¶</a></dt> |
---|
| 343 | <dd><p>x.__repr__() <==> repr(x)</p> |
---|
| 344 | </dd></dl> |
---|
| 345 | |
---|
| 346 | <dl class="attribute"> |
---|
| 347 | <dt id="sans.models.BaseModel.Parameter.__setattr__"> |
---|
| 348 | <tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__setattr__" title="Permalink to this definition">¶</a></dt> |
---|
| 349 | <dd><p>x.__setattr__(‘name’, value) <==> x.name = value</p> |
---|
| 350 | </dd></dl> |
---|
| 351 | |
---|
| 352 | <dl class="method"> |
---|
| 353 | <dt id="sans.models.BaseModel.Parameter.__str__"> |
---|
| 354 | <tt class="descname">__str__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.BaseModel.Parameter.__str__" title="Permalink to this definition">¶</a></dt> |
---|
| 355 | <dd></dd></dl> |
---|
| 356 | |
---|
| 357 | <dl class="attribute"> |
---|
| 358 | <dt id="sans.models.BaseModel.Parameter.__weakref__"> |
---|
| 359 | <tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.models.BaseModel.Parameter.__weakref__" title="Permalink to this definition">¶</a></dt> |
---|
| 360 | <dd><p>list of weak references to the object (if defined)</p> |
---|
| 361 | </dd></dl> |
---|
| 362 | |
---|
| 363 | <dl class="attribute"> |
---|
| 364 | <dt id="sans.models.BaseModel.Parameter.name"> |
---|
| 365 | <tt class="descname">name</tt><em class="property"> = ''</em><a class="headerlink" href="#sans.models.BaseModel.Parameter.name" title="Permalink to this definition">¶</a></dt> |
---|
| 366 | <dd></dd></dl> |
---|
| 367 | |
---|
| 368 | <dl class="attribute"> |
---|
| 369 | <dt id="sans.models.BaseModel.Parameter.value"> |
---|
| 370 | <tt class="descname">value</tt><em class="property"> = 0.0</em><a class="headerlink" href="#sans.models.BaseModel.Parameter.value" title="Permalink to this definition">¶</a></dt> |
---|
| 371 | <dd></dd></dl> |
---|
| 372 | |
---|
[512573a] | 373 | </dd></dl> |
---|
| 374 | |
---|
| 375 | <dl class="attribute"> |
---|
| 376 | <dt id="sans.models.BaseModel.ParameterProperty"> |
---|
| 377 | <tt class="descclassname">sans.models.BaseModel.</tt><tt class="descname">ParameterProperty</tt><a class="headerlink" href="#sans.models.BaseModel.ParameterProperty" title="Permalink to this definition">¶</a></dt> |
---|
| 378 | <dd><p>Parameter property allow direct access to |
---|
| 379 | the parameter values</p> |
---|
| 380 | </dd></dl> |
---|
| 381 | |
---|
| 382 | </div> |
---|
| 383 | </div> |
---|
| 384 | |
---|
| 385 | |
---|
| 386 | </div> |
---|
| 387 | </div> |
---|
| 388 | </div> |
---|
| 389 | <div class="sphinxsidebar"> |
---|
| 390 | <div class="sphinxsidebarwrapper"> |
---|
| 391 | <h3><a href="../index.html">Table Of Contents</a></h3> |
---|
| 392 | <ul> |
---|
| 393 | <li><a class="reference internal" href="#">BaseModel</a><ul> |
---|
[c0d873f] | 394 | <li><a class="reference internal" href="#sans-models-basemodel"><tt class="docutils literal"><span class="pre">sans.models.BaseModel</span></tt></a></li> |
---|
[512573a] | 395 | </ul> |
---|
| 396 | </li> |
---|
| 397 | </ul> |
---|
| 398 | |
---|
| 399 | <h4>Previous topic</h4> |
---|
| 400 | <p class="topless"><a href="BaseComponent.html" |
---|
| 401 | title="previous chapter">BaseComponent</a></p> |
---|
| 402 | <h4>Next topic</h4> |
---|
| 403 | <p class="topless"><a href="BCCrystalModel.html" |
---|
| 404 | title="next chapter">BCCrystalModel</a></p> |
---|
| 405 | <h3>This Page</h3> |
---|
| 406 | <ul class="this-page-menu"> |
---|
| 407 | <li><a href="../_sources/api/BaseModel.txt" |
---|
| 408 | rel="nofollow">Show Source</a></li> |
---|
| 409 | </ul> |
---|
| 410 | <div id="searchbox" style="display: none"> |
---|
| 411 | <h3>Quick search</h3> |
---|
| 412 | <form class="search" action="../search.html" method="get"> |
---|
[c0d873f] | 413 | <input type="text" name="q" /> |
---|
[512573a] | 414 | <input type="submit" value="Go" /> |
---|
| 415 | <input type="hidden" name="check_keywords" value="yes" /> |
---|
| 416 | <input type="hidden" name="area" value="default" /> |
---|
| 417 | </form> |
---|
| 418 | <p class="searchtip" style="font-size: 90%"> |
---|
| 419 | Enter search terms or a module, class or function name. |
---|
| 420 | </p> |
---|
| 421 | </div> |
---|
| 422 | <script type="text/javascript">$('#searchbox').show(0);</script> |
---|
| 423 | </div> |
---|
| 424 | </div> |
---|
| 425 | <div class="clearer"></div> |
---|
| 426 | </div> |
---|
| 427 | <div class="related"> |
---|
| 428 | <h3>Navigation</h3> |
---|
| 429 | <ul> |
---|
| 430 | <li class="right" style="margin-right: 10px"> |
---|
| 431 | <a href="../genindex.html" title="General Index" |
---|
| 432 | >index</a></li> |
---|
| 433 | <li class="right" > |
---|
| 434 | <a href="../py-modindex.html" title="Python Module Index" |
---|
| 435 | >modules</a> |</li> |
---|
| 436 | <li class="right" > |
---|
| 437 | <a href="BCCrystalModel.html" title="BCCrystalModel" |
---|
| 438 | >next</a> |</li> |
---|
| 439 | <li class="right" > |
---|
| 440 | <a href="BaseComponent.html" title="BaseComponent" |
---|
| 441 | >previous</a> |</li> |
---|
[c0d873f] | 442 | <li><a href="../index.html">sansmodels 0.1.0 documentation</a> »</li> |
---|
[512573a] | 443 | <li><a href="index.html" >Reference</a> »</li> |
---|
| 444 | </ul> |
---|
| 445 | </div> |
---|
| 446 | <div class="footer"> |
---|
| 447 | © Copyright 2010, sans group. |
---|
[c0d873f] | 448 | Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. |
---|
[512573a] | 449 | </div> |
---|
| 450 | </body> |
---|
| 451 | </html> |
---|