Ignore:
Timestamp:
Aug 9, 2011 1:24:54 PM (14 years ago)
Author:
Jessica Tumarkin <jtumarki@…>
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:
032d585
Parents:
6992dfd
Message:

Sphinx Documentation rebuild, conf.py changes, import statement changes (for dataloader)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • park_integration/docs/sphinx/_build/html/api/ScipyFitting.html

    r0c3003d r41517a6  
    3535             accesskey="I">index</a></li> 
    3636        <li class="right" > 
    37           <a href="../py-modindex.html" title="Python Module Index" 
    38              >modules</a> |</li> 
    39         <li class="right" > 
    4037          <a href="ParkFitting.html" title="ParkFitting" 
    4138             accesskey="P">previous</a> |</li> 
     
    5249  <div class="section" id="scipyfitting"> 
    5350<h1>ScipyFitting<a class="headerlink" href="#scipyfitting" title="Permalink to this headline">¶</a></h1> 
    54 <div class="section" id="module-sans.fit.ScipyFitting"> 
    55 <span id="mod-sans-fit-scipyfitting"></span><h2>:mod:` sans.fit.ScipyFitting`<a class="headerlink" href="#module-sans.fit.ScipyFitting" title="Permalink to this headline">¶</a></h2> 
    56 <p>ScipyFitting module contains FitArrange , ScipyFit, 
    57 Parameter classes.All listed classes work together to perform a  
    58 simple fit with scipy optimizer.</p> 
    59 <dl class="class"> 
    60 <dt id="sans.fit.ScipyFitting.ScipyFit"> 
    61 <em class="property">class </em><tt class="descclassname">sans.fit.ScipyFitting.</tt><tt class="descname">ScipyFit</tt><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit" title="Permalink to this definition">¶</a></dt> 
    62 <dd><p>Bases: <a class="reference internal" href="AbstractFitEngine.html#sans.fit.AbstractFitEngine.FitEngine" title="sans.fit.AbstractFitEngine.FitEngine"><tt class="xref py py-class docutils literal"><span class="pre">sans.fit.AbstractFitEngine.FitEngine</span></tt></a></p> 
    63 <p>ScipyFit performs the Fit.This class can be used as follow: 
    64 #Do the fit SCIPY 
    65 create an engine: engine = ScipyFit() 
    66 Use data must be of type plottable 
    67 Use a sans model</p> 
    68 <p>Add data with a dictionnary of FitArrangeDict where Uid is a key and data 
    69 is saved in FitArrange object. 
    70 engine.set_data(data,Uid)</p> 
    71 <p>Set model parameter &#8220;M1&#8221;= model.name add {model.parameter.name:value}.</p> 
    72 <table class="docutils field-list" frame="void" rules="none"> 
    73 <col class="field-name" /> 
    74 <col class="field-body" /> 
    75 <tbody valign="top"> 
    76 <tr class="field"><th class="field-name">Note :</th><td class="field-body">Set_param() if used must always preceded set_model() 
    77 for the fit to be performed.In case of Scipyfit set_param is called in 
    78 fit () automatically.</td> 
    79 </tr> 
    80 </tbody> 
    81 </table> 
    82 <p>engine.set_param( model,&#8221;M1&#8221;, {&#8216;A&#8217;:2,&#8217;B&#8217;:4})</p> 
    83 <p>Add model with a dictionnary of FitArrangeDict{} where Uid is a key and model 
    84 is save in FitArrange object. 
    85 engine.set_model(model,Uid)</p> 
    86 <p>engine.fit return chisqr,[model.parameter 1,2,..],[[err1....][..err2...]] 
    87 chisqr1, out1, cov1=engine.fit({model.parameter.name:value},qmin,qmax)</p> 
    88 <dl class="method"> 
    89 <dt id="sans.fit.ScipyFitting.ScipyFit.fit"> 
    90 <tt class="descname">fit</tt><big>(</big><em>q=None</em>, <em>handler=None</em>, <em>curr_thread=None</em>, <em>ftol=1.49012e-008</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.fit" title="Permalink to this definition">¶</a></dt> 
    91 <dd></dd></dl> 
    92  
    93 <dl class="method"> 
    94 <dt id="sans.fit.ScipyFitting.ScipyFit.get_model"> 
    95 <tt class="descname">get_model</tt><big>(</big><em>id</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.get_model" title="Permalink to this definition">¶</a></dt> 
    96 <dd><table class="docutils field-list" frame="void" rules="none"> 
    97 <col class="field-name" /> 
    98 <col class="field-body" /> 
    99 <tbody valign="top"> 
    100 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>id</strong> &#8211; id is key in the dictionary containing the model to return</td> 
    101 </tr> 
    102 <tr class="field"><th class="field-name">Returns:</th><td class="field-body">a model at this id or None if no FitArrange element was  
    103 created with this id</td> 
    104 </tr> 
    105 </tbody> 
    106 </table> 
    107 </dd></dl> 
    108  
    109 <dl class="method"> 
    110 <dt id="sans.fit.ScipyFitting.ScipyFit.get_problem_to_fit"> 
    111 <tt class="descname">get_problem_to_fit</tt><big>(</big><em>id</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.get_problem_to_fit" title="Permalink to this definition">¶</a></dt> 
    112 <dd><p>return the self.selected value of the fit problem of id</p> 
    113 <table class="docutils field-list" frame="void" rules="none"> 
    114 <col class="field-name" /> 
    115 <col class="field-body" /> 
    116 <tbody valign="top"> 
    117 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>id</strong> &#8211; the id of the problem</td> 
    118 </tr> 
    119 </tbody> 
    120 </table> 
    121 </dd></dl> 
    122  
    123 <dl class="method"> 
    124 <dt id="sans.fit.ScipyFitting.ScipyFit.remove_fit_problem"> 
    125 <tt class="descname">remove_fit_problem</tt><big>(</big><em>id</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.remove_fit_problem" title="Permalink to this definition">¶</a></dt> 
    126 <dd><p>remove   fitarrange in id</p> 
    127 </dd></dl> 
    128  
    129 <dl class="method"> 
    130 <dt id="sans.fit.ScipyFitting.ScipyFit.select_problem_for_fit"> 
    131 <tt class="descname">select_problem_for_fit</tt><big>(</big><em>id</em>, <em>value</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.select_problem_for_fit" title="Permalink to this definition">¶</a></dt> 
    132 <dd><p>select a couple of model and data at the id position in dictionary 
    133 and set in self.selected value to value</p> 
    134 <table class="docutils field-list" frame="void" rules="none"> 
    135 <col class="field-name" /> 
    136 <col class="field-body" /> 
    137 <tbody valign="top"> 
    138 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>value</strong> &#8211; the value to allow fitting.  
    139 can only have the value one or zero</td> 
    140 </tr> 
    141 </tbody> 
    142 </table> 
    143 </dd></dl> 
    144  
    145 <dl class="method"> 
    146 <dt id="sans.fit.ScipyFitting.ScipyFit.set_data"> 
    147 <tt class="descname">set_data</tt><big>(</big><em>data</em>, <em>id</em>, <em>smearer=None</em>, <em>qmin=None</em>, <em>qmax=None</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.set_data" title="Permalink to this definition">¶</a></dt> 
    148 <dd><p>Receives plottable, creates a list of data to fit,set data 
    149 in a FitArrange object and adds that object in a dictionary  
    150 with key id.</p> 
    151 <table class="docutils field-list" frame="void" rules="none"> 
    152 <col class="field-name" /> 
    153 <col class="field-body" /> 
    154 <tbody valign="top"> 
    155 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple"> 
    156 <li><strong>data</strong> &#8211; data added</li> 
    157 <li><strong>id</strong> &#8211; unique key corresponding to a fitArrange object with data</li> 
    158 </ul> 
    159 </td> 
    160 </tr> 
    161 </tbody> 
    162 </table> 
    163 </dd></dl> 
    164  
    165 <dl class="method"> 
    166 <dt id="sans.fit.ScipyFitting.ScipyFit.set_model"> 
    167 <tt class="descname">set_model</tt><big>(</big><em>model</em>, <em>id</em>, <em>pars=</em><span class="optional">[</span><span class="optional">]</span>, <em>constraints=</em><span class="optional">[</span><span class="optional">]</span><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.ScipyFit.set_model" title="Permalink to this definition">¶</a></dt> 
    168 <dd><p>set a model on a given  in the fit engine.</p> 
    169 <table class="docutils field-list" frame="void" rules="none"> 
    170 <col class="field-name" /> 
    171 <col class="field-body" /> 
    172 <tbody valign="top"> 
    173 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><strong>model</strong> &#8211; sans.models type</td> 
    174 </tr> 
    175 </tbody> 
    176 </table> 
    177 <dl class="docutils"> 
    178 <dt>:param <span class="classifier-delimiter">:</span> <span class="classifier">is the key of the fitArrange dictionary where model is </span></dt> 
    179 <dd>saved as a value</dd> 
    180 </dl> 
    181 <table class="docutils field-list" frame="void" rules="none"> 
    182 <col class="field-name" /> 
    183 <col class="field-body" /> 
    184 <tbody valign="top"> 
    185 <tr class="field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple"> 
    186 <li><strong>pars</strong> &#8211; the list of parameters to fit</li> 
    187 <li><strong>constraints</strong> &#8211; <p>list of  
    188 tuple (name of parameter, value of parameters) 
    189 the value of parameter must be a string to constraint 2 different 
    190 parameters. 
    191 Example:   
    192 we want to fit 2 model M1 and M2 both have parameters A and B. 
    193 constraints can be:</p> 
    194 <blockquote> 
    195 <div>constraints = [(M1.A, M2.B+2), (M1.B= M2.A <a href="#id1"><span class="problematic" id="id2">*</span></a>5),...,]</div></blockquote> 
    196 </li> 
    197 </ul> 
    198 </td> 
    199 </tr> 
    200 <tr class="field"><th class="field-name">Note :</th><td class="field-body"><p class="first last">pars must contains only name of existing model&#8217;s parameters</p> 
    201 </td> 
    202 </tr> 
    203 </tbody> 
    204 </table> 
    205 </dd></dl> 
    206  
    207 </dd></dl> 
    208  
    209 <dl class="class"> 
    210 <dt id="sans.fit.ScipyFitting.fitresult"> 
    211 <em class="property">class </em><tt class="descclassname">sans.fit.ScipyFitting.</tt><tt class="descname">fitresult</tt><big>(</big><em>model=None</em>, <em>param_list=None</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult" title="Permalink to this definition">¶</a></dt> 
    212 <dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> 
    213 <p>Storing fit result</p> 
    214 <dl class="method"> 
    215 <dt id="sans.fit.ScipyFitting.fitresult.print_summary"> 
    216 <tt class="descname">print_summary</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult.print_summary" title="Permalink to this definition">¶</a></dt> 
    217 <dd></dd></dl> 
    218  
    219 <dl class="method"> 
    220 <dt id="sans.fit.ScipyFitting.fitresult.set_fitness"> 
    221 <tt class="descname">set_fitness</tt><big>(</big><em>fitness</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult.set_fitness" title="Permalink to this definition">¶</a></dt> 
    222 <dd></dd></dl> 
    223  
    224 <dl class="method"> 
    225 <dt id="sans.fit.ScipyFitting.fitresult.set_model"> 
    226 <tt class="descname">set_model</tt><big>(</big><em>model</em><big>)</big><a class="headerlink" href="#sans.fit.ScipyFitting.fitresult.set_model" title="Permalink to this definition">¶</a></dt> 
    227 <dd></dd></dl> 
    228  
    229 </dd></dl> 
    230  
     51<div class="section" id="mod-sans-fit-scipyfitting"> 
     52<h2>:mod:` sans.fit.ScipyFitting`<a class="headerlink" href="#mod-sans-fit-scipyfitting" title="Permalink to this headline">¶</a></h2> 
    23153</div> 
    23254</div> 
     
    24163  <ul> 
    24264<li><a class="reference internal" href="#">ScipyFitting</a><ul> 
    243 <li><a class="reference internal" href="#module-sans.fit.ScipyFitting">:mod:` sans.fit.ScipyFitting`</a></li> 
     65<li><a class="reference internal" href="#mod-sans-fit-scipyfitting">:mod:` sans.fit.ScipyFitting`</a></li> 
    24466</ul> 
    24567</li> 
     
    278100             >index</a></li> 
    279101        <li class="right" > 
    280           <a href="../py-modindex.html" title="Python Module Index" 
    281              >modules</a> |</li> 
    282         <li class="right" > 
    283102          <a href="ParkFitting.html" title="ParkFitting" 
    284103             >previous</a> |</li> 
Note: See TracChangeset for help on using the changeset viewer.