|
37 | 37 |
|
38 | 38 |
|
39 | 39 |
|
40 | | -<h1 class="logo"><a href="index.html">cfunits 3.3.6</a></h1> |
| 40 | +<h1 class="logo"><a href="index.html">cfunits 3.3.7</a></h1> |
41 | 41 |
|
42 | 42 |
|
43 | 43 |
|
@@ -117,8 +117,8 @@ <h3>Related Topics</h3> |
117 | 117 | <h1><strong>cfunits.Units</strong><a class="headerlink" href="#cfunits-units" title="Permalink to this headline">¶</a></h1> |
118 | 118 | <dl class="class"> |
119 | 119 | <dt id="cfunits.Units"> |
120 | | -<em class="property">class </em><code class="sig-prename descclassname">cfunits.</code><code class="sig-name descname">Units</code><span class="sig-paren">(</span><em class="sig-param">units=None</em>, <em class="sig-param">calendar=None</em>, <em class="sig-param">formatted=False</em>, <em class="sig-param">names=False</em>, <em class="sig-param">definition=False</em>, <em class="sig-param">_ut_unit=None</em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/NCAS-CMS/cfunits/blob/v3.3.6/cfunits/units.py#L467"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cfunits.Units" title="Permalink to this definition">¶</a></dt> |
121 | | -<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.11)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p> |
| 120 | +<em class="property">class </em><code class="sig-prename descclassname">cfunits.</code><code class="sig-name descname">Units</code><span class="sig-paren">(</span><em class="sig-param">units=None</em>, <em class="sig-param">calendar=None</em>, <em class="sig-param">formatted=False</em>, <em class="sig-param">names=False</em>, <em class="sig-param">definition=False</em>, <em class="sig-param">_ut_unit=None</em><span class="sig-paren">)</span><a class="reference external" href="https://github.com/NCAS-CMS/cfunits/blob/v3.3.7/cfunits/units.py#L467"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cfunits.Units" title="Permalink to this definition">¶</a></dt> |
| 121 | +<dd><p>Bases: <a class="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.12)"><code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></a></p> |
122 | 122 | <p>Utilities for working with physical units.</p> |
123 | 123 | <p>Store, combine and compare physical units and convert numeric |
124 | 124 | values to different units.</p> |
@@ -267,7 +267,7 @@ <h1><strong>cfunits.Units</strong><a class="headerlink" href="#cfunits-units" ti |
267 | 267 | <span class="gp">>>> </span><span class="n">u</span><span class="o">.</span><span class="n">calendar</span> |
268 | 268 | <span class="gt">Traceback (most recent call last):</span> |
269 | 269 | <span class="w"> </span><span class="o">...</span> |
270 | | -<span class="gr">AttributeError</span>: <span class="n">Units has no attribute 'calendar'</span> |
| 270 | +<span class="gr">AttributeError</span>: <span class="n">Units has no attribute 'calendar'...</span> |
271 | 271 | <span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">Units</span><span class="p">(</span><span class="s1">'days since 2000-1-1'</span><span class="p">,</span> <span class="s1">'standard'</span><span class="p">)</span> |
272 | 272 | <span class="gp">>>> </span><span class="n">v</span><span class="o">.</span><span class="n">calendar</span> |
273 | 273 | <span class="go">'standard'</span> |
@@ -357,20 +357,20 @@ <h1><strong>cfunits.Units</strong><a class="headerlink" href="#cfunits-units" ti |
357 | 357 | <dl class="field-list simple"> |
358 | 358 | <dt class="field-odd">Parameters</dt> |
359 | 359 | <dd class="field-odd"><dl class="simple"> |
360 | | -<dt>units: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">str</span></code></a> or <a class="reference internal" href="#cfunits.Units" title="cfunits.Units"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Units</span></code></a>, optional</dt><dd><p>Set the new units from this string.</p> |
| 360 | +<dt>units: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">str</span></code></a> or <a class="reference internal" href="#cfunits.Units" title="cfunits.Units"><code class="xref py py-obj docutils literal notranslate"><span class="pre">Units</span></code></a>, optional</dt><dd><p>Set the new units from this string.</p> |
361 | 361 | </dd> |
362 | | -<dt>calendar: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">str</span></code></a>, optional</dt><dd><p>Set the calendar for reference time units.</p> |
| 362 | +<dt>calendar: <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">str</span></code></a>, optional</dt><dd><p>Set the calendar for reference time units.</p> |
363 | 363 | </dd> |
364 | | -<dt>formatted: <a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bool</span></code></a>, optional</dt><dd><p>Format the string representation of the units in a |
| 364 | +<dt>formatted: <a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bool</span></code></a>, optional</dt><dd><p>Format the string representation of the units in a |
365 | 365 | standardized manner. See the <a class="reference internal" href="generated/cfunits.Units.formatted.html#cfunits.Units.formatted" title="cfunits.Units.formatted"><code class="xref py py-obj docutils literal notranslate"><span class="pre">formatted</span></code></a> method.</p> |
366 | 366 | </dd> |
367 | | -<dt>names: <a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bool</span></code></a>, optional</dt><dd><p>Format the string representation of the units using names |
| 367 | +<dt>names: <a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bool</span></code></a>, optional</dt><dd><p>Format the string representation of the units using names |
368 | 368 | instead of symbols. See the <a class="reference internal" href="generated/cfunits.Units.formatted.html#cfunits.Units.formatted" title="cfunits.Units.formatted"><code class="xref py py-obj docutils literal notranslate"><span class="pre">formatted</span></code></a> method.</p> |
369 | 369 | </dd> |
370 | | -<dt>definition: <a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bool</span></code></a>, optional</dt><dd><p>Format the string representation of the units using basic |
| 370 | +<dt>definition: <a class="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">bool</span></code></a>, optional</dt><dd><p>Format the string representation of the units using basic |
371 | 371 | units. See the <a class="reference internal" href="generated/cfunits.Units.formatted.html#cfunits.Units.formatted" title="cfunits.Units.formatted"><code class="xref py py-obj docutils literal notranslate"><span class="pre">formatted</span></code></a> method.</p> |
372 | 372 | </dd> |
373 | | -<dt>_ut_unit: <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.11)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">int</span></code></a>, optional</dt><dd><p>Set the new units from this Udunits binary unit |
| 373 | +<dt>_ut_unit: <a class="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.12)"><code class="xref py py-obj docutils literal notranslate"><span class="pre">int</span></code></a>, optional</dt><dd><p>Set the new units from this Udunits binary unit |
374 | 374 | representation. This should be an integer returned by a |
375 | 375 | call to <code class="xref py py-obj docutils literal notranslate"><span class="pre">ut_parse</span></code> function of Udunits. Ignored if <em>units</em> |
376 | 376 | is set.</p> |
@@ -480,7 +480,7 @@ <h2>Units static methods<a class="headerlink" href="#units-static-methods" title |
480 | 480 | <div class="clearer"></div> |
481 | 481 | </div> |
482 | 482 | <div class="footer"> |
483 | | - ©2023, NCAS | Page built on 2023-05-03. |
| 483 | + ©2024, NCAS | Page built on 2024-04-23. |
484 | 484 |
|
485 | 485 | | |
486 | 486 | Powered by <a href="http://sphinx-doc.org/">Sphinx 2.4.5</a> |
|
0 commit comments