source: sasview/sansmodels/docs/sphinx/html/api/ModelAdaptor.html @ 650fd318

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 650fd318 was 512573a, checked in by Jessica Tumarkin <jtumarki@…>, 13 years ago

HTML folder generated by Sphinx

  • Property mode set to 100644
File size: 12.7 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<html xmlns="http://www.w3.org/1999/xhtml">
7  <head>
8    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9   
10    <title>ModelAdaptor &mdash; sansmodels v0.1.0 documentation</title>
11    <link rel="stylesheet" href="../_static/default.css" type="text/css" />
12    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13    <script type="text/javascript">
14      var DOCUMENTATION_OPTIONS = {
15        URL_ROOT:    '../',
16        VERSION:     '0.1.0',
17        COLLAPSE_INDEX: false,
18        FILE_SUFFIX: '.html',
19        HAS_SOURCE:  true
20      };
21    </script>
22    <script type="text/javascript" src="../_static/jquery.js"></script>
23    <script type="text/javascript" src="../_static/underscore.js"></script>
24    <script type="text/javascript" src="../_static/doctools.js"></script>
25    <link rel="top" title="sansmodels v0.1.0 documentation" href="../index.html" />
26    <link rel="up" title="Reference" href="index.html" />
27    <link rel="next" title="ModelFactory" href="ModelFactory.html" />
28    <link rel="prev" title="LorentzModel" href="LorentzModel.html" /> 
29  </head>
30  <body>
31    <div class="related">
32      <h3>Navigation</h3>
33      <ul>
34        <li class="right" style="margin-right: 10px">
35          <a href="../genindex.html" title="General Index"
36             accesskey="I">index</a></li>
37        <li class="right" >
38          <a href="../py-modindex.html" title="Python Module Index"
39             >modules</a> |</li>
40        <li class="right" >
41          <a href="ModelFactory.html" title="ModelFactory"
42             accesskey="N">next</a> |</li>
43        <li class="right" >
44          <a href="LorentzModel.html" title="LorentzModel"
45             accesskey="P">previous</a> |</li>
46        <li><a href="../index.html">sansmodels v0.1.0 documentation</a> &raquo;</li>
47          <li><a href="index.html" accesskey="U">Reference</a> &raquo;</li> 
48      </ul>
49    </div> 
50
51    <div class="document">
52      <div class="documentwrapper">
53        <div class="bodywrapper">
54          <div class="body">
55           
56  <div class="section" id="modeladaptor">
57<h1>ModelAdaptor<a class="headerlink" href="#modeladaptor" title="Permalink to this headline">¶</a></h1>
58<div class="section" id="module-sans.models.ModelAdaptor">
59<span id="sans-models-modeladaptor"></span><h2><a class="reference internal" href="#module-sans.models.ModelAdaptor" title="sans.models.ModelAdaptor"><tt class="xref py py-mod docutils literal"><span class="pre">sans.models.ModelAdaptor</span></tt></a><a class="headerlink" href="#module-sans.models.ModelAdaptor" title="Permalink to this headline">¶</a></h2>
60<p>This software was developed by the University of Tennessee as part of the
61Distributed Data Analysis of Neutron Scattering Experiments (DANSE)
62project funded by the US National Science Foundation.</p>
63<p>If you use DANSE applications to do scientific research that leads to
64publication, we ask that you acknowledge the use of the software with the
65following sentence:</p>
66<p>&#8220;This work benefited from DANSE software developed under NSF award DMR-0520547.&#8221;</p>
67<p>copyright 2008, University of Tennessee</p>
68<dl class="class">
69<dt id="sans.models.ModelAdaptor.ModelAdaptor">
70<em class="property">class </em><tt class="descclassname">sans.models.ModelAdaptor.</tt><tt class="descname">ModelAdaptor</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ModelAdaptor" title="Permalink to this definition">¶</a></dt>
71<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
72<p>Model adaptor to provide old-style model functionality</p>
73<dl class="method">
74<dt id="sans.models.ModelAdaptor.ModelAdaptor.getParamListWithToken">
75<tt class="descname">getParamListWithToken</tt><big>(</big><em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.ModelAdaptor.ModelAdaptor.getParamListWithToken" title="Permalink to this definition">¶</a></dt>
76<dd></dd></dl>
77
78<dl class="method">
79<dt id="sans.models.ModelAdaptor.ModelAdaptor.getParamWithToken">
80<tt class="descname">getParamWithToken</tt><big>(</big><em>name</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.ModelAdaptor.ModelAdaptor.getParamWithToken" title="Permalink to this definition">¶</a></dt>
81<dd></dd></dl>
82
83<dl class="method">
84<dt id="sans.models.ModelAdaptor.ModelAdaptor.setParamWithToken">
85<tt class="descname">setParamWithToken</tt><big>(</big><em>name</em>, <em>value</em>, <em>token</em>, <em>member</em><big>)</big><a class="headerlink" href="#sans.models.ModelAdaptor.ModelAdaptor.setParamWithToken" title="Permalink to this definition">¶</a></dt>
86<dd></dd></dl>
87
88</dd></dl>
89
90<dl class="class">
91<dt id="sans.models.ModelAdaptor.ParameterDict">
92<em class="property">class </em><tt class="descclassname">sans.models.ModelAdaptor.</tt><tt class="descname">ParameterDict</tt><big>(</big><em>parameters</em><big>)</big><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict" title="Permalink to this definition">¶</a></dt>
93<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">dict</span></tt></p>
94<p>Parameter dictionary used for backward
95compatibility between the old-style &#8216;params&#8217;
96dictionary and the new-style &#8216;parameters&#8217;
97dictionary.</p>
98<dl class="attribute">
99<dt id="sans.models.ModelAdaptor.ParameterDict.clear">
100<tt class="descname">clear</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.clear" title="Permalink to this definition">¶</a></dt>
101<dd><p>D.clear() -&gt; None.  Remove all items from D.</p>
102</dd></dl>
103
104<dl class="attribute">
105<dt id="sans.models.ModelAdaptor.ParameterDict.copy">
106<tt class="descname">copy</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.copy" title="Permalink to this definition">¶</a></dt>
107<dd><p>D.copy() -&gt; a shallow copy of D</p>
108</dd></dl>
109
110<dl class="staticmethod">
111<dt id="sans.models.ModelAdaptor.ParameterDict.fromkeys">
112<em class="property">static </em><tt class="descname">fromkeys</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.fromkeys" title="Permalink to this definition">¶</a></dt>
113<dd><p>dict.fromkeys(S[,v]) -&gt; New dict with keys from S and values equal to v.
114v defaults to None.</p>
115</dd></dl>
116
117<dl class="attribute">
118<dt id="sans.models.ModelAdaptor.ParameterDict.get">
119<tt class="descname">get</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.get" title="Permalink to this definition">¶</a></dt>
120<dd><p>D.get(k[,d]) -&gt; D[k] if k in D, else d.  d defaults to None.</p>
121</dd></dl>
122
123<dl class="attribute">
124<dt id="sans.models.ModelAdaptor.ParameterDict.has_key">
125<tt class="descname">has_key</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.has_key" title="Permalink to this definition">¶</a></dt>
126<dd><p>D.has_key(k) -&gt; True if D has a key k, else False</p>
127</dd></dl>
128
129<dl class="attribute">
130<dt id="sans.models.ModelAdaptor.ParameterDict.items">
131<tt class="descname">items</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.items" title="Permalink to this definition">¶</a></dt>
132<dd><p>D.items() -&gt; list of D&#8217;s (key, value) pairs, as 2-tuples</p>
133</dd></dl>
134
135<dl class="attribute">
136<dt id="sans.models.ModelAdaptor.ParameterDict.iteritems">
137<tt class="descname">iteritems</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.iteritems" title="Permalink to this definition">¶</a></dt>
138<dd><p>D.iteritems() -&gt; an iterator over the (key, value) items of D</p>
139</dd></dl>
140
141<dl class="attribute">
142<dt id="sans.models.ModelAdaptor.ParameterDict.iterkeys">
143<tt class="descname">iterkeys</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.iterkeys" title="Permalink to this definition">¶</a></dt>
144<dd><p>D.iterkeys() -&gt; an iterator over the keys of D</p>
145</dd></dl>
146
147<dl class="attribute">
148<dt id="sans.models.ModelAdaptor.ParameterDict.itervalues">
149<tt class="descname">itervalues</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.itervalues" title="Permalink to this definition">¶</a></dt>
150<dd><p>D.itervalues() -&gt; an iterator over the values of D</p>
151</dd></dl>
152
153<dl class="attribute">
154<dt id="sans.models.ModelAdaptor.ParameterDict.keys">
155<tt class="descname">keys</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.keys" title="Permalink to this definition">¶</a></dt>
156<dd><p>D.keys() -&gt; list of D&#8217;s keys</p>
157</dd></dl>
158
159<dl class="attribute">
160<dt id="sans.models.ModelAdaptor.ParameterDict.pop">
161<tt class="descname">pop</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.pop" title="Permalink to this definition">¶</a></dt>
162<dd><p>D.pop(k[,d]) -&gt; v, remove specified key and return the corresponding value
163If key is not found, d is returned if given, otherwise KeyError is raised</p>
164</dd></dl>
165
166<dl class="attribute">
167<dt id="sans.models.ModelAdaptor.ParameterDict.popitem">
168<tt class="descname">popitem</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.popitem" title="Permalink to this definition">¶</a></dt>
169<dd><p>D.popitem() -&gt; (k, v), remove and return some (key, value) pair as a
1702-tuple; but raise KeyError if D is empty</p>
171</dd></dl>
172
173<dl class="attribute">
174<dt id="sans.models.ModelAdaptor.ParameterDict.setdefault">
175<tt class="descname">setdefault</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.setdefault" title="Permalink to this definition">¶</a></dt>
176<dd><p>D.setdefault(k[,d]) -&gt; D.get(k,d), also set D[k]=d if k not in D</p>
177</dd></dl>
178
179<dl class="attribute">
180<dt id="sans.models.ModelAdaptor.ParameterDict.update">
181<tt class="descname">update</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.update" title="Permalink to this definition">¶</a></dt>
182<dd><p>D.update(E, <a href="#id1"><span class="problematic" id="id2">**</span></a>F) -&gt; None.  Update D from E and F: for k in E: D[k] = E[k]
183(if E has keys else: for (k, v) in E: D[k] = v) then: for k in F: D[k] = F[k]</p>
184</dd></dl>
185
186<dl class="attribute">
187<dt id="sans.models.ModelAdaptor.ParameterDict.values">
188<tt class="descname">values</tt><a class="headerlink" href="#sans.models.ModelAdaptor.ParameterDict.values" title="Permalink to this definition">¶</a></dt>
189<dd><p>D.values() -&gt; list of D&#8217;s values</p>
190</dd></dl>
191
192</dd></dl>
193
194</div>
195</div>
196
197
198          </div>
199        </div>
200      </div>
201      <div class="sphinxsidebar">
202        <div class="sphinxsidebarwrapper">
203  <h3><a href="../index.html">Table Of Contents</a></h3>
204  <ul>
205<li><a class="reference internal" href="#">ModelAdaptor</a><ul>
206<li><a class="reference internal" href="#module-sans.models.ModelAdaptor"><tt class="docutils literal"><span class="pre">sans.models.ModelAdaptor</span></tt></a></li>
207</ul>
208</li>
209</ul>
210
211  <h4>Previous topic</h4>
212  <p class="topless"><a href="LorentzModel.html"
213                        title="previous chapter">LorentzModel</a></p>
214  <h4>Next topic</h4>
215  <p class="topless"><a href="ModelFactory.html"
216                        title="next chapter">ModelFactory</a></p>
217  <h3>This Page</h3>
218  <ul class="this-page-menu">
219    <li><a href="../_sources/api/ModelAdaptor.txt"
220           rel="nofollow">Show Source</a></li>
221  </ul>
222<div id="searchbox" style="display: none">
223  <h3>Quick search</h3>
224    <form class="search" action="../search.html" method="get">
225      <input type="text" name="q" size="18" />
226      <input type="submit" value="Go" />
227      <input type="hidden" name="check_keywords" value="yes" />
228      <input type="hidden" name="area" value="default" />
229    </form>
230    <p class="searchtip" style="font-size: 90%">
231    Enter search terms or a module, class or function name.
232    </p>
233</div>
234<script type="text/javascript">$('#searchbox').show(0);</script>
235        </div>
236      </div>
237      <div class="clearer"></div>
238    </div>
239    <div class="related">
240      <h3>Navigation</h3>
241      <ul>
242        <li class="right" style="margin-right: 10px">
243          <a href="../genindex.html" title="General Index"
244             >index</a></li>
245        <li class="right" >
246          <a href="../py-modindex.html" title="Python Module Index"
247             >modules</a> |</li>
248        <li class="right" >
249          <a href="ModelFactory.html" title="ModelFactory"
250             >next</a> |</li>
251        <li class="right" >
252          <a href="LorentzModel.html" title="LorentzModel"
253             >previous</a> |</li>
254        <li><a href="../index.html">sansmodels v0.1.0 documentation</a> &raquo;</li>
255          <li><a href="index.html" >Reference</a> &raquo;</li> 
256      </ul>
257    </div>
258    <div class="footer">
259        &copy; Copyright 2010, sans group.
260      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
261    </div>
262  </body>
263</html>
Note: See TracBrowser for help on using the repository browser.