/docs/2.0/generated/cf.wo.html
HTML | 212 lines | 168 code | 14 blank | 30 comment | 0 complexity | 7be03266a61ee47e631a6ec334d65656 MD5 | raw file
- <!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>cf.wo — Documentation</title>
-
- <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
-
- <script type="text/javascript">
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../',
- VERSION: '2.0',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true,
- SOURCELINK_SUFFIX: '.txt'
- };
- </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/copybutton.js"></script>
- <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
- <link rel="index" title="Index" href="../genindex.html" />
- <link rel="search" title="Search" href="../search.html" />
- <link rel="next" title="cf.djf" href="cf.djf.html" />
- <link rel="prev" title="cf.wi" href="cf.wi.html" />
- </head>
- <body role="document">
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="cf.djf.html" title="cf.djf"
- accesskey="N">next</a> |</li>
- <li class="right" >
- <a href="cf.wi.html" title="cf.wi"
- accesskey="P">previous</a> |</li>
- <li><a target="_blank" href="../../archive.html">Archive</a> «</li>
- <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python 2.0</a> »</li>
- <!--
- <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python</a> »</li>
- <li><select onchange="location = this.options[this.selectedIndex].value;">
- <option value="../../1.0/index.html">1.0
- <option value="../../0.9.9/index.html">0.9.9
- <option value="../../0.9.8.3/index.html">0.9.8.3
- <option value="../../archive.html">Archive
- </select>
- </li>
- -->
-
- <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> »</li>
- <li class="nav-item nav-item-2"><a href="../function.html" accesskey="U">Functions of the <code class="docutils literal"><span class="pre">cf</span></code> module</a> »</li>
- </ul>
- </div>
- <div class="document">
- <div class="documentwrapper">
- <div class="bodywrapper">
- <div class="body" role="main">
-
- <div class="section" id="cf-wo">
- <h1>cf.wo<a class="headerlink" href="#cf-wo" title="Permalink to this headline">Âś</a></h1>
- <dl class="function">
- <dt id="cf.wo">
- <code class="descclassname">cf.</code><code class="descname">wo</code><span class="sig-paren">(</span><em>value0</em>, <em>value1</em>, <em>units=None</em>, <em>attr=None</em><span class="sig-paren">)</span><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v2.0/cf/query.py#query.py-1126"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.wo" title="Permalink to this definition">Âś</a></dt>
- <dd><p>Return a <a class="reference internal" href="../classes/cf.Query.html#cf.Query" title="cf.Query"><code class="xref py py-obj docutils literal"><span class="pre">cf.Query</span></code></a> object for a variable for being without a
- range.</p>
- <p><code class="docutils literal"><span class="pre">x</span> <span class="pre">==</span> <span class="pre">cf.wo(a,</span> <span class="pre">b)</span></code> is equivalent to <code class="docutils literal"><span class="pre">x</span> <span class="pre">==</span> <span class="pre">cf.lt(a)</span> <span class="pre">|</span> <span class="pre">cf.gt(b)</span></code>.</p>
- <div class="admonition seealso">
- <p class="first admonition-title">See also</p>
- <p class="last"><a class="reference internal" href="cf.contain.html#cf.contain" title="cf.contain"><code class="xref py py-obj docutils literal"><span class="pre">cf.contain</span></code></a>, <a class="reference internal" href="cf.eq.html#cf.eq" title="cf.eq"><code class="xref py py-obj docutils literal"><span class="pre">cf.eq</span></code></a>, <a class="reference internal" href="cf.ge.html#cf.ge" title="cf.ge"><code class="xref py py-obj docutils literal"><span class="pre">cf.ge</span></code></a>, <a class="reference internal" href="cf.gt.html#cf.gt" title="cf.gt"><code class="xref py py-obj docutils literal"><span class="pre">cf.gt</span></code></a>, <a class="reference internal" href="cf.ne.html#cf.ne" title="cf.ne"><code class="xref py py-obj docutils literal"><span class="pre">cf.ne</span></code></a>,
- <a class="reference internal" href="cf.le.html#cf.le" title="cf.le"><code class="xref py py-obj docutils literal"><span class="pre">cf.le</span></code></a>, <a class="reference internal" href="cf.lt.html#cf.lt" title="cf.lt"><code class="xref py py-obj docutils literal"><span class="pre">cf.lt</span></code></a>, <a class="reference internal" href="cf.set.html#cf.set" title="cf.set"><code class="xref py py-obj docutils literal"><span class="pre">cf.set</span></code></a>, <a class="reference internal" href="cf.wi.html#cf.wi" title="cf.wi"><code class="xref py py-obj docutils literal"><span class="pre">cf.wi</span></code></a></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"><dl class="first docutils">
- <dt>value0: object</dt>
- <dd><p class="first last">The lower bound of the range which a variable is to be
- compared with.</p>
- </dd>
- <dt>value1: object</dt>
- <dd><p class="first last">The upper bound of the range which a variable is to be
- compared with.</p>
- </dd>
- <dt>units: <a class="reference external" href="https://docs.python.org/2.7/library/functions.html#str" title="(in Python v2.7)"><code class="xref py py-obj docutils literal"><span class="pre">str</span></code></a> or cf.Units, optional</dt>
- <dd><p class="first last">If applicable, the units of <em>value0</em> and <em>value1</em>. By default,
- the same units as the variable being tested are assumed.</p>
- </dd>
- <dt>attr: <a class="reference external" href="https://docs.python.org/2.7/library/functions.html#str" title="(in Python v2.7)"><code class="xref py py-obj docutils literal"><span class="pre">str</span></code></a>, optional</dt>
- <dd><p class="first last">Return a query object for a variable’s <em>attr</em> attribute.</p>
- </dd>
- </dl>
- </td>
- </tr>
- <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
- <dt>out: <a class="reference internal" href="../classes/cf.Query.html#cf.Query" title="cf.Query"><code class="xref py py-obj docutils literal"><span class="pre">cf.Query</span></code></a></dt>
- <dd><p class="first last">The query object.</p>
- </dd>
- </dl>
- </td>
- </tr>
- <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
- </tr>
- </tbody>
- </table>
- <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">q</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">wo</span><span class="p">(</span><span class="mi">5</span><span class="p">)</span>
- <span class="gp">>>> </span><span class="n">q</span>
- <span class="go"><CF Query: x wo (5, 7)></span>
- <span class="gp">>>> </span><span class="n">q</span><span class="o">.</span><span class="n">evaluate</span><span class="p">(</span><span class="mi">4</span><span class="p">)</span>
- <span class="go">True</span>
- <span class="gp">>>> </span><span class="n">q</span><span class="o">.</span><span class="n">evaluate</span><span class="p">(</span><span class="mi">6</span><span class="p">)</span>
- <span class="go">False</span>
- </pre></div>
- </div>
- </dd></dl>
- </div>
- </div>
- </div>
- </div>
- <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
- <div class="sphinxsidebarwrapper">
- <h4>Previous topic</h4>
- <p class="topless"><a href="cf.wi.html"
- title="previous chapter">cf.wi</a></p>
- <h4>Next topic</h4>
- <p class="topless"><a href="cf.djf.html"
- title="next chapter">cf.djf</a></p>
- <div role="note" aria-label="source link">
- <h3>This Page</h3>
- <ul class="this-page-menu">
- <li><a href="../_sources/generated/cf.wo.rst.txt"
- rel="nofollow">Show Source</a></li>
- </ul>
- </div>
- <div id="searchbox" style="display: none" role="search">
- <h3>Quick search</h3>
- <form class="search" action="../search.html" method="get">
- <div><input type="text" name="q" /></div>
- <div><input type="submit" value="Go" /></div>
- <input type="hidden" name="check_keywords" value="yes" />
- <input type="hidden" name="area" value="default" />
- </form>
- </div>
- <script type="text/javascript">$('#searchbox').show(0);</script>
- </div>
- </div>
- <div class="clearer"></div>
- </div>
- <div class="related" role="navigation" aria-label="related navigation">
- <h3>Navigation</h3>
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../genindex.html" title="General Index"
- >index</a></li>
- <li class="right" >
- <a href="cf.djf.html" title="cf.djf"
- >next</a> |</li>
- <li class="right" >
- <a href="cf.wi.html" title="cf.wi"
- >previous</a> |</li>
- <li><a target="_blank" href="../../archive.html">Archive</a> «</li>
- <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python 2.0</a> »</li>
- <!--
- <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python</a> »</li>
- <li><select onchange="location = this.options[this.selectedIndex].value;">
- <option value="../../1.0/index.html">1.0
- <option value="../../0.9.9/index.html">0.9.9
- <option value="../../0.9.8.3/index.html">0.9.8.3
- <option value="../../archive.html">Archive
- </select>
- </li>
- -->
-
- <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> »</li>
- <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> »</li>
- <li class="nav-item nav-item-2"><a href="../function.html" >Functions of the <code class="docutils literal"><span class="pre">cf</span></code> module</a> »</li>
- </ul>
- </div>
- <div class="footer" role="contentinfo">
- © Copyright 2016, David Hassell.
- Last updated on Jul 07, 2017.
- Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.1.
- </div>
- </body>
- </html>