PageRenderTime 53ms CodeModel.GetById 23ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/2.0/generated/cf.CHUNKSIZE.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 207 lines | 163 code | 14 blank | 30 comment | 0 complexity | 725abc6617987dc447d7b486937b81aa MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>cf.CHUNKSIZE &#8212; Documentation</title>
  7. <link rel="stylesheet" href="../_static/classic.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '2.0',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true,
  16. SOURCELINK_SUFFIX: '.txt'
  17. };
  18. </script>
  19. <script type="text/javascript" src="../_static/jquery.js"></script>
  20. <script type="text/javascript" src="../_static/underscore.js"></script>
  21. <script type="text/javascript" src="../_static/doctools.js"></script>
  22. <script type="text/javascript" src="../_static/copybutton.js"></script>
  23. <script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  24. <link rel="index" title="Index" href="../genindex.html" />
  25. <link rel="search" title="Search" href="../search.html" />
  26. <link rel="next" title="cf.FM_THRESHOLD" href="cf.FM_THRESHOLD.html" />
  27. <link rel="prev" title="cf.ATOL" href="cf.ATOL.html" />
  28. </head>
  29. <body role="document">
  30. <div class="related" role="navigation" aria-label="related navigation">
  31. <h3>Navigation</h3>
  32. <ul>
  33. <li class="right" style="margin-right: 10px">
  34. <a href="../genindex.html" title="General Index"
  35. accesskey="I">index</a></li>
  36. <li class="right" >
  37. <a href="cf.FM_THRESHOLD.html" title="cf.FM_THRESHOLD"
  38. accesskey="N">next</a> |</li>
  39. <li class="right" >
  40. <a href="cf.ATOL.html" title="cf.ATOL"
  41. accesskey="P">previous</a> |</li>
  42. <li><a target="_blank" href="../../archive.html">Archive</a> &laquo;</li>
  43. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python 2.0</a> &raquo;</li>
  44. <!--
  45. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python</a> &raquo;</li>
  46. <li><select onchange="location = this.options[this.selectedIndex].value;">
  47. <option value="../../1.0/index.html">1.0
  48. <option value="../../0.9.9/index.html">0.9.9
  49. <option value="../../0.9.8.3/index.html">0.9.8.3
  50. <option value="../../archive.html">Archive
  51. </select>
  52. </li>
  53. -->
  54. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &#187;</li>
  55. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &#187;</li>
  56. <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> &#187;</li>
  57. </ul>
  58. </div>
  59. <div class="document">
  60. <div class="documentwrapper">
  61. <div class="bodywrapper">
  62. <div class="body" role="main">
  63. <div class="section" id="cf-chunksize">
  64. <h1>cf.CHUNKSIZE<a class="headerlink" href="#cf-chunksize" title="Permalink to this headline"></a></h1>
  65. <dl class="function">
  66. <dt id="cf.CHUNKSIZE">
  67. <code class="descclassname">cf.</code><code class="descname">CHUNKSIZE</code><span class="sig-paren">(</span><em>*size</em><span class="sig-paren">)</span><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v2.0/cf/functions.py#functions.py-220"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.CHUNKSIZE" title="Permalink to this definition"></a></dt>
  68. <dd><p>The memory chunk size in bytes for data storage and processing.</p>
  69. <p>When setting the chunk size, the amount of minimum amount of memory to
  70. be kept free as a temporary work space is also updated.</p>
  71. <table class="docutils field-list" frame="void" rules="none">
  72. <col class="field-name" />
  73. <col class="field-body" />
  74. <tbody valign="top">
  75. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first docutils">
  76. <dt>size</dt>
  77. <span class="classifier-delimiter">:</span> <span class="classifier">int, optional</span><dd><p class="first last">The new chunk size in bytes. The default is to not change the
  78. current value.</p>
  79. </dd>
  80. </dl>
  81. </td>
  82. </tr>
  83. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first last docutils">
  84. <dt>out</dt>
  85. <span class="classifier-delimiter">:</span> <span class="classifier">float</span><dd><p class="first last">The value prior to the change, or the current value if no new
  86. value was specified.</p>
  87. </dd>
  88. </dl>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. <div class="admonition seealso">
  94. <p class="first admonition-title">See also</p>
  95. <p class="last"><a class="reference internal" href="cf.MINNCFM.html#cf.MINNCFM" title="cf.MINNCFM"><code class="xref py py-obj docutils literal"><span class="pre">cf.MINNCFM</span></code></a></p>
  96. </div>
  97. <table class="docutils field-list" frame="void" rules="none">
  98. <col class="field-name" />
  99. <col class="field-body" />
  100. <tbody valign="top">
  101. <tr class="field-odd field"><th class="field-name">Examples:</th><td class="field-body"></td>
  102. </tr>
  103. </tbody>
  104. </table>
  105. <div class="highlight-python"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">cf</span><span class="o">.</span><span class="n">CHUNKSIZE</span><span class="p">()</span>
  106. <span class="go">57095864.32</span>
  107. <span class="gp">&gt;&gt;&gt; </span><span class="n">old</span> <span class="o">=</span> <span class="n">cf</span><span class="o">.</span><span class="n">CHUNKSIZE</span><span class="p">(</span><span class="mi">2</span><span class="o">**</span><span class="mi">30</span><span class="p">)</span>
  108. <span class="gp">&gt;&gt;&gt; </span><span class="n">cf</span><span class="o">.</span><span class="n">CHUNKSIZE</span><span class="p">(</span><span class="n">old</span><span class="p">)</span>
  109. <span class="go">1073741824</span>
  110. <span class="gp">&gt;&gt;&gt; </span><span class="n">cf</span><span class="o">.</span><span class="n">CHUNKSIZE</span><span class="p">()</span>
  111. <span class="go">57095864.32</span>
  112. </pre></div>
  113. </div>
  114. </dd></dl>
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
  120. <div class="sphinxsidebarwrapper">
  121. <h4>Previous topic</h4>
  122. <p class="topless"><a href="cf.ATOL.html"
  123. title="previous chapter">cf.ATOL</a></p>
  124. <h4>Next topic</h4>
  125. <p class="topless"><a href="cf.FM_THRESHOLD.html"
  126. title="next chapter">cf.FM_THRESHOLD</a></p>
  127. <div role="note" aria-label="source link">
  128. <h3>This Page</h3>
  129. <ul class="this-page-menu">
  130. <li><a href="../_sources/generated/cf.CHUNKSIZE.rst.txt"
  131. rel="nofollow">Show Source</a></li>
  132. </ul>
  133. </div>
  134. <div id="searchbox" style="display: none" role="search">
  135. <h3>Quick search</h3>
  136. <form class="search" action="../search.html" method="get">
  137. <div><input type="text" name="q" /></div>
  138. <div><input type="submit" value="Go" /></div>
  139. <input type="hidden" name="check_keywords" value="yes" />
  140. <input type="hidden" name="area" value="default" />
  141. </form>
  142. </div>
  143. <script type="text/javascript">$('#searchbox').show(0);</script>
  144. </div>
  145. </div>
  146. <div class="clearer"></div>
  147. </div>
  148. <div class="related" role="navigation" aria-label="related navigation">
  149. <h3>Navigation</h3>
  150. <ul>
  151. <li class="right" style="margin-right: 10px">
  152. <a href="../genindex.html" title="General Index"
  153. >index</a></li>
  154. <li class="right" >
  155. <a href="cf.FM_THRESHOLD.html" title="cf.FM_THRESHOLD"
  156. >next</a> |</li>
  157. <li class="right" >
  158. <a href="cf.ATOL.html" title="cf.ATOL"
  159. >previous</a> |</li>
  160. <li><a target="_blank" href="../../archive.html">Archive</a> &laquo;</li>
  161. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python 2.0</a> &raquo;</li>
  162. <!--
  163. <li><a target="_blank" href="http://cfpython.bitbucket.io">cf-python</a> &raquo;</li>
  164. <li><select onchange="location = this.options[this.selectedIndex].value;">
  165. <option value="../../1.0/index.html">1.0
  166. <option value="../../0.9.9/index.html">0.9.9
  167. <option value="../../0.9.8.3/index.html">0.9.8.3
  168. <option value="../../archive.html">Archive
  169. </select>
  170. </li>
  171. -->
  172. <li class="nav-item nav-item-0"><a href="../index.html">Documentation</a> &#187;</li>
  173. <li class="nav-item nav-item-1"><a href="../reference.html" >Reference manual</a> &#187;</li>
  174. <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> &#187;</li>
  175. </ul>
  176. </div>
  177. <div class="footer" role="contentinfo">
  178. &#169; Copyright 2016, David Hassell.
  179. Last updated on Jul 07, 2017.
  180. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.1.
  181. </div>
  182. </body>
  183. </html>