Ignore:
Timestamp:
May 28, 2010 1:24:47 PM (14 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:
25a2ee3
Parents:
2882fb5
Message:

working on documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • calculator/docs/sphinx/_build/html/api/sld_calculator.html

    rbeb374a r14e9eb3  
    2525    <link rel="top" title="calculator v0.1.0 documentation" href="../index.html" /> 
    2626    <link rel="up" title="Reference" href="index.html" /> 
     27    <link rel="next" title="Slit Length Calculator" href="slit_length_calculator.html" /> 
    2728    <link rel="prev" title="Reference" href="index.html" />  
    2829  </head> 
     
    3738          <a href="../py-modindex.html" title="Python Module Index" 
    3839             >modules</a> |</li> 
     40        <li class="right" > 
     41          <a href="slit_length_calculator.html" title="Slit Length Calculator" 
     42             accesskey="N">next</a> |</li> 
    3943        <li class="right" > 
    4044          <a href="index.html" title="Reference" 
     
    5458<div class="section" id="module-sans.calculator.sld_calculator"> 
    5559<span id="sans-calculator-sld-calculator"></span><h2><a class="reference internal" href="#module-sans.calculator.sld_calculator"><tt class="xref py py-mod docutils literal"><span class="pre">sans.calculator.sld_calculator</span></tt></a><a class="headerlink" href="#module-sans.calculator.sld_calculator" title="Permalink to this headline">¶</a></h2> 
    56 <p>This module intends to compute the neutron scattering length density of molecule 
    57 &#64;author: Gervaise B. Alina</p> 
     60<p>This module intends to compute the neutron scattering length density  
     61of a molecule.It uses methods of the periodictable package to provide  
     62easy user interface for  Sld calculator applications.</p> 
    5863<dl class="class"> 
    5964<dt id="sans.calculator.sld_calculator.SldCalculator"> 
    6065<em class="property">class </em><tt class="descclassname">sans.calculator.sld_calculator.</tt><tt class="descname">SldCalculator</tt><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator" title="Permalink to this definition">¶</a></dt> 
    6166<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p> 
    62 <p>compute neutron SLD and related parameters</p> 
    63 <dl class="method"> 
    64 <dt id="sans.calculator.sld_calculator.SldCalculator.calculate_coherence_im"> 
    65 <tt class="descname">calculate_coherence_im</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.calculate_coherence_im" title="Permalink to this definition">¶</a></dt> 
    66 <dd>Compute imaginary part of the absorption</dd></dl> 
    67  
     67<p>Given a molecule, a density and a wavelength, this class  
     68determine scattering length density.</p> 
     69<p>Example: To get the sld value and the length 1/e the following  
     70methods need to be called in this later order:</p> 
     71<div class="highlight-python"><pre>formula = "H2O" 
     72density = 1.0 
     73wavelength = 6.0 
     74sld_calculator = SldCalculator() 
     75sld_calculator.set_value(formula, density, wavelength)  
     76sld_real, sld_im, _ = sld_calculator.calculate_neutron_sld() 
     77result : sld = sld_real +i sld_im</pre> 
     78</div> 
     79<p>Note: <strong>set_value()</strong> and <strong>calculate_neutron_sld()</strong> methods must 
     80be called in this order prior calling <strong>calculate_length()</strong> to get  
     81the proper result.</p> 
    6882<dl class="method"> 
    6983<dt id="sans.calculator.sld_calculator.SldCalculator.calculate_length"> 
     
    7589<tt class="descname">calculate_neutron_sld</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.calculate_neutron_sld" title="Permalink to this definition">¶</a></dt> 
    7690<dd>Compute the neutron SLD for a given molecule 
    77 &#64;return absorp: absorption 
    78 &#64;return coh: coherence cross section 
     91&#64;return sld_real : real part of the sld value 
     92&#64;return sld_im: imaginary part of the sld value 
    7993&#64;return inc: incoherence cross section</dd></dl> 
    8094 
     
    87101<dl class="method"> 
    88102<dt id="sans.calculator.sld_calculator.SldCalculator.set_value"> 
    89 <tt class="descname">set_value</tt><big>(</big><em>user_formula</em>, <em>density</em>, <em>wavelength=6.0</em><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.set_value" title="Permalink to this definition">¶</a></dt> 
    90 <dd>Store values of density and wavelength into the calculator  
    91 and compute the volume</dd></dl> 
     103<tt class="descname">set_value</tt><big>(</big><em>formula</em>, <em>density</em>, <em>wavelength=6.0</em><big>)</big><a class="headerlink" href="#sans.calculator.sld_calculator.SldCalculator.set_value" title="Permalink to this definition">¶</a></dt> 
     104<dd>Store values into the sld calculator and compute the corresponding 
     105volume.</dd></dl> 
    92106 
    93107</dd></dl> 
     
    113127  <p class="topless"><a href="index.html" 
    114128                        title="previous chapter">Reference</a></p> 
     129  <h4>Next topic</h4> 
     130  <p class="topless"><a href="slit_length_calculator.html" 
     131                        title="next chapter">Slit Length Calculator</a></p> 
    115132  <h3>This Page</h3> 
    116133  <ul class="this-page-menu"> 
     
    145162             >modules</a> |</li> 
    146163        <li class="right" > 
     164          <a href="slit_length_calculator.html" title="Slit Length Calculator" 
     165             >next</a> |</li> 
     166        <li class="right" > 
    147167          <a href="index.html" title="Reference" 
    148168             >previous</a> |</li> 
Note: See TracChangeset for help on using the changeset viewer.