Ignore:
Timestamp:
Oct 24, 2011 1:15:13 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

edit doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fittingview/docs/sphinx/html/api/perspectives/fitting/model_thread.html

    r5a9a98f r30d3a1b  
    33<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    44  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     5 
    56 
    67<html xmlns="http://www.w3.org/1999/xhtml"> 
     
    89    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    910     
    10     <title>model_thread &mdash; sansview v0.1.0 documentation</title> 
     11    <title>model_thread &mdash; sansview 0.1.0 documentation</title> 
     12     
    1113    <link rel="stylesheet" href="../../../_static/default.css" type="text/css" /> 
    1214    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" /> 
     15     
    1316    <script type="text/javascript"> 
    1417      var DOCUMENTATION_OPTIONS = { 
     
    2326    <script type="text/javascript" src="../../../_static/underscore.js"></script> 
    2427    <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" /> 
    2629    <link rel="up" title="Reference" href="index.html" /> 
    27     <link rel="next" title="models" href="models.html" /> 
    28     <link rel="prev" title="hint_fitpage" href="hint_fitpage.html" />  
     30    <link rel="next" title="pagestate" href="pagestate.html" /> 
     31    <link rel="prev" title="models" href="models.html" />  
    2932  </head> 
    3033  <body> 
     
    3942             >modules</a> |</li> 
    4043        <li class="right" > 
     44          <a href="pagestate.html" title="pagestate" 
     45             accesskey="N">next</a> |</li> 
     46        <li class="right" > 
    4147          <a href="models.html" title="models" 
    42              accesskey="N">next</a> |</li> 
    43         <li class="right" > 
    44           <a href="hint_fitpage.html" title="hint_fitpage" 
    4548             accesskey="P">previous</a> |</li> 
    46         <li><a href="../../../index.html">sansview v0.1.0 documentation</a> &raquo;</li> 
     49        <li><a href="../../../index.html">sansview 0.1.0 documentation</a> &raquo;</li> 
    4750          <li><a href="index.html" accesskey="U">Reference</a> &raquo;</li>  
    4851      </ul> 
     
    5659  <div class="section" id="model-thread"> 
    5760<h1>model_thread<a class="headerlink" href="#model-thread" title="Permalink to this headline">¶</a></h1> 
    58 <div class="section" id="module-sans.perspectives.fitting.model_thread"> 
    59 <span id="sans-perspectives-fitting-model-thread"></span><h2><a class="reference internal" href="#module-sans.perspectives.fitting.model_thread" title="sans.perspectives.fitting.model_thread"><tt class="xref py py-mod docutils literal"><span class="pre">sans.perspectives.fitting.model_thread</span></tt></a><a class="headerlink" href="#module-sans.perspectives.fitting.model_thread" title="Permalink to this headline">¶</a></h2> 
    60 <dl class="class"> 
     61<div class="section" id="sans-perspectives-fitting-model-thread"> 
     62<h2><a class="reference internal" href="#module-sans.perspectives.fitting.model_thread" title="sans.perspectives.fitting.model_thread"><tt class="xref py py-mod docutils literal"><span class="pre">sans.perspectives.fitting.model_thread</span></tt></a><a class="headerlink" href="#sans-perspectives-fitting-model-thread" title="Permalink to this headline">¶</a></h2> 
     63<span class="target" id="module-sans.perspectives.fitting.model_thread"></span><dl class="class"> 
    6164<dt id="sans.perspectives.fitting.model_thread.Calc1D"> 
    62 <em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.model_thread.</tt><tt class="descname">Calc1D</tt><big>(</big><em>x</em>, <em>model</em>, <em>page_id</em>, <em>data=None</em>, <em>qmin=None</em>, <em>qmax=None</em>, <em>smearer=None</em>, <em>toggle_mode_on=False</em>, <em>state=None</em>, <em>completefn=None</em>, <em>update_chisqr=True</em>, <em>updatefn=None</em>, <em>yieldtime=0.01</em>, <em>worktime=0.01</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D" title="Permalink to this definition">¶</a></dt> 
     65<em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.model_thread.</tt><tt class="descname">Calc1D</tt><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D" title="Permalink to this definition">¶</a></dt> 
    6366<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">data_util.calcthread.CalcThread</span></tt></p> 
    6467<p>Compute 1D data</p> 
    6568<dl class="method"> 
     69<dt id="sans.perspectives.fitting.model_thread.Calc1D.__init__"> 
     70<tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.__init__" title="Permalink to this definition">¶</a></dt> 
     71<dd></dd></dl> 
     72 
     73<dl class="attribute"> 
     74<dt id="sans.perspectives.fitting.model_thread.Calc1D.__module__"> 
     75<tt class="descname">__module__</tt><em class="property"> = 'sans.perspectives.fitting.model_thread'</em><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.__module__" title="Permalink to this definition">¶</a></dt> 
     76<dd></dd></dl> 
     77 
     78<dl class="method"> 
     79<dt id="sans.perspectives.fitting.model_thread.Calc1D._run"> 
     80<tt class="descname">_run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D._run" title="Permalink to this definition">¶</a></dt> 
     81<dd><p>Internal function to manage the thread.</p> 
     82</dd></dl> 
     83 
     84<dl class="method"> 
    6685<dt id="sans.perspectives.fitting.model_thread.Calc1D.complete"> 
    67 <tt class="descname">complete</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.complete" title="Permalink to this definition">¶</a></dt> 
     86<tt class="descname">complete</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.complete" title="Permalink to this definition">¶</a></dt> 
    6887<dd><p>Update the GUI with the completed results from a work unit.</p> 
    6988</dd></dl> 
     
    97116<dl class="method"> 
    98117<dt id="sans.perspectives.fitting.model_thread.Calc1D.queue"> 
    99 <tt class="descname">queue</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.queue" title="Permalink to this definition">¶</a></dt> 
     118<tt class="descname">queue</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.queue" title="Permalink to this definition">¶</a></dt> 
    100119<dd><p>Add a work unit to the end of the queue.  See the compute() 
    101120method for details of the arguments to the work unit.</p> 
     
    104123<dl class="method"> 
    105124<dt id="sans.perspectives.fitting.model_thread.Calc1D.ready"> 
    106 <tt class="descname">ready</tt><big>(</big><em>delay=0.0</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.ready" title="Permalink to this definition">¶</a></dt> 
     125<tt class="descname">ready</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.ready" title="Permalink to this definition">¶</a></dt> 
    107126<dd><p>Ready for another update after delay=t seconds.  Call 
    108127this for threads which can show intermediate results from 
     
    112131<dl class="method"> 
    113132<dt id="sans.perspectives.fitting.model_thread.Calc1D.requeue"> 
    114 <tt class="descname">requeue</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.requeue" title="Permalink to this definition">¶</a></dt> 
     133<tt class="descname">requeue</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.requeue" title="Permalink to this definition">¶</a></dt> 
    115134<dd><p>Replace the work unit on the end of the queue.  See the compute() 
    116135method for details of the arguments to the work unit.</p> 
     
    119138<dl class="method"> 
    120139<dt id="sans.perspectives.fitting.model_thread.Calc1D.reset"> 
    121 <tt class="descname">reset</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.reset" title="Permalink to this definition">¶</a></dt> 
     140<tt class="descname">reset</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.reset" title="Permalink to this definition">¶</a></dt> 
    122141<dd><p>Clear the queue and start a new work unit.  See the compute() 
    123142method for details of the arguments to the work unit.</p> 
     
    140159<dl class="method"> 
    141160<dt id="sans.perspectives.fitting.model_thread.Calc1D.update"> 
    142 <tt class="descname">update</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.update" title="Permalink to this definition">¶</a></dt> 
     161<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc1D.update" title="Permalink to this definition">¶</a></dt> 
    143162<dd><p>Update GUI with the lastest results from the current work unit.</p> 
    144163</dd></dl> 
     
    148167<dl class="class"> 
    149168<dt id="sans.perspectives.fitting.model_thread.Calc2D"> 
    150 <em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.model_thread.</tt><tt class="descname">Calc2D</tt><big>(</big><em>x</em>, <em>y</em>, <em>data</em>, <em>model</em>, <em>smearer</em>, <em>qmin</em>, <em>qmax</em>, <em>qstep</em>, <em>page_id</em>, <em>state=None</em>, <em>toggle_mode_on=False</em>, <em>completefn=None</em>, <em>updatefn=None</em>, <em>update_chisqr=True</em>, <em>yieldtime=0.040000000000000001</em>, <em>worktime=0.040000000000000001</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D" title="Permalink to this definition">¶</a></dt> 
     169<em class="property">class </em><tt class="descclassname">sans.perspectives.fitting.model_thread.</tt><tt class="descname">Calc2D</tt><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D" title="Permalink to this definition">¶</a></dt> 
    151170<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">data_util.calcthread.CalcThread</span></tt></p> 
    152171<p>Compute 2D model 
     
    155174and I(qx, qy) = I(-qx, -qy) is assumed.</p> 
    156175<dl class="method"> 
     176<dt id="sans.perspectives.fitting.model_thread.Calc2D.__init__"> 
     177<tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.__init__" title="Permalink to this definition">¶</a></dt> 
     178<dd></dd></dl> 
     179 
     180<dl class="attribute"> 
     181<dt id="sans.perspectives.fitting.model_thread.Calc2D.__module__"> 
     182<tt class="descname">__module__</tt><em class="property"> = 'sans.perspectives.fitting.model_thread'</em><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.__module__" title="Permalink to this definition">¶</a></dt> 
     183<dd></dd></dl> 
     184 
     185<dl class="method"> 
     186<dt id="sans.perspectives.fitting.model_thread.Calc2D._run"> 
     187<tt class="descname">_run</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D._run" title="Permalink to this definition">¶</a></dt> 
     188<dd><p>Internal function to manage the thread.</p> 
     189</dd></dl> 
     190 
     191<dl class="method"> 
    157192<dt id="sans.perspectives.fitting.model_thread.Calc2D.complete"> 
    158 <tt class="descname">complete</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.complete" title="Permalink to this definition">¶</a></dt> 
     193<tt class="descname">complete</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.complete" title="Permalink to this definition">¶</a></dt> 
    159194<dd><p>Update the GUI with the completed results from a work unit.</p> 
    160195</dd></dl> 
     
    188223<dl class="method"> 
    189224<dt id="sans.perspectives.fitting.model_thread.Calc2D.queue"> 
    190 <tt class="descname">queue</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.queue" title="Permalink to this definition">¶</a></dt> 
     225<tt class="descname">queue</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.queue" title="Permalink to this definition">¶</a></dt> 
    191226<dd><p>Add a work unit to the end of the queue.  See the compute() 
    192227method for details of the arguments to the work unit.</p> 
     
    195230<dl class="method"> 
    196231<dt id="sans.perspectives.fitting.model_thread.Calc2D.ready"> 
    197 <tt class="descname">ready</tt><big>(</big><em>delay=0.0</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.ready" title="Permalink to this definition">¶</a></dt> 
     232<tt class="descname">ready</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.ready" title="Permalink to this definition">¶</a></dt> 
    198233<dd><p>Ready for another update after delay=t seconds.  Call 
    199234this for threads which can show intermediate results from 
     
    203238<dl class="method"> 
    204239<dt id="sans.perspectives.fitting.model_thread.Calc2D.requeue"> 
    205 <tt class="descname">requeue</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.requeue" title="Permalink to this definition">¶</a></dt> 
     240<tt class="descname">requeue</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.requeue" title="Permalink to this definition">¶</a></dt> 
    206241<dd><p>Replace the work unit on the end of the queue.  See the compute() 
    207242method for details of the arguments to the work unit.</p> 
     
    210245<dl class="method"> 
    211246<dt id="sans.perspectives.fitting.model_thread.Calc2D.reset"> 
    212 <tt class="descname">reset</tt><big>(</big><em>*args</em>, <em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.reset" title="Permalink to this definition">¶</a></dt> 
     247<tt class="descname">reset</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.reset" title="Permalink to this definition">¶</a></dt> 
    213248<dd><p>Clear the queue and start a new work unit.  See the compute() 
    214249method for details of the arguments to the work unit.</p> 
     
    225260<dl class="method"> 
    226261<dt id="sans.perspectives.fitting.model_thread.Calc2D.update"> 
    227 <tt class="descname">update</tt><big>(</big><em>**kwargs</em><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.update" title="Permalink to this definition">¶</a></dt> 
     262<tt class="descname">update</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.fitting.model_thread.Calc2D.update" title="Permalink to this definition">¶</a></dt> 
    228263<dd><p>Update GUI with the lastest results from the current work unit.</p> 
    229264</dd></dl> 
     
    243278  <ul> 
    244279<li><a class="reference internal" href="#">model_thread</a><ul> 
    245 <li><a class="reference internal" href="#module-sans.perspectives.fitting.model_thread"><tt class="docutils literal"><span class="pre">sans.perspectives.fitting.model_thread</span></tt></a></li> 
     280<li><a class="reference internal" href="#sans-perspectives-fitting-model-thread"><tt class="docutils literal"><span class="pre">sans.perspectives.fitting.model_thread</span></tt></a></li> 
    246281</ul> 
    247282</li> 
     
    249284 
    250285  <h4>Previous topic</h4> 
    251   <p class="topless"><a href="hint_fitpage.html" 
    252                         title="previous chapter">hint_fitpage</a></p> 
     286  <p class="topless"><a href="models.html" 
     287                        title="previous chapter">models</a></p> 
    253288  <h4>Next topic</h4> 
    254   <p class="topless"><a href="models.html" 
    255                         title="next chapter">models</a></p> 
     289  <p class="topless"><a href="pagestate.html" 
     290                        title="next chapter">pagestate</a></p> 
    256291  <h3>This Page</h3> 
    257292  <ul class="this-page-menu"> 
     
    262297  <h3>Quick search</h3> 
    263298    <form class="search" action="../../../search.html" method="get"> 
    264       <input type="text" name="q" size="18" /> 
     299      <input type="text" name="q" /> 
    265300      <input type="submit" value="Go" /> 
    266301      <input type="hidden" name="check_keywords" value="yes" /> 
     
    286321             >modules</a> |</li> 
    287322        <li class="right" > 
     323          <a href="pagestate.html" title="pagestate" 
     324             >next</a> |</li> 
     325        <li class="right" > 
    288326          <a href="models.html" title="models" 
    289              >next</a> |</li> 
    290         <li class="right" > 
    291           <a href="hint_fitpage.html" title="hint_fitpage" 
    292327             >previous</a> |</li> 
    293         <li><a href="../../../index.html">sansview v0.1.0 documentation</a> &raquo;</li> 
     328        <li><a href="../../../index.html">sansview 0.1.0 documentation</a> &raquo;</li> 
    294329          <li><a href="index.html" >Reference</a> &raquo;</li>  
    295330      </ul> 
     
    297332    <div class="footer"> 
    298333        &copy; Copyright 2010, sans group. 
    299       Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7. 
     334      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1. 
    300335    </div> 
    301336  </body> 
Note: See TracChangeset for help on using the changeset viewer.