Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 82fd441cd3f2a8bc33fc3ed41403eced > files > 1219

python-astropy-0.2.4-4.mga4.x86_64.rpm


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>set_current &mdash; Astropy v0.2.4</title>
    
    <link rel="stylesheet" href="../_static/bootstrap-astropy.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '0.2.4',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <script type="text/javascript" src="../_static/sidebar.js"></script>
    <link rel="shortcut icon" href="../_static/astropy_logo.ico"/>
    <link rel="top" title="Astropy v0.2.4" href="../index.html" />
    <link rel="up" title="Cosmological Calculations (astropy.cosmology)" href="../cosmology/index.html" />
    <link rel="next" title="FLRW" href="astropy.cosmology.core.FLRW.html" />
    <link rel="prev" title="scale_factor" href="astropy.cosmology.funcs.scale_factor.html" /> 
  </head>
  <body>
<div class="topbar">
  <a class="brand" title="Documentation Home" href="../index.html"></a>
  <ul>
    <li><a class="homelink" title="AstroPy Homepage" href="http://www.astropy.org"></a></li>
    <li><a title="General Index" href="../genindex.html">Index</a></li>
    <li><a title="Python Module Index" href="../py-modindex.html">Modules</a></li>
    <li>
      
      
<form action="../search.html" method="get">
  <input type="text" name="q" placeholder="Search" />
  <input type="hidden" name="check_keywords" value="yes" />
  <input type="hidden" name="area" value="default" />
</form>
      
    </li>
  </ul>
</div>

<div class="related">
    <h3>Navigation</h3>
    <ul>
      <li class="right">
	<a href="astropy.cosmology.core.FLRW.html" title="FLRW">
	  next &raquo;
	</a>
      </li>
      <li class="right">
	<a href="astropy.cosmology.funcs.scale_factor.html" title="scale_factor">
	  &laquo; previous
	</a>
	 |
      </li>
      <li>
	<a href="../index.html">Astropy v0.2.4</a>
	 &raquo;
      </li>
      <li><a href="../cosmology/index.html" accesskey="U">Cosmological Calculations (<tt class="docutils literal"><span class="pre">astropy.cosmology</span></tt>)</a> &raquo;</li>
      
      <li>set_current</li> 
    </ul>
</div>
  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="set-current">
<h1>set_current<a class="headerlink" href="#set-current" title="Permalink to this headline">¶</a></h1>
<dl class="function">
<dt id="astropy.cosmology.core.set_current">
<tt class="descclassname">astropy.cosmology.core.</tt><tt class="descname">set_current</tt><big>(</big><em>cosmo</em><big>)</big><a class="reference external" href="http://github.com/astropy/astropy/tree/v0.2.4/astropy/cosmology/core.py#L2013" title="Push the Edit button on the next page"><span class="edit-on-github viewcode-link">&nbsp;[edit on github]</span></a><a class="reference internal" href="../_modules/astropy/cosmology/core.html#set_current"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#astropy.cosmology.core.set_current" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the current cosmology.</p>
<p>Call this with an empty string (&#8216;&#8217;) to get a list of the strings
that map to available pre-defined cosmologies.</p>
<div class="admonition warning">
<p class="first admonition-title">Warning</p>
<p class="last"><a class="reference internal" href="#astropy.cosmology.core.set_current" title="astropy.cosmology.core.set_current"><tt class="xref py py-obj docutils literal"><span class="pre">set_current</span></tt></a> is the only way to change the current cosmology at
runtime! The current cosmology can also be read from an option
in the astropy configuration file when astropy.cosmology is first
imported. However, any subsequent changes to the cosmology
configuration option using <a class="reference internal" href="astropy.config.configuration.ConfigurationItem.html#astropy.config.configuration.ConfigurationItem.set" title="astropy.config.configuration.ConfigurationItem.set"><tt class="xref py py-obj docutils literal"><span class="pre">ConfigurationItem.set</span></tt></a> at run-time
will not update the current cosmology.</p>
</div>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters :</th><td class="field-body"><p class="first"><strong>cosmo</strong> : str or <tt class="xref py py-obj docutils literal"><span class="pre">Cosmology</span></tt> instance</p>
<blockquote class="last">
<div><p>The cosmology to use.</p>
</div></blockquote>
</td>
</tr>
</tbody>
</table>
<div class="admonition-see-also admonition seealso">
<p class="first admonition-title">See also</p>
<dl class="last docutils">
<dt><a class="reference internal" href="astropy.cosmology.core.get_current.html#astropy.cosmology.core.get_current" title="astropy.cosmology.core.get_current"><tt class="xref py py-obj docutils literal"><span class="pre">get_current</span></tt></a></dt>
<dd>returns the currently-set cosmology</dd>
</dl>
</div>
</dd></dl>

</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper"><h3>Page Contents</h3>
<ul>
<li><a class="reference internal" href="#">set_current</a></li>
</ul>


        </div>
      </div>
      <div class="clearer"></div>
    </div>
<footer class="footer">
  <p class="pull-right">
    <a href="../_sources/_generated/astropy.cosmology.core.set_current.txt"
       rel="nofollow">Page Source</a> &nbsp;
    <a href="#">Back to Top</a></p>
  <p>
    &copy; Copyright 2011-2013, The Astropy Developers.<br/>
    Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3. &nbsp;
    Last built 22 Oct 2013. <br/>
  </p>
</footer>
  </body>
</html>