Compare commits
2 Commits
aa29ec8643
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1582ff1dbe | |||
| 22cc4f2943 |
267
docs/build/html/_images/class_diagram.svg
vendored
Normal file
267
docs/build/html/_images/class_diagram.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 82 KiB |
20
docs/build/html/_modules/pylib/data.html
vendored
20
docs/build/html/_modules/pylib/data.html
vendored
@@ -344,6 +344,26 @@
|
||||
<span class="k">except</span><span class="p">:</span>
|
||||
<span class="k">return</span> <span class="s1">''</span></div>
|
||||
|
||||
<div class="viewcode-block" id="strs_between"><a class="viewcode-back" href="../../pylib.data.html#pylib.data.strs_between">[docs]</a><span class="k">def</span> <span class="nf">strs_between</span><span class="p">(</span><span class="n">text</span><span class="p">,</span> <span class="n">left</span><span class="p">,</span> <span class="n">right</span><span class="p">):</span>
|
||||
<span class="sd">"""Get text between two pattern.</span>
|
||||
|
||||
<span class="sd"> Text can be multi-line.</span>
|
||||
|
||||
<span class="sd"> :param text: text to search in</span>
|
||||
<span class="sd"> :type text: str</span>
|
||||
<span class="sd"> :param left: left pattern</span>
|
||||
<span class="sd"> :type left: str</span>
|
||||
<span class="sd"> :param right: right pattern</span>
|
||||
<span class="sd"> :type right: str</span>
|
||||
|
||||
<span class="sd"> :returns: text between the left and right pattern</span>
|
||||
<span class="sd"> :rtype: str</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="k">try</span><span class="p">:</span>
|
||||
<span class="k">return</span> <span class="n">re</span><span class="o">.</span><span class="n">findall</span><span class="p">(</span><span class="n">left</span><span class="o">+</span><span class="s1">'(.+?)'</span><span class="o">+</span><span class="n">right</span><span class="p">,</span> <span class="n">text</span><span class="p">,</span> <span class="n">re</span><span class="o">.</span><span class="n">DOTALL</span><span class="p">)</span>
|
||||
<span class="k">except</span><span class="p">:</span>
|
||||
<span class="k">return</span> <span class="s1">''</span></div>
|
||||
|
||||
<div class="viewcode-block" id="str_to_list"><a class="viewcode-back" href="../../pylib.data.html#pylib.data.str_to_list">[docs]</a><span class="k">def</span> <span class="nf">str_to_list</span><span class="p">(</span><span class="n">string</span><span class="p">,</span> <span class="n">delimiter</span><span class="o">=</span><span class="s1">';</span><span class="se">\n</span><span class="s1">'</span><span class="p">,</span> <span class="n">newline_replacement</span><span class="o">=</span><span class="s1">''</span><span class="p">):</span>
|
||||
<span class="sa">r</span><span class="sd">"""Converts a string with block information into a list.</span>
|
||||
|
||||
|
||||
676
docs/build/html/_modules/pylib/data_step_std.html
vendored
676
docs/build/html/_modules/pylib/data_step_std.html
vendored
File diff suppressed because it is too large
Load Diff
42
docs/build/html/_modules/pylib/function.html
vendored
42
docs/build/html/_modules/pylib/function.html
vendored
@@ -159,10 +159,10 @@
|
||||
|
||||
<div class="viewcode-block" id="cosine_wave"><a class="viewcode-back" href="../../pylib.function.html#pylib.function.cosine_wave">[docs]</a><span class="k">def</span> <span class="nf">cosine_wave</span><span class="p">(</span><span class="n">A</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">k</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">f</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">phi</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">D</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span> <span class="n">degree</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
|
||||
<span class="sa">r</span><span class="sd">"""A cosine wave is said to be sinusoidal, because,</span>
|
||||
<span class="sd"> :math:`\cos(x) = \sin(x + \pi/2)`, which is also a sine wave with a</span>
|
||||
<span class="sd"> phase-shift of π/2 radians. Because of this head start, it is often</span>
|
||||
<span class="sd"> said that the cosine function leads the sine function or the sine</span>
|
||||
<span class="sd"> lags the cosine.</span>
|
||||
<span class="sd"> :math:`\cos(x) = \sin(x + \pi/2)`, which is also a sine wave with</span>
|
||||
<span class="sd"> a phase-shift of π/2 radians. Because of this head start, it is</span>
|
||||
<span class="sd"> often said that the cosine function leads the sine function or</span>
|
||||
<span class="sd"> the sine lags the cosine.</span>
|
||||
|
||||
<span class="sd"> :param A: amplitude</span>
|
||||
<span class="sd"> :type A: float or int</span>
|
||||
@@ -195,22 +195,25 @@
|
||||
<div class="viewcode-block" id="b_spline_basis"><a class="viewcode-back" href="../../pylib.function.html#pylib.function.b_spline_basis">[docs]</a><span class="k">def</span> <span class="nf">b_spline_basis</span><span class="p">(</span><span class="n">knots</span><span class="p">,</span> <span class="n">knot_span</span><span class="p">,</span> <span class="n">degree</span><span class="p">):</span>
|
||||
<span class="sa">r</span><span class="sd">"""Cox-de Boor algorithm / recursion formula.</span>
|
||||
|
||||
<span class="sd"> Calculate the i-th B-spline basis function of degree p: N_{i,p}(u)</span>
|
||||
<span class="sd"> Calculate the i-th B-spline basis function of degree p:</span>
|
||||
<span class="sd"> :math:`N_{i,p}(u)`</span>
|
||||
|
||||
<span class="sd"> :param knots: Knot vector U. m + 1 non-decreasing numbers / knots,</span>
|
||||
<span class="sd"> :math:`u_0 <= u_1 <= u_2 <= ... <= u_m`</span>
|
||||
<span class="sd"> :math:`u_0 \le u_1 \le u_2 \le \dots \le u_m`</span>
|
||||
<span class="sd"> :type knots: list</span>
|
||||
<span class="sd"> :param knot_span: i-th knot span</span>
|
||||
<span class="sd"> :type knot_span: int</span>
|
||||
<span class="sd"> :param degree: degree of B-spline basis function</span>
|
||||
<span class="sd"> :type degree: int</span>
|
||||
|
||||
<span class="sd"> :returns: B-spline basis function using variable, u \in [u_0, u_m]</span>
|
||||
<span class="sd"> :returns: B-spline basis function using variable,</span>
|
||||
<span class="sd"> :math:`u \in [u_0, u_m]`</span>
|
||||
<span class="sd"> :rtype: function</span>
|
||||
|
||||
<span class="sd"> .. math::</span>
|
||||
<span class="sd"> N_{i,0}(u) &= \begin{cases} 1 & \text{if } u_i \le u \lt u_{i+1} \\</span>
|
||||
<span class="sd"> 0 & \text{otherwise}\end{cases} \\</span>
|
||||
<span class="sd"> N_{i,0}(u) &= \begin{cases}</span>
|
||||
<span class="sd"> 1 & \text{if } u_i \le u \lt u_{i+1} \\</span>
|
||||
<span class="sd"> 0 & \text{otherwise}\end{cases} \\</span>
|
||||
<span class="sd"> N_{i,p}(u) &= \frac{u - u_i}{u_{i+p} - u_i} N_{i,p-1}(u) +</span>
|
||||
<span class="sd"> \frac{u_{i+p+1} - u}{u_{i+p+1} - u_{i+1}} N_{i+1,p-1}(u)</span>
|
||||
|
||||
@@ -277,10 +280,10 @@
|
||||
<span class="sd"> :param control_points: control points P, n + 1 control points</span>
|
||||
<span class="sd"> :type control_points: list</span>
|
||||
<span class="sd"> :param knots: Knot vector U. m + 1 non-decreasing numbers / knots,</span>
|
||||
<span class="sd"> :math:`u_0 <= u_1 <= u_2 <= ... <= u_m`</span>
|
||||
<span class="sd"> :math:`u_0 \le u_1 \le u_2 \le \dots \le u_m`</span>
|
||||
<span class="sd"> :type knots: list</span>
|
||||
|
||||
<span class="sd"> :returns: B-spline curve using variable, u \in [u_0, u_m]</span>
|
||||
<span class="sd"> :returns: B-spline curve using variable, :math:`u \in [u_0, u_m]`</span>
|
||||
<span class="sd"> :rtype: function</span>
|
||||
|
||||
<span class="sd"> .. math::</span>
|
||||
@@ -291,10 +294,11 @@
|
||||
<span class="sd"> * the curve will not touch the first and last legs of the</span>
|
||||
<span class="sd"> control polyline</span>
|
||||
<span class="sd"> * the knot vector does not have any particular structure</span>
|
||||
<span class="sd"> * for degree p, intervals [u_0, u_p) and [u_{n-p}, u_n) will not</span>
|
||||
<span class="sd"> have "full support" of basis functions and are ignored when a</span>
|
||||
<span class="sd"> B-spline curve is open. For open B-spline curves, the domain</span>
|
||||
<span class="sd"> is inteval [u_p, u_{n-p}]</span>
|
||||
<span class="sd"> * for degree p, intervals :math:`[u_0, u_p)` and</span>
|
||||
<span class="sd"> :math:`[u_{n-p}, u_n)` will not have "full support" of basis</span>
|
||||
<span class="sd"> functions and are ignored when a B-spline curve is open. For</span>
|
||||
<span class="sd"> open B-spline curves, the domain is inteval</span>
|
||||
<span class="sd"> :math:`[u_p, u_{n-p}]`</span>
|
||||
|
||||
<span class="sd"> * clamped B-spline curves, nonperiodic B-spline curves</span>
|
||||
|
||||
@@ -307,7 +311,7 @@
|
||||
|
||||
<span class="sd"> * the start and the end of the generated curve join together</span>
|
||||
<span class="sd"> forming a closed loop</span>
|
||||
<span class="sd"> * repeating some knots and control points # TODO: which?</span>
|
||||
<span class="sd"> * repeating some knots and control points (TODO: which?)</span>
|
||||
|
||||
<span class="sd"> * uniform B-spline curves</span>
|
||||
|
||||
@@ -448,9 +452,9 @@
|
||||
<span class="sd"> * *</span>
|
||||
<span class="sd"> * * *</span>
|
||||
|
||||
<span class="sd"> >>> x, y = hyotrochoid(20, 6, 6)[:2]</span>
|
||||
<span class="sd"> >>> x, y, _ = hyotrochoid(20, 6, 6)</span>
|
||||
<span class="sd"> >>> x, y, interval = hyotrochoid(20, 6, 6)</span>
|
||||
<span class="sd"> >>> x, y = hypotrochoid(20, 6, 6)[:2]</span>
|
||||
<span class="sd"> >>> x, y, _ = hypotrochoid(20, 6, 6)</span>
|
||||
<span class="sd"> >>> x, y, interval = hypotrochoid(20, 6, 6)</span>
|
||||
|
||||
<span class="sd"> .. seealso::</span>
|
||||
<span class="sd"> :meth:`pylib.mathematics.lcm`</span>
|
||||
|
||||
@@ -473,7 +473,7 @@
|
||||
|
||||
<span class="sd"> >>> x, y = line((0, 0), (1, 0))</span>
|
||||
<span class="sd"> >>> print(x, y)</span>
|
||||
<span class="sd"> ((0, 1), (0, 0))</span>
|
||||
<span class="sd"> (0, 1) (0, 0)</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="n">p1x</span><span class="p">,</span> <span class="n">p1y</span> <span class="o">=</span> <span class="n">point1</span>
|
||||
<span class="n">p2x</span><span class="p">,</span> <span class="n">p2y</span> <span class="o">=</span> <span class="n">point2</span>
|
||||
|
||||
12
docs/build/html/_modules/pylib/helper.html
vendored
12
docs/build/html/_modules/pylib/helper.html
vendored
@@ -58,18 +58,18 @@
|
||||
|
||||
<span class="sd"> :Example:</span>
|
||||
|
||||
<span class="sd"> >>> with timeit('section_test'):</span>
|
||||
<span class="sd"> ... # code</span>
|
||||
<span class="sd"> section_test took 0.006 ms</span>
|
||||
|
||||
<span class="sd"> ::</span>
|
||||
|
||||
<span class="sd"> with timeit('section_test'):</span>
|
||||
<span class="sd"> # code</span>
|
||||
<span class="sd"> section_test took 0.006 ms</span>
|
||||
|
||||
<span class="sd"> @timeit('func')</span>
|
||||
<span class="sd"> def func():</span>
|
||||
<span class="sd"> # code</span>
|
||||
|
||||
<span class="sd"> >>> func()</span>
|
||||
<span class="sd"> func took 0.006 ms</span>
|
||||
<span class="sd"> func()</span>
|
||||
<span class="sd"> func took 0.006 ms</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">description</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
|
||||
<span class="bp">self</span><span class="o">.</span><span class="n">description</span> <span class="o">=</span> <span class="n">description</span>
|
||||
|
||||
32
docs/build/html/_modules/pylib/mathematics.html
vendored
32
docs/build/html/_modules/pylib/mathematics.html
vendored
@@ -114,7 +114,7 @@
|
||||
<span class="sd"> >>> m = vector([1, 2, 3])</span>
|
||||
<span class="sd"> >>> m *= vector([3, 3, 3])</span>
|
||||
<span class="sd"> >>> print(v)</span>
|
||||
<span class="sd"> [[3, 3, 3], [6, 6, 6], [9, 9, 9]]</span>
|
||||
<span class="sd"> 18</span>
|
||||
<span class="sd"> """</span>
|
||||
|
||||
<div class="viewcode-block" id="vector.__getitem__"><a class="viewcode-back" href="../../pylib.mathematics.html#pylib.mathematics.vector.__getitem__">[docs]</a> <span class="k">def</span> <span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">index</span><span class="p">):</span>
|
||||
@@ -124,7 +124,7 @@
|
||||
<span class="sd"> :Example:</span>
|
||||
|
||||
<span class="sd"> >>> v = vector([1, 2, 3, 4, 5])</span>
|
||||
<span class="sd"> >>> v[1:3]</span>
|
||||
<span class="sd"> >>> print(v[1:3])</span>
|
||||
<span class="sd"> [2, 3]</span>
|
||||
<span class="sd"> >>> v = vector([1, 2, 3, 4, 5])</span>
|
||||
<span class="sd"> >>> v[3]</span>
|
||||
@@ -440,12 +440,15 @@
|
||||
|
||||
<span class="sd"> :Example:</span>
|
||||
|
||||
<span class="sd"> >>> import random</span>
|
||||
<span class="sd"> >>> random.seed(1)</span>
|
||||
<span class="sd"> >>> v = vector.random(3)</span>
|
||||
<span class="sd"> >>> print(v)</span>
|
||||
<span class="sd"> [0.9172905912930438, 0.8908124278322492, 0.5256002790725927]</span>
|
||||
<span class="sd"> [0.13436424411240122, 0.8474337369372327, 0.763774618976614]</span>
|
||||
<span class="sd"> >>> random.seed(1)</span>
|
||||
<span class="sd"> >>> v = vector.random(3, 1, 2)</span>
|
||||
<span class="sd"> >>> print(v)</span>
|
||||
<span class="sd"> [1.2563665665080803, 1.9270454509964547, 1.2381672401270487]</span>
|
||||
<span class="sd"> [1.134364244112401, 1.8474337369372327, 1.7637746189766141]</span>
|
||||
<span class="sd"> """</span>
|
||||
<span class="kn">import</span> <span class="nn">random</span>
|
||||
<span class="n">dl</span> <span class="o">=</span> <span class="n">lmax</span><span class="o">-</span><span class="n">lmin</span>
|
||||
@@ -673,8 +676,7 @@
|
||||
|
||||
<span class="sd"> :Example:</span>
|
||||
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], \</span>
|
||||
<span class="sd"> [0, 0, 0, 0]])</span>
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], [0, 0, 0, 0]])</span>
|
||||
<span class="sd"> >>> print(m[:])</span>
|
||||
<span class="sd"> [[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], [0, 0, 0, 0]]</span>
|
||||
<span class="sd"> >>> print(m[2])</span>
|
||||
@@ -737,20 +739,16 @@
|
||||
|
||||
<span class="sd"> :Example:</span>
|
||||
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], \</span>
|
||||
<span class="sd"> [0, 0, 0, 1]]) * 5</span>
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]]) * 5</span>
|
||||
<span class="sd"> >>> print(m)</span>
|
||||
<span class="sd"> [[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60], [0, 0, 0, 5]]</span>
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], \</span>
|
||||
<span class="sd"> [0, 0, 0, 1]]) * 5.</span>
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]]) * 5.</span>
|
||||
<span class="sd"> >>> print(m)</span>
|
||||
<span class="sd"> [[5.0, 10.0, 15.0, 20.0], [25.0, 30.0, 35.0, 40.0], [45.0, 50.0, 55.0, 60.0], [0.0, 0.0, 0.0, 5.0]]</span>
|
||||
<span class="sd"> >>> v = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * \</span>
|
||||
<span class="sd"> vector([12, 12, 13])</span>
|
||||
<span class="sd"> >>> v = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * vector([12, 12, 13])</span>
|
||||
<span class="sd"> >>> print(v)</span>
|
||||
<span class="sd"> [75, 186, 297]</span>
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * \</span>
|
||||
<span class="sd"> matrix([[12, 12, 13], [14, 15, 16], [17, 18, 19]])</span>
|
||||
<span class="sd"> >>> m = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * matrix([[12, 12, 13], [14, 15, 16], [17, 18, 19]])</span>
|
||||
<span class="sd"> >>> print(m)</span>
|
||||
<span class="sd"> [[91, 96, 102], [220, 231, 246], [349, 366, 390]]</span>
|
||||
|
||||
@@ -784,12 +782,10 @@
|
||||
|
||||
<span class="sd"> :Example:</span>
|
||||
|
||||
<span class="sd"> >>> m = 5 * matrix([[1, 2, 3, 4], [5, 6, 7, 8], \</span>
|
||||
<span class="sd"> [9, 10, 11, 12], [0, 0, 0, 1]])</span>
|
||||
<span class="sd"> >>> m = 5 * matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]])</span>
|
||||
<span class="sd"> >>> print(m)</span>
|
||||
<span class="sd"> [[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60], [0, 0, 0, 5]]</span>
|
||||
<span class="sd"> >>> m = 5. * matrix([[1, 2, 3, 4], [5, 6, 7, 8], \</span>
|
||||
<span class="sd"> [9, 10, 11, 12], [0, 0, 0, 1]])</span>
|
||||
<span class="sd"> >>> m = 5. * matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]])</span>
|
||||
<span class="sd"> >>> print(m)</span>
|
||||
<span class="sd"> [[5.0, 10.0, 15.0, 20.0], [25.0, 30.0, 35.0, 40.0], [45.0, 50.0, 55.0, 60.0], [0.0, 0.0, 0.0, 5.0]]</span>
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
|
||||
<span class="sd"> numerical solution</span>
|
||||
|
||||
<span class="sd"> >>> f = lambda(x): x**2</span>
|
||||
<span class="sd"> >>> f = lambda x: x**2</span>
|
||||
<span class="sd"> >>> trapez(f, 0, 1, 1)</span>
|
||||
<span class="sd"> 0.5</span>
|
||||
<span class="sd"> >>> trapez(f, 0, 1, 10)</span>
|
||||
|
||||
30
docs/build/html/_sources/index.rst.txt
vendored
30
docs/build/html/_sources/index.rst.txt
vendored
@@ -7,7 +7,7 @@ Welcome to pylib's documentation!
|
||||
=================================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:maxdepth: 6
|
||||
:caption: Contents:
|
||||
|
||||
modules
|
||||
@@ -22,15 +22,20 @@ Indices and tables
|
||||
* :ref:`search`
|
||||
|
||||
|
||||
``data_step_std``
|
||||
-----------------
|
||||
.. image:: _static/class_diagram.svg
|
||||
:target: _images/class_diagram.svg
|
||||
|
||||
tui
|
||||
---
|
||||
|
||||
pylib/tui.py is the main module for tui 'terminal user interface' programs.
|
||||
``tui``
|
||||
-------
|
||||
|
||||
* curses package (for Windows install windows-curses) is the underlying main
|
||||
package to build terminal programs. The curses package can also be used
|
||||
directly.
|
||||
``pylib/tui.py`` is the main module for tui 'textual user interface' programs.
|
||||
|
||||
* ``curses`` package (for Windows install ``windows-curses``) is the underlying
|
||||
main package to build terminal programs. The ``curses`` package can also be
|
||||
used directly.
|
||||
|
||||
* Windows (Anaconda):
|
||||
|
||||
@@ -38,9 +43,9 @@ pylib/tui.py is the main module for tui 'terminal user interface' programs.
|
||||
* ``python -m pip install windows-curses``
|
||||
* https://github.com/zephyrproject-rtos/windows-curses
|
||||
|
||||
* drawille package is used to draw with braille characters (dottet and quasi-
|
||||
line charts). Make sure you use a font with Unicode Braille characters. For
|
||||
Windows e. g.: NSimSun, MS Gothic.
|
||||
* ``drawille`` package is used to draw with braille characters (dottet and
|
||||
quasi-line charts). Make sure you use a font with Unicode Braille characters.
|
||||
For Windows e. g.: NSimSun, MS Gothic.
|
||||
|
||||
* Install: ``python -m pip install drawille``
|
||||
* Windows (Anaconda):
|
||||
@@ -48,6 +53,5 @@ pylib/tui.py is the main module for tui 'terminal user interface' programs.
|
||||
* ``C:\PathToAnaconda3\condabin\conda.bat activate base``
|
||||
* ``python -m pip install drawille``
|
||||
|
||||
* drawblock.py is used to draw with block characters (histogram).
|
||||
|
||||
example/tui.py is an example script to build a terminal program.
|
||||
* ``drawblock`` is used to draw with block characters (histogram).
|
||||
* ``example/tui.py`` is an example script to build a terminal program.
|
||||
|
||||
267
docs/build/html/_static/class_diagram.svg
vendored
Normal file
267
docs/build/html/_static/class_diagram.svg
vendored
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 82 KiB |
94
docs/build/html/genindex.html
vendored
94
docs/build/html/genindex.html
vendored
@@ -47,11 +47,13 @@
|
||||
| <a href="#G"><strong>G</strong></a>
|
||||
| <a href="#H"><strong>H</strong></a>
|
||||
| <a href="#I"><strong>I</strong></a>
|
||||
| <a href="#K"><strong>K</strong></a>
|
||||
| <a href="#L"><strong>L</strong></a>
|
||||
| <a href="#M"><strong>M</strong></a>
|
||||
| <a href="#N"><strong>N</strong></a>
|
||||
| <a href="#O"><strong>O</strong></a>
|
||||
| <a href="#P"><strong>P</strong></a>
|
||||
| <a href="#Q"><strong>Q</strong></a>
|
||||
| <a href="#R"><strong>R</strong></a>
|
||||
| <a href="#S"><strong>S</strong></a>
|
||||
| <a href="#T"><strong>T</strong></a>
|
||||
@@ -156,15 +158,17 @@
|
||||
</li>
|
||||
<li><a href="pylib.data_step.html#pylib.data_step.arc_circle_geometry">arc_circle_geometry() (in module pylib.data_step)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.ArcBSplineCurveWithKnots">ArcBSplineCurveWithKnots (class in pylib.geometry)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.ArcCircle">ArcCircle (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.ArcEllipse">ArcEllipse (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.mathematics.html#pylib.mathematics.vector.arg">arg() (vector static method)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.ARRAY">ARRAY (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.date.html#pylib.date.ascension_of_jesus">ascension_of_jesus() (in module pylib.date)</a>
|
||||
</li>
|
||||
@@ -181,22 +185,24 @@
|
||||
<li><a href="pylib.function.html#pylib.function.b_spline_basis">b_spline_basis() (in module pylib.function)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE">B_SPLINE_CURVE (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM">B_SPLINE_CURVE_FORM (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_WITH_KNOTS">B_SPLINE_CURVE_WITH_KNOTS (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.B_spline_curve_with_knots">B_spline_curve_with_knots (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.function.html#pylib.function.b_spline_curve_with_knots">b_spline_curve_with_knots() (in module pylib.function)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step.html#pylib.data_step.b_spline_curve_with_knots_geometry">b_spline_curve_with_knots_geometry() (in module pylib.data_step)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step.html#pylib.data_step.b_spline_curve_with_knots_geometry">b_spline_curve_with_knots_geometry() (in module pylib.data_step)</a>
|
||||
</li>
|
||||
<li><a href="pylib.function.html#pylib.function.b_spline_knots">b_spline_knots() (in module pylib.function)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.boolean_choose">boolean_choose() (in module pylib.data_step_std)</a>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.BOOLEAN">BOOLEAN() (in module pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.BOOLEAN_to_bool">BOOLEAN_to_bool() (in module pylib.data_step_std)</a>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.boolean_choose">boolean_choose() (in module pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.tui.html#pylib.tui.Window.border">border() (Window method)</a>
|
||||
</li>
|
||||
@@ -235,6 +241,8 @@
|
||||
<li><a href="pylib.function.html#pylib.function.circle">circle() (in module pylib.function)</a>
|
||||
</li>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.Properties.circle_sectors">circle_sectors (Properties attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM.CIRCULAR_ARC">CIRCULAR_ARC (B_SPLINE_CURVE_FORM attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.tui.html#pylib.tui.App.clear">clear() (App method)</a>
|
||||
|
||||
@@ -271,6 +279,8 @@
|
||||
<li><a href="pylib.geometry2d.html#pylib.geometry2d.cubics">cubics() (in module pylib.geometry2d)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.CURVE">CURVE (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.CURVE_3D">CURVE_3D (PREFERRED_SURFACE_CURVE_REPRESENTATION attribute)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
@@ -347,6 +357,8 @@
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.Ellipse">Ellipse (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.function.html#pylib.function.ellipse">ellipse() (in module pylib.function)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM.ELLIPTIC_ARC">ELLIPTIC_ARC (B_SPLINE_CURVE_FORM attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.tui.html#pylib.tui.App.end">end() (App method)</a>
|
||||
</li>
|
||||
@@ -383,6 +395,8 @@
|
||||
<li><a href="pylib.numerical.fit.html#pylib.numerical.fit.gauss_fit">gauss_fit() (in module pylib.numerical.fit)</a>
|
||||
</li>
|
||||
<li><a href="pylib.date.html#pylib.date.gaußsche_osterformel">gaußsche_osterformel() (in module pylib.date)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.GENERIC">GENERIC (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM">GEOMETRIC_REPRESENTATION_ITEM (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
@@ -429,6 +443,8 @@
|
||||
<li><a href="pylib.time_of_day.html#pylib.time_of_day.hours">hours() (in module pylib.time_of_day)</a>
|
||||
</li>
|
||||
<li><a href="pylib.time_of_day.html#pylib.time_of_day.hours_norm">hours_norm() (in module pylib.time_of_day)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM.HYPERBOLIC_ARC">HYPERBOLIC_ARC (B_SPLINE_CURVE_FORM attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.function.html#pylib.function.hypotrochoid">hypotrochoid() (in module pylib.function)</a>
|
||||
</li>
|
||||
@@ -453,6 +469,8 @@
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.tui.html#pylib.tui.Window.instr">instr() (Window method)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.INTEGER">INTEGER (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.numerical.integration.html#module-integration">integration (module)</a>
|
||||
</li>
|
||||
@@ -467,6 +485,14 @@
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="K">K</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.KNOT_TYPE">KNOT_TYPE (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="L">L</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
@@ -478,15 +504,19 @@
|
||||
</li>
|
||||
<li><a href="pylib.geometry2d.html#pylib.geometry2d.line">line() (in module pylib.geometry2d)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step.html#pylib.data_step.line_geometry">line_geometry() (in module pylib.data_step)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.geometry2d.html#pylib.geometry2d.lines">lines() (in module pylib.geometry2d)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.LIST">LIST (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.list_to_array">list_to_array() (in module pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.load">load() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.LOGICAL">LOGICAL() (in module pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.LOOP">LOOP (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
@@ -550,11 +580,19 @@
|
||||
<h2 id="P">P</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM.PARABOLIC_ARC">PARABOLIC_ARC (B_SPLINE_CURVE_FORM attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.PATH">PATH (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.path_head_to_tail">path_head_to_tail() (in module pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S1">PCURVE_S1 (PREFERRED_SURFACE_CURVE_REPRESENTATION attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S2">PCURVE_S2 (PREFERRED_SURFACE_CURVE_REPRESENTATION attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.date.html#pylib.date.pentecost">pentecost() (in module pylib.date)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.KNOT_TYPE.PIECEWISE_BEZIER_KNOTS">PIECEWISE_BEZIER_KNOTS (KNOT_TYPE attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.PLACEMENT">PLACEMENT (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
@@ -573,6 +611,10 @@
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.Polygon">Polygon (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.Polyline">Polyline (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM.POLYLINE_FORM">POLYLINE_FORM (B_SPLINE_CURVE_FORM attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION">PREFERRED_SURFACE_CURVE_REPRESENTATION (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step.html#pylib.data_step.print_edge_loop">print_edge_loop() (in module pylib.data_step)</a>
|
||||
</li>
|
||||
@@ -580,14 +622,14 @@
|
||||
</li>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.Point.projection">projection() (Point method)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.geometry.html#pylib.geometry.Properties">Properties (class in pylib.geometry)</a>
|
||||
</li>
|
||||
<li><a href="pylib.html#module-pylib">pylib (module)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#module-pylib.data">pylib.data (module)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step.html#module-pylib.data_step">pylib.data_step (module)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#module-pylib.data_step_std">pylib.data_step_std (module)</a>
|
||||
@@ -629,6 +671,14 @@
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="Q">Q</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.KNOT_TYPE.QUASI_UNIFORM_KNOTS">QUASI_UNIFORM_KNOTS (KNOT_TYPE attribute)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
<h2 id="R">R</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
@@ -639,6 +689,8 @@
|
||||
<li><a href="pylib.data.html#pylib.data.read">read() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.read_columns">read_columns() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.REAL">REAL (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.geometry2d.html#pylib.geometry2d.rectangle">rectangle() (in module pylib.geometry2d)</a>
|
||||
</li>
|
||||
@@ -730,10 +782,12 @@
|
||||
</li>
|
||||
<li><a href="pylib.time_of_day.html#pylib.time_of_day.seconds_norm">seconds_norm() (in module pylib.time_of_day)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data.html#pylib.data.seq">seq() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.SET">SET (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.geometry_plot_pylab.html#pylib.geometry_plot_pylab.set_aspect_equal">set_aspect_equal() (in module pylib.geometry_plot_pylab)</a>
|
||||
</li>
|
||||
<li><a href="pylib.function.html#pylib.function.sine_wave">sine_wave() (in module pylib.function)</a>
|
||||
@@ -755,6 +809,10 @@
|
||||
<li><a href="pylib.data_step.html#pylib.data_step.str_to_cmd_args">str_to_cmd_args() (in module pylib.data_step)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.str_to_list">str_to_list() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.STRING">STRING (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.strs_between">strs_between() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.SURFACE_CURVE">SURFACE_CURVE (class in pylib.data_step_std)</a>
|
||||
</li>
|
||||
@@ -814,14 +872,22 @@
|
||||
<h2 id="U">U</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.KNOT_TYPE.UNIFORM_KNOTS">UNIFORM_KNOTS (KNOT_TYPE attribute)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.unique_ending">unique_ending() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.unique_list">unique_list() (in module pylib.data)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="pylib.data.html#pylib.data.unique_list">unique_list() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data.html#pylib.data.unique_list_hashable">unique_list_hashable() (in module pylib.data)</a>
|
||||
</li>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED">UNSPECIFIED (B_SPLINE_CURVE_FORM attribute)</a>
|
||||
|
||||
<ul>
|
||||
<li><a href="pylib.data_step_std.html#pylib.data_step_std.KNOT_TYPE.UNSPECIFIED">(KNOT_TYPE attribute)</a>
|
||||
</li>
|
||||
</ul></li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
|
||||
59
docs/build/html/index.html
vendored
59
docs/build/html/index.html
vendored
@@ -39,7 +39,40 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul>
|
||||
<li class="toctree-l1"><a class="reference internal" href="modules.html">pylib</a><ul>
|
||||
<li class="toctree-l2"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2"><a class="reference internal" href="pylib.html">pylib package</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.numerical.html">pylib.numerical package</a><ul>
|
||||
<li class="toctree-l5"><a class="reference internal" href="pylib.numerical.html#submodules">Submodules</a><ul>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.fit.html">pylib.numerical.fit module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.integration.html">pylib.numerical.integration module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode.html">pylib.numerical.ode module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode_model.html">pylib.numerical.ode_model module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -52,13 +85,17 @@
|
||||
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="data-step-std">
|
||||
<h2><code class="docutils literal notranslate"><span class="pre">data_step_std</span></code><a class="headerlink" href="#data-step-std" title="Permalink to this headline">¶</a></h2>
|
||||
<a class="reference external image-reference" href="_images/class_diagram.svg"><img alt="_images/class_diagram.svg" src="_images/class_diagram.svg" /></a>
|
||||
</div>
|
||||
<div class="section" id="tui">
|
||||
<h2>tui<a class="headerlink" href="#tui" title="Permalink to this headline">¶</a></h2>
|
||||
<p>pylib/tui.py is the main module for tui ‘terminal user interface’ programs.</p>
|
||||
<h2><code class="docutils literal notranslate"><span class="pre">tui</span></code><a class="headerlink" href="#tui" title="Permalink to this headline">¶</a></h2>
|
||||
<p><code class="docutils literal notranslate"><span class="pre">pylib/tui.py</span></code> is the main module for tui ‘textual user interface’ programs.</p>
|
||||
<ul class="simple">
|
||||
<li><p>curses package (for Windows install windows-curses) is the underlying main
|
||||
package to build terminal programs. The curses package can also be used
|
||||
directly.</p>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">curses</span></code> package (for Windows install <code class="docutils literal notranslate"><span class="pre">windows-curses</span></code>) is the underlying
|
||||
main package to build terminal programs. The <code class="docutils literal notranslate"><span class="pre">curses</span></code> package can also be
|
||||
used directly.</p>
|
||||
<ul>
|
||||
<li><p>Windows (Anaconda):</p>
|
||||
<ul>
|
||||
@@ -69,9 +106,9 @@ directly.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p>drawille package is used to draw with braille characters (dottet and quasi-
|
||||
line charts). Make sure you use a font with Unicode Braille characters. For
|
||||
Windows e. g.: NSimSun, MS Gothic.</p>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">drawille</span></code> package is used to draw with braille characters (dottet and
|
||||
quasi-line charts). Make sure you use a font with Unicode Braille characters.
|
||||
For Windows e. g.: NSimSun, MS Gothic.</p>
|
||||
<ul>
|
||||
<li><p>Install: <code class="docutils literal notranslate"><span class="pre">python</span> <span class="pre">-m</span> <span class="pre">pip</span> <span class="pre">install</span> <span class="pre">drawille</span></code></p></li>
|
||||
<li><p>Windows (Anaconda):</p>
|
||||
@@ -82,9 +119,9 @@ Windows e. g.: NSimSun, MS Gothic.</p>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p>drawblock.py is used to draw with block characters (histogram).</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">drawblock</span></code> is used to draw with block characters (histogram).</p></li>
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">example/tui.py</span></code> is an example script to build a terminal program.</p></li>
|
||||
</ul>
|
||||
<p>example/tui.py is an example script to build a terminal program.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
BIN
docs/build/html/objects.inv
vendored
BIN
docs/build/html/objects.inv
vendored
Binary file not shown.
45
docs/build/html/pylib.data.html
vendored
45
docs/build/html/pylib.data.html
vendored
@@ -318,6 +318,28 @@ removed from the resulting list.</p></li>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="pylib.data.strs_between">
|
||||
<code class="sig-name descname">strs_between</code><span class="sig-paren">(</span><em class="sig-param">text</em>, <em class="sig-param">left</em>, <em class="sig-param">right</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data.html#strs_between"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data.strs_between" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Get text between two pattern.</p>
|
||||
<p>Text can be multi-line.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>text</strong> (<em>str</em>) – text to search in</p></li>
|
||||
<li><p><strong>left</strong> (<em>str</em>) – left pattern</p></li>
|
||||
<li><p><strong>right</strong> (<em>str</em>) – right pattern</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>text between the left and right pattern</p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>str</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="pylib.data.unique_ending">
|
||||
<code class="sig-name descname">unique_ending</code><span class="sig-paren">(</span><em class="sig-param">ids</em>, <em class="sig-param">n=1</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data.html#unique_ending"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data.unique_ending" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -386,7 +408,28 @@ unhashable types: ‘list’</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.data_step.html
vendored
23
docs/build/html/pylib.data_step.html
vendored
@@ -187,7 +187,28 @@ inside a parenthesis and then split the string at the commas.</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
580
docs/build/html/pylib.data_step_std.html
vendored
580
docs/build/html/pylib.data_step_std.html
vendored
@@ -56,6 +56,26 @@ Product data representation and exchange – Part 21:
|
||||
Implementation methods: Clear text encoding of the exchange
|
||||
structure</p>
|
||||
</div>
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.ARRAY">
|
||||
<em class="property">class </em><code class="sig-name descname">ARRAY</code><a class="reference internal" href="_modules/pylib/data_step_std.html#ARRAY"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.ARRAY" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></p>
|
||||
<p>EXPRESS Type ARRAY</p>
|
||||
<p>ARRAY are ordered. An ARRAY is the only aggregate that may
|
||||
contain unset members.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>value</strong> (<em>str</em>) – value</p></li>
|
||||
<li><p><strong>dtype</strong> – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p>tuple</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.AXIS2_PLACEMENT_2D">
|
||||
<em class="property">class </em><code class="sig-name descname">AXIS2_PLACEMENT_2D</code><span class="sig-paren">(</span><em class="sig-param">name</em>, <em class="sig-param">location</em>, <em class="sig-param">ref_direction</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#AXIS2_PLACEMENT_2D"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -65,7 +85,7 @@ structure</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>location</strong> (<a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a>) – </p></li>
|
||||
<li><p><strong>ref_direction</strong> (<a class="reference internal" href="#pylib.data_step_std.DIRECTION" title="pylib.data_step_std.DIRECTION"><em>DIRECTION</em></a>) – </p></li>
|
||||
</ul>
|
||||
@@ -73,10 +93,10 @@ structure</p>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p></li>
|
||||
<li><p><strong>p</strong> (<em>list of DIRECTION</em>) – </p></li>
|
||||
<li><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p></li>
|
||||
<li><p><strong>p</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.DIRECTION" title="pylib.data_step_std.DIRECTION"><em>DIRECTION</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -95,7 +115,7 @@ structure</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>location</strong> (<a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a>) – </p></li>
|
||||
<li><p><strong>axis</strong> (<a class="reference internal" href="#pylib.data_step_std.DIRECTION" title="pylib.data_step_std.DIRECTION"><em>DIRECTION</em></a>) – </p></li>
|
||||
<li><p><strong>ref_direction</strong> (<a class="reference internal" href="#pylib.data_step_std.DIRECTION" title="pylib.data_step_std.DIRECTION"><em>DIRECTION</em></a>) – </p></li>
|
||||
@@ -104,10 +124,10 @@ structure</p>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p></li>
|
||||
<li><p><strong>p</strong> (<em>list of DIRECTION</em>) – </p></li>
|
||||
<li><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p></li>
|
||||
<li><p><strong>p</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.DIRECTION" title="pylib.data_step_std.DIRECTION"><em>DIRECTION</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -118,9 +138,19 @@ structure</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="pylib.data_step_std.BOOLEAN_to_bool">
|
||||
<code class="sig-name descname">BOOLEAN_to_bool</code><span class="sig-paren">(</span><em class="sig-param">boolean</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#BOOLEAN_to_bool"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.BOOLEAN_to_bool" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
<dt id="pylib.data_step_std.BOOLEAN">
|
||||
<code class="sig-name descname">BOOLEAN</code><span class="sig-paren">(</span><em class="sig-param">value</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#BOOLEAN"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.BOOLEAN" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>EXPRESS Type BOOLEAN with values TRUE and FALSE</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>value</strong> (<em>str</em>) – either <code class="docutils literal notranslate"><span class="pre">.T.</span></code> for a True value or <code class="docutils literal notranslate"><span class="pre">.F.</span></code> for a
|
||||
False value</p>
|
||||
</dd>
|
||||
<dt class="field-even">Raises</dt>
|
||||
<dd class="field-even"><p>TypeError</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.BOUNDED_CURVE">
|
||||
@@ -130,13 +160,13 @@ structure</p>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -154,26 +184,22 @@ structure</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>degree</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>control_points_list</strong> (<em>tuple</em>) – STEP Standard TYPE LIST OF
|
||||
cartesian_point (ENTITY)</p></li>
|
||||
<li><p><strong>curve_form</strong> (<em>str</em>) – STEP Standard TYPE b_spline_curve_form (ENUM).
|
||||
ENUMERATION OF (polyline_form, circular_arc, elliptic_arc,
|
||||
parabolic_arc, hyperbolic_arc, unspecified).</p></li>
|
||||
<li><p><strong>closed_curve</strong> (<em>str</em>) – STEP Standard TYPE LOGICAL</p></li>
|
||||
<li><p><strong>self_intersect</strong> (<em>str</em>) – STEP Standard TYPE LOGICAL</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>degree</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
<li><p><strong>control_points_list</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
<li><p><strong>curve_form</strong> (<a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM" title="pylib.data_step_std.B_SPLINE_CURVE_FORM"><em>B_SPLINE_CURVE_FORM</em></a>) – </p></li>
|
||||
<li><p><strong>closed_curve</strong> (<em>LOGICAL</em>) – </p></li>
|
||||
<li><p><strong>self_intersect</strong> (<em>LOGICAL</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p></li>
|
||||
<li><p><strong>upper_index_on_control_points</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>control_points</strong> (<em>tuple</em>) – STEP Standard TYPE ARRAY OF
|
||||
cartesian_point (ENTITY)</p></li>
|
||||
<li><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p></li>
|
||||
<li><p><strong>upper_index_on_control_points</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
<li><p><strong>control_points</strong> (<a class="reference internal" href="#pylib.data_step_std.ARRAY" title="pylib.data_step_std.ARRAY"><em>ARRAY</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -183,6 +209,61 @@ cartesian_point (ENTITY)</p></li>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM">
|
||||
<em class="property">class </em><code class="sig-name descname">B_SPLINE_CURVE_FORM</code><a class="reference internal" href="_modules/pylib/data_step_std.html#B_SPLINE_CURVE_FORM"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">enum.Enum</span></code></p>
|
||||
<p>STEP Standard TYPE b_spline_curve_form</p>
|
||||
<p>ENUMERATION OF (polyline_form, circular_arc, elliptic_arc,
|
||||
parabolic_arc, hyperbolic_arc, unspecified).</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.POLYLINE_FORM" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.POLYLINE_FORM"><strong>POLYLINE_FORM</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.CIRCULAR_ARC" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.CIRCULAR_ARC"><strong>CIRCULAR_ARC</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.ELLIPTIC_ARC" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.ELLIPTIC_ARC"><strong>ELLIPTIC_ARC</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.PARABOLIC_ARC" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.PARABOLIC_ARC"><strong>PARABOLIC_ARC</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.HYPERBOLIC_ARC" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.HYPERBOLIC_ARC"><strong>HYPERBOLIC_ARC</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED"><strong>UNSPECIFIED</strong></a> – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
<p class="admonition-title">See also</p>
|
||||
<p><a class="reference external" href="https://www.steptools.com/std/stp_aim/html/t_b_spline_curve_form.html">https://www.steptools.com/std/stp_aim/html/t_b_spline_curve_form.html</a></p>
|
||||
</div>
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM.CIRCULAR_ARC">
|
||||
<code class="sig-name descname">CIRCULAR_ARC</code><em class="property"> = 2</em><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.CIRCULAR_ARC" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM.ELLIPTIC_ARC">
|
||||
<code class="sig-name descname">ELLIPTIC_ARC</code><em class="property"> = 3</em><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.ELLIPTIC_ARC" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM.HYPERBOLIC_ARC">
|
||||
<code class="sig-name descname">HYPERBOLIC_ARC</code><em class="property"> = 5</em><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.HYPERBOLIC_ARC" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM.PARABOLIC_ARC">
|
||||
<code class="sig-name descname">PARABOLIC_ARC</code><em class="property"> = 4</em><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.PARABOLIC_ARC" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM.POLYLINE_FORM">
|
||||
<code class="sig-name descname">POLYLINE_FORM</code><em class="property"> = 1</em><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.POLYLINE_FORM" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED">
|
||||
<code class="sig-name descname">UNSPECIFIED</code><em class="property"> = 6</em><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.B_SPLINE_CURVE_WITH_KNOTS">
|
||||
<em class="property">class </em><code class="sig-name descname">B_SPLINE_CURVE_WITH_KNOTS</code><span class="sig-paren">(</span><em class="sig-param">name</em>, <em class="sig-param">degree</em>, <em class="sig-param">control_points_list</em>, <em class="sig-param">curve_form</em>, <em class="sig-param">closed_curve</em>, <em class="sig-param">self_intersect</em>, <em class="sig-param">knot_multiplicities</em>, <em class="sig-param">knots</em>, <em class="sig-param">knot_spec</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#B_SPLINE_CURVE_WITH_KNOTS"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.B_SPLINE_CURVE_WITH_KNOTS" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -192,32 +273,26 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>degree</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>control_points_list</strong> (<em>tuple</em>) – STEP Standard TYPE LIST OF
|
||||
cartesian_point (ENTITY)</p></li>
|
||||
<li><p><strong>curve_form</strong> (<em>str</em>) – STEP Standard TYPE b_spline_curve_form (ENUM).
|
||||
ENUMERATION OF (polyline_form, circular_arc, elliptic_arc,
|
||||
parabolic_arc, hyperbolic_arc, unspecified).</p></li>
|
||||
<li><p><strong>closed_curve</strong> (<em>str</em>) – STEP Standard TYPE LOGICAL</p></li>
|
||||
<li><p><strong>self_intersect</strong> (<em>str</em>) – STEP Standard TYPE LOGICAL</p></li>
|
||||
<li><p><strong>knot_multiplicities</strong> (<em>tuple</em>) – STEP Standard TYPE LIST OF INTEGER</p></li>
|
||||
<li><p><strong>knots</strong> (<em>tuple</em>) – STEP Standard TYPE LIST OF parameter_value (REAL)</p></li>
|
||||
<li><p><strong>knot_spec</strong> (<em>str</em>) – STEP Standard TYPE knot_type (ENUM).
|
||||
ENUMERATION OF (uniform_knots, quasi_uniform_knots,
|
||||
piecewise_bezier_knots, unspecified).</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>degree</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
<li><p><strong>control_points_list</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
<li><p><strong>curve_form</strong> (<a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM" title="pylib.data_step_std.B_SPLINE_CURVE_FORM"><em>B_SPLINE_CURVE_FORM</em></a>) – </p></li>
|
||||
<li><p><strong>closed_curve</strong> (<em>LOGICAL</em>) – </p></li>
|
||||
<li><p><strong>self_intersect</strong> (<em>LOGICAL</em>) – </p></li>
|
||||
<li><p><strong>knot_multiplicities</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
<li><p><strong>knots</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.REAL" title="pylib.data_step_std.REAL"><em>REAL</em></a><em>, </em><em>..</em><em>]</em>) – STEP Standard TYPE LIST OF parameter_value (REAL)</p></li>
|
||||
<li><p><strong>knot_spec</strong> (<a class="reference internal" href="#pylib.data_step_std.KNOT_TYPE" title="pylib.data_step_std.KNOT_TYPE"><em>KNOT_TYPE</em></a>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p></li>
|
||||
<li><p><strong>upper_index_on_control_points</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>control_points</strong> (<em>tuple</em>) – STEP Standard TYPE ARRAY OF
|
||||
cartesian_point (ENTITY)</p></li>
|
||||
<li><p><strong>upper_index_on_knots</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p></li>
|
||||
<li><p><strong>upper_index_on_control_points</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
<li><p><strong>control_points</strong> (<a class="reference internal" href="#pylib.data_step_std.ARRAY" title="pylib.data_step_std.ARRAY"><em>ARRAY</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
<li><p><strong>upper_index_on_knots</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -236,15 +311,15 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>coordinates</strong> (<em>tuple</em>) – list of length_measure (floats)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>coordinates</strong> (<em>tuple</em><em>[</em><em>float</em><em>, </em><em>..</em><em>]</em>) – list of length_measure</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -268,16 +343,16 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>position</strong> (<a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="pylib.data_step_std.AXIS2_PLACEMENT_2D"><em>AXIS2_PLACEMENT_2D</em></a><em> or </em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_3D" title="pylib.data_step_std.AXIS2_PLACEMENT_3D"><em>AXIS2_PLACEMENT_3D</em></a>) – axis2_placement</p></li>
|
||||
<li><p><strong>radius</strong> (<em>float</em>) – positive_length_measure</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>position</strong> (<em>Union</em><em>[</em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="pylib.data_step_std.AXIS2_PLACEMENT_2D"><em>AXIS2_PLACEMENT_2D</em></a><em>, </em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_3D" title="pylib.data_step_std.AXIS2_PLACEMENT_3D"><em>AXIS2_PLACEMENT_3D</em></a><em>]</em>) – axis2_placement</p></li>
|
||||
<li><p><strong>radius</strong> (<a class="reference internal" href="#pylib.data_step_std.REAL" title="pylib.data_step_std.REAL"><em>REAL</em></a>) – positive_length_measure</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -295,15 +370,15 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>position</strong> (<a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="pylib.data_step_std.AXIS2_PLACEMENT_2D"><em>AXIS2_PLACEMENT_2D</em></a><em> or </em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_3D" title="pylib.data_step_std.AXIS2_PLACEMENT_3D"><em>AXIS2_PLACEMENT_3D</em></a>) – axis2_placement</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>position</strong> (<em>Union</em><em>[</em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="pylib.data_step_std.AXIS2_PLACEMENT_2D"><em>AXIS2_PLACEMENT_2D</em></a><em>, </em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_3D" title="pylib.data_step_std.AXIS2_PLACEMENT_3D"><em>AXIS2_PLACEMENT_3D</em></a><em>]</em>) – axis2_placement</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -320,13 +395,13 @@ cartesian_point (ENTITY)</p></li>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -344,15 +419,15 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>direction_ratios</strong> (<em>tuple</em>) – STEP Standard LIST OF REAL</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>direction_ratios</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.REAL" title="pylib.data_step_std.REAL"><em>REAL</em></a><em>, </em><em>..</em><em>]</em>) – STEP Standard LIST OF REAL</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -370,7 +445,7 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>edge_start</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – start point</p></li>
|
||||
<li><p><strong>edge_end</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – end point</p></li>
|
||||
</ul>
|
||||
@@ -391,24 +466,35 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>edge_start</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – start point</p></li>
|
||||
<li><p><strong>edge_end</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – end point</p></li>
|
||||
<li><p><strong>edge_geometry</strong> (<a class="reference internal" href="#pylib.data_step_std.CURVE" title="pylib.data_step_std.CURVE"><em>CURVE</em></a>) – curve</p></li>
|
||||
<li><p><strong>same_sense</strong> (<em>str</em>) – STEP Standard TYPE BOOLEAN</p></li>
|
||||
<li><p><strong>same_sense</strong> (<em>BOOLEAN</em>) – <<TODO>></p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Definition from ISO/CD 10303-42:1992: An edge curve is a special subtype of edge which has its geometry fully defined. The geometry is defined by associating the edge with a curve which may be unbounded. As the topological and geometric directions may be opposed, an indicator (same sense) is used to identify whether the edge and curve directions agree or are opposed. The Boolean value indicates whether the curve direction agrees with (TRUE) or is in the opposite direction (FALSE) to the edge direction. Any geometry associated with the vertices of the edge shall be consistent with the edge geometry.</p>
|
||||
<p>Definition from ISO/CD 10303-42:1992: An edge curve is a special
|
||||
subtype of edge which has its geometry fully defined. The
|
||||
geometry is defined by associating the edge with a curve which
|
||||
may be unbounded. As the topological and geometric directions may
|
||||
be opposed, an indicator (same sense) is used to identify whether
|
||||
the edge and curve directions agree or are opposed. The Boolean
|
||||
value indicates whether the curve direction agrees with (TRUE) or
|
||||
is in the opposite direction (FALSE) to the edge direction. Any
|
||||
geometry associated with the vertices of the edge shall be
|
||||
consistent with the edge geometry.</p>
|
||||
<dl class="simple">
|
||||
<dt>Informal propositions</dt><dd><ol class="arabic simple">
|
||||
<li><p>The domain of the edge curve is formally defined to be the domain of its edge geometry as trimmed by the vertices. This domain does not include the vertices.</p></li>
|
||||
<li><p>The domain of the edge curve is formally defined to be the
|
||||
domain of its edge geometry as trimmed by the vertices. This
|
||||
domain does not include the vertices.</p></li>
|
||||
<li><p>An edge curve has non-zero finite extent.</p></li>
|
||||
<li><p>An edge curve is a manifold.</p></li>
|
||||
<li><p>An edge curve is arcwise connected.</p></li>
|
||||
@@ -418,9 +504,16 @@ cartesian_point (ENTITY)</p></li>
|
||||
</ol>
|
||||
</dd>
|
||||
<dt>Attribute definitions</dt><dd><dl class="simple">
|
||||
<dt>EdgeGeometry</dt><dd><p>The curve which defines the shape and spatial location of the edge. This curve may be unbounded and is implicitly trimmed by the vertices of the edge; this defines the edge domain. Multiple edges can reference the same curve.</p>
|
||||
<dt>EdgeGeometry</dt><dd><p>The curve which defines the shape and spatial location of the
|
||||
edge. This curve may be unbounded and is implicitly trimmed
|
||||
by the vertices of the edge; this defines the edge domain.
|
||||
Multiple edges can reference the same curve.</p>
|
||||
</dd>
|
||||
<dt>SameSense</dt><dd><p>This logical flag indicates whether (TRUE), or not (FALSE) the senses of the edge and the curve defining the edge geometry are the same. The sense of an edge is from the edge start vertex to the edge end vertex; the sense of a curve is in the direction of increasing parameter.</p>
|
||||
<dt>SameSense</dt><dd><p>This logical flag indicates whether (TRUE), or not (FALSE)
|
||||
the senses of the edge and the curve defining the edge
|
||||
geometry are the same. The sense of an edge is from the edge
|
||||
start vertex to the edge end vertex; the sense of a curve is
|
||||
in the direction of increasing parameter.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
@@ -441,8 +534,8 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>edge_list</strong> (<em>tuple</em>) – STEP Standard TYPE LIST OF oriented_edge (ENTITY)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>edge_list</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.ORIENTED_EDGE" title="pylib.data_step_std.ORIENTED_EDGE"><em>ORIENTED_EDGE</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -461,17 +554,17 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>position</strong> (<a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="pylib.data_step_std.AXIS2_PLACEMENT_2D"><em>AXIS2_PLACEMENT_2D</em></a><em> or </em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_3D" title="pylib.data_step_std.AXIS2_PLACEMENT_3D"><em>AXIS2_PLACEMENT_3D</em></a>) – STEP Standard TYPE axis2_placement (SELECT)</p></li>
|
||||
<li><p><strong>semi_axis_1</strong> (<em>float</em>) – STEP Standard TYPE positive_length_measure (REAL)</p></li>
|
||||
<li><p><strong>semi_axis_2</strong> (<em>float</em>) – STEP Standard TYPE positive_length_measure (REAL)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>position</strong> (<em>Union</em><em>[</em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_2D" title="pylib.data_step_std.AXIS2_PLACEMENT_2D"><em>AXIS2_PLACEMENT_2D</em></a><em>, </em><a class="reference internal" href="#pylib.data_step_std.AXIS2_PLACEMENT_3D" title="pylib.data_step_std.AXIS2_PLACEMENT_3D"><em>AXIS2_PLACEMENT_3D</em></a><em>]</em>) – STEP Standard TYPE axis2_placement (SELECT)</p></li>
|
||||
<li><p><strong>semi_axis_1</strong> (<a class="reference internal" href="#pylib.data_step_std.REAL" title="pylib.data_step_std.REAL"><em>REAL</em></a>) – positive_length_measure</p></li>
|
||||
<li><p><strong>semi_axis_2</strong> (<a class="reference internal" href="#pylib.data_step_std.REAL" title="pylib.data_step_std.REAL"><em>REAL</em></a>) – positive_length_measure</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -480,6 +573,12 @@ cartesian_point (ENTITY)</p></li>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.GENERIC">
|
||||
<em class="property">class </em><code class="sig-name descname">GENERIC</code><a class="reference internal" href="_modules/pylib/data_step_std.html#GENERIC"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.GENERIC" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM">
|
||||
<em class="property">class </em><code class="sig-name descname">GEOMETRIC_REPRESENTATION_ITEM</code><span class="sig-paren">(</span><em class="sig-param">name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#GEOMETRIC_REPRESENTATION_ITEM"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -488,13 +587,13 @@ cartesian_point (ENTITY)</p></li>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -503,6 +602,58 @@ cartesian_point (ENTITY)</p></li>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.INTEGER">
|
||||
<em class="property">class </em><code class="sig-name descname">INTEGER</code><a class="reference internal" href="_modules/pylib/data_step_std.html#INTEGER"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.INTEGER" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">int</span></code></p>
|
||||
<p>EXPRESS Type INTEGER</p>
|
||||
<p>EXPRESS integers can have in principle any length, but most
|
||||
implementations restricted them to a signed 32 bit value.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.KNOT_TYPE">
|
||||
<em class="property">class </em><code class="sig-name descname">KNOT_TYPE</code><a class="reference internal" href="_modules/pylib/data_step_std.html#KNOT_TYPE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.KNOT_TYPE" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">enum.Enum</span></code></p>
|
||||
<p>STEP Standard TYPE knot_type</p>
|
||||
<p>ENUMERATION OF (uniform_knots, quasi_uniform_knots,
|
||||
piecewise_bezier_knots, unspecified).</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.KNOT_TYPE.UNIFORM_KNOTS" title="pylib.data_step_std.KNOT_TYPE.UNIFORM_KNOTS"><strong>UNIFORM_KNOTS</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.KNOT_TYPE.QUASI_UNIFORM_KNOTS" title="pylib.data_step_std.KNOT_TYPE.QUASI_UNIFORM_KNOTS"><strong>QUASI_UNIFORM_KNOTS</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.KNOT_TYPE.PIECEWISE_BEZIER_KNOTS" title="pylib.data_step_std.KNOT_TYPE.PIECEWISE_BEZIER_KNOTS"><strong>PIECEWISE_BEZIER_KNOTS</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED" title="pylib.data_step_std.B_SPLINE_CURVE_FORM.UNSPECIFIED"><strong>UNSPECIFIED</strong></a> – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
<p class="admonition-title">See also</p>
|
||||
<p><a class="reference external" href="https://www.steptools.com/std/stp_aim/html/t_knot_type.html">https://www.steptools.com/std/stp_aim/html/t_knot_type.html</a></p>
|
||||
</div>
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.KNOT_TYPE.PIECEWISE_BEZIER_KNOTS">
|
||||
<code class="sig-name descname">PIECEWISE_BEZIER_KNOTS</code><em class="property"> = 3</em><a class="headerlink" href="#pylib.data_step_std.KNOT_TYPE.PIECEWISE_BEZIER_KNOTS" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.KNOT_TYPE.QUASI_UNIFORM_KNOTS">
|
||||
<code class="sig-name descname">QUASI_UNIFORM_KNOTS</code><em class="property"> = 2</em><a class="headerlink" href="#pylib.data_step_std.KNOT_TYPE.QUASI_UNIFORM_KNOTS" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.KNOT_TYPE.UNIFORM_KNOTS">
|
||||
<code class="sig-name descname">UNIFORM_KNOTS</code><em class="property"> = 1</em><a class="headerlink" href="#pylib.data_step_std.KNOT_TYPE.UNIFORM_KNOTS" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.KNOT_TYPE.UNSPECIFIED">
|
||||
<code class="sig-name descname">UNSPECIFIED</code><em class="property"> = 4</em><a class="headerlink" href="#pylib.data_step_std.KNOT_TYPE.UNSPECIFIED" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.LINE">
|
||||
<em class="property">class </em><code class="sig-name descname">LINE</code><span class="sig-paren">(</span><em class="sig-param">name</em>, <em class="sig-param">pnt</em>, <em class="sig-param">dir</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#LINE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.LINE" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -512,7 +663,7 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>pnt</strong> (<a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a>) – </p></li>
|
||||
<li><p><strong>dir</strong> (<a class="reference internal" href="#pylib.data_step_std.VECTOR" title="pylib.data_step_std.VECTOR"><em>VECTOR</em></a>) – </p></li>
|
||||
</ul>
|
||||
@@ -520,8 +671,8 @@ cartesian_point (ENTITY)</p></li>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -530,6 +681,38 @@ cartesian_point (ENTITY)</p></li>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.LIST">
|
||||
<em class="property">class </em><code class="sig-name descname">LIST</code><a class="reference internal" href="_modules/pylib/data_step_std.html#LIST"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.LIST" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">tuple</span></code></p>
|
||||
<p>EXPRESS Type LIST</p>
|
||||
<p>LIST are ordered. It is not possible to contain unset members.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>value</strong> (<em>str</em>) – value</p></li>
|
||||
<li><p><strong>dtype</strong> – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p>tuple</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="pylib.data_step_std.LOGICAL">
|
||||
<code class="sig-name descname">LOGICAL</code><span class="sig-paren">(</span><em class="sig-param">value</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#LOGICAL"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.LOGICAL" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>EXPRESS Type LOGICAL with values TRUE and FALSE and in addition
|
||||
UNKNOWN</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>value</strong> (<em>str</em>) – either <code class="docutils literal notranslate"><span class="pre">.T.</span></code> for a True value or <code class="docutils literal notranslate"><span class="pre">.F.</span></code> for a
|
||||
False value</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.LOOP">
|
||||
<em class="property">class </em><code class="sig-name descname">LOOP</code><span class="sig-paren">(</span><em class="sig-param">name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#LOOP"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.LOOP" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -538,7 +721,7 @@ cartesian_point (ENTITY)</p></li>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -556,24 +739,20 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>edge_start</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – STEP Standard TYPE vertex (ENTITY)
|
||||
[re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_end</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – STEP Standard TYPE vertex (ENTITY)
|
||||
[re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_element</strong> (<a class="reference internal" href="#pylib.data_step_std.EDGE" title="pylib.data_step_std.EDGE"><em>EDGE</em></a>) – STEP Standard TYPE edge (ENTITY)</p></li>
|
||||
<li><p><strong>orientation</strong> (<em>str</em>) – STEP Standard TYPE BOOLEAN</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>edge_start</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – [re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_end</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – [re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_element</strong> (<a class="reference internal" href="#pylib.data_step_std.EDGE" title="pylib.data_step_std.EDGE"><em>EDGE</em></a>) – </p></li>
|
||||
<li><p><strong>orientation</strong> (<em>BOOLEAN</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>edge_start</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – STEP Standard TYPE vertex (ENTITY)
|
||||
[re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_end</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – STEP Standard TYPE vertex (ENTITY)
|
||||
[re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_start</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – [re-declared attribute from edge]</p></li>
|
||||
<li><p><strong>edge_end</strong> (<a class="reference internal" href="#pylib.data_step_std.VERTEX" title="pylib.data_step_std.VERTEX"><em>VERTEX</em></a>) – [re-declared attribute from edge]</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -592,8 +771,8 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>edge_list</strong> (<em>tuple</em>) – STEP Standard TYPE LIST OF oriented_edge (ENTITY)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>edge_list</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><a class="reference internal" href="#pylib.data_step_std.ORIENTED_EDGE" title="pylib.data_step_std.ORIENTED_EDGE"><em>ORIENTED_EDGE</em></a><em>, </em><em>..</em><em>]</em>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -612,15 +791,15 @@ cartesian_point (ENTITY)</p></li>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>location</strong> (<a class="reference internal" href="#pylib.data_step_std.CARTESIAN_POINT" title="pylib.data_step_std.CARTESIAN_POINT"><em>CARTESIAN_POINT</em></a>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -637,13 +816,13 @@ cartesian_point (ENTITY)</p></li>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -652,6 +831,51 @@ cartesian_point (ENTITY)</p></li>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION">
|
||||
<em class="property">class </em><code class="sig-name descname">PREFERRED_SURFACE_CURVE_REPRESENTATION</code><a class="reference internal" href="_modules/pylib/data_step_std.html#PREFERRED_SURFACE_CURVE_REPRESENTATION"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">enum.Enum</span></code></p>
|
||||
<p>STEP Standard TYPE b_spline_curve_form</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.CURVE_3D" title="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.CURVE_3D"><strong>CURVE_3D</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S1" title="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S1"><strong>PCURVE_S1</strong></a> – </p></li>
|
||||
<li><p><a class="reference internal" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S2" title="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S2"><strong>PCURVE_S2</strong></a> – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
<p class="admonition-title">See also</p>
|
||||
<p><a class="reference external" href="https://www.steptools.com/stds/stp_aim/html/t_preferred_surface_curve_representation.html">https://www.steptools.com/stds/stp_aim/html/t_preferred_surface_curve_representation.html</a></p>
|
||||
</div>
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.CURVE_3D">
|
||||
<code class="sig-name descname">CURVE_3D</code><em class="property"> = 1</em><a class="headerlink" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.CURVE_3D" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S1">
|
||||
<code class="sig-name descname">PCURVE_S1</code><em class="property"> = 2</em><a class="headerlink" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S1" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="attribute">
|
||||
<dt id="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S2">
|
||||
<code class="sig-name descname">PCURVE_S2</code><em class="property"> = 3</em><a class="headerlink" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION.PCURVE_S2" title="Permalink to this definition">¶</a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.REAL">
|
||||
<em class="property">class </em><code class="sig-name descname">REAL</code><a class="reference internal" href="_modules/pylib/data_step_std.html#REAL"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.REAL" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">float</span></code></p>
|
||||
<p>EXPRESS Type REAL</p>
|
||||
<p>Ideally an EXPRESS real value is unlimited in accuracy and size.
|
||||
But in practice a real value is represented by a floating point
|
||||
value of type double.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.REPRESENTATION_ITEM">
|
||||
<em class="property">class </em><code class="sig-name descname">REPRESENTATION_ITEM</code><span class="sig-paren">(</span><em class="sig-param">name</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#REPRESENTATION_ITEM"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.REPRESENTATION_ITEM" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -660,13 +884,13 @@ cartesian_point (ENTITY)</p></li>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Additional attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><a class="reference internal" href="#pylib.data_step_std.REPRESENTATION_ITEM.idn" title="pylib.data_step_std.REPRESENTATION_ITEM.idn"><strong>idn</strong></a> (<em>int</em>) – for the instance the instance id and for the class the
|
||||
<dd class="field-odd"><p><a class="reference internal" href="#pylib.data_step_std.REPRESENTATION_ITEM.idn" title="pylib.data_step_std.REPRESENTATION_ITEM.idn"><strong>idn</strong></a> (<em>int <<additional>></em>) – for the instance the instance id and for the class the
|
||||
total number of instances</p>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -690,19 +914,20 @@ total number of instances</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>curve_3d</strong> (<a class="reference internal" href="#pylib.data_step_std.CURVE" title="pylib.data_step_std.CURVE"><em>CURVE</em></a>) – </p></li>
|
||||
<li><p><strong>associated_geometry</strong> (<em>list of pcurve_or_surface</em>) – </p></li>
|
||||
<li><p><strong>master_representation</strong> (<em>preferred_surface_curve_representation</em>) – </p></li>
|
||||
<li><p><strong>associated_geometry</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><em>Union</em><em>[</em><em>PCURVE</em><em>, </em><em>SURFACE</em><em>]</em><em>, </em><em>..</em><em>]</em>) – STEP Standard TYPE LIST OF
|
||||
pcurve_or_surface (SELECT) <<TODO>></p></li>
|
||||
<li><p><strong>master_representation</strong> (<a class="reference internal" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION" title="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION"><em>PREFERRED_SURFACE_CURVE_REPRESENTATION</em></a>) – <<TODO>></p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p></li>
|
||||
<li><p><strong>basis_surface</strong> (<em>SET OF surface</em>) – </p></li>
|
||||
<li><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p></li>
|
||||
<li><p><strong>basis_surface</strong> (<a class="reference internal" href="#pylib.data_step_std.SET" title="pylib.data_step_std.SET"><em>SET</em></a><em>[</em><em>SURFACE</em><em>, </em><em>..</em><em>]</em>) – <<TODO>></p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -712,6 +937,35 @@ total number of instances</p>
|
||||
</div>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.SET">
|
||||
<em class="property">class </em><code class="sig-name descname">SET</code><a class="reference internal" href="_modules/pylib/data_step_std.html#SET"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.SET" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">set</span></code></p>
|
||||
<p>EXPRESS Type SET</p>
|
||||
<p>SET are unordered. Contain a particular value more than once, is
|
||||
not allowed. It is not possible to contain unset members.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>value</strong> (<em>str</em>) – value</p></li>
|
||||
<li><p><strong>dtype</strong> – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Return type</dt>
|
||||
<dd class="field-even"><p>set</p>
|
||||
</dd>
|
||||
</dl>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.STRING">
|
||||
<em class="property">class </em><code class="sig-name descname">STRING</code><a class="reference internal" href="_modules/pylib/data_step_std.html#STRING"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.STRING" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">str</span></code></p>
|
||||
<p>EXPRESS Type STRING</p>
|
||||
<p>This is the most often used simple type. EXPRESS strings can be
|
||||
of any length and can contain any character (ISO 10646/Unicode).</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="class">
|
||||
<dt id="pylib.data_step_std.SURFACE_CURVE">
|
||||
<em class="property">class </em><code class="sig-name descname">SURFACE_CURVE</code><span class="sig-paren">(</span><em class="sig-param">name</em>, <em class="sig-param">curve_3d</em>, <em class="sig-param">associated_geometry</em>, <em class="sig-param">master_representation</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/data_step_std.html#SURFACE_CURVE"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.data_step_std.SURFACE_CURVE" title="Permalink to this definition">¶</a></dt>
|
||||
@@ -721,19 +975,20 @@ total number of instances</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>curve_3d</strong> (<a class="reference internal" href="#pylib.data_step_std.CURVE" title="pylib.data_step_std.CURVE"><em>CURVE</em></a>) – </p></li>
|
||||
<li><p><strong>associated_geometry</strong> (<em>list of pcurve_or_surface</em>) – </p></li>
|
||||
<li><p><strong>master_representation</strong> (<em>preferred_surface_curve_representation</em>) – </p></li>
|
||||
<li><p><strong>associated_geometry</strong> (<a class="reference internal" href="#pylib.data_step_std.LIST" title="pylib.data_step_std.LIST"><em>LIST</em></a><em>[</em><em>Union</em><em>[</em><em>PCURVE</em><em>, </em><em>SURFACE</em><em>]</em><em>, </em><em>..</em><em>]</em>) – STEP Standard TYPE LIST OF
|
||||
pcurve_or_surface (SELECT) <<TODO>></p></li>
|
||||
<li><p><strong>master_representation</strong> (<a class="reference internal" href="#pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION" title="pylib.data_step_std.PREFERRED_SURFACE_CURVE_REPRESENTATION"><em>PREFERRED_SURFACE_CURVE_REPRESENTATION</em></a>) – <<TODO>></p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p></li>
|
||||
<li><p><strong>basis_surface</strong> (<em>SET OF surface</em>) – </p></li>
|
||||
<li><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p></li>
|
||||
<li><p><strong>basis_surface</strong> (<a class="reference internal" href="#pylib.data_step_std.SET" title="pylib.data_step_std.SET"><em>SET</em></a><em>[</em><em>SURFACE</em><em>, </em><em>..</em><em>]</em>) – <<TODO>></p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -751,7 +1006,7 @@ total number of instances</p>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -769,16 +1024,16 @@ total number of instances</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>orientation</strong> (<a class="reference internal" href="#pylib.data_step_std.DIRECTION" title="pylib.data_step_std.DIRECTION"><em>DIRECTION</em></a>) – </p></li>
|
||||
<li><p><strong>magnitude</strong> (<em>float</em>) – length_measure</p></li>
|
||||
<li><p><strong>magnitude</strong> (<a class="reference internal" href="#pylib.data_step_std.REAL" title="pylib.data_step_std.REAL"><em>REAL</em></a>) – length_measure</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -795,7 +1050,7 @@ total number of instances</p>
|
||||
<p>Explicit Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p>
|
||||
<dd class="field-odd"><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -813,15 +1068,15 @@ total number of instances</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>name</strong> (<em>str</em>) – STEP Standard TYPE label (STRING)</p></li>
|
||||
<li><p><strong>name</strong> (<a class="reference internal" href="#pylib.data_step_std.STRING" title="pylib.data_step_std.STRING"><em>STRING</em></a>) – label</p></li>
|
||||
<li><p><strong>vertex_geometry</strong> (<a class="reference internal" href="#pylib.data_step_std.POINT" title="pylib.data_step_std.POINT"><em>POINT</em></a>) – point</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<p>Derived Attributes</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER)</p>
|
||||
<dt class="field-odd">Variables</dt>
|
||||
<dd class="field-odd"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -843,9 +1098,9 @@ total number of instances</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>b</strong> (<em>bool</em>) – STEP Standard TYPE BOOLEAN</p></li>
|
||||
<li><p><strong>choice1</strong> (<em>object</em>) – STEP Standard TYPE GENERIC</p></li>
|
||||
<li><p><strong>choice2</strong> (<em>object</em>) – STEP Standard TYPE GENERIC</p></li>
|
||||
<li><p><strong>b</strong> (<em>BOOLEAN</em>) – </p></li>
|
||||
<li><p><strong>choice1</strong> (<a class="reference internal" href="#pylib.data_step_std.GENERIC" title="pylib.data_step_std.GENERIC"><em>GENERIC</em></a>) – </p></li>
|
||||
<li><p><strong>choice2</strong> (<a class="reference internal" href="#pylib.data_step_std.GENERIC" title="pylib.data_step_std.GENERIC"><em>GENERIC</em></a>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
@@ -867,16 +1122,16 @@ total number of instances</p>
|
||||
<dd><p>STEP Standard FUNCTION dimension_of</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>item</strong> (<a class="reference internal" href="#pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM" title="pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM"><em>GEOMETRIC_REPRESENTATION_ITEM</em></a>) – STEP Standard TYPE GEOMETRIC_REPRESENTATION_ITEM</p>
|
||||
<dd class="field-odd"><p><strong>item</strong> (<a class="reference internal" href="#pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM" title="pylib.data_step_std.GEOMETRIC_REPRESENTATION_ITEM"><em>GEOMETRIC_REPRESENTATION_ITEM</em></a>) – </p>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>dim</p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>int or None</p>
|
||||
<dd class="field-odd"><p>Union[int, None]</p>
|
||||
</dd>
|
||||
<dt class="field-even">Variables</dt>
|
||||
<dd class="field-even"><p><strong>dim</strong> (<em>int</em>) – STEP Standard TYPE dimension_count (INTEGER).
|
||||
<dd class="field-even"><p><strong>dim</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – dimension_count
|
||||
dimension_count > 0</p>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -893,20 +1148,22 @@ dimension_count > 0</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>lis</strong> (<em>tuple</em>) – STEP Standard TYPE LIST [0:?] OF GENERIC</p></li>
|
||||
<li><p><strong>low</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>u</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>n</strong> (<em>int</em>) – STEP Standard TYPE INTEGER</p></li>
|
||||
<li><p><strong>lis</strong> (<em>tuple</em><em>[</em><a class="reference internal" href="#pylib.data_step_std.GENERIC" title="pylib.data_step_std.GENERIC"><em>GENERIC</em></a><em>, </em><em>..</em><em>]</em>) – STEP Standard TYPE LIST [0:?] OF GENERIC</p></li>
|
||||
<li><p><strong>low</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
<li><p><strong>u</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>res</p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>tuple or None</p>
|
||||
<dd class="field-odd"><p>Union[tuple, None]</p>
|
||||
</dd>
|
||||
<dt class="field-even">Variables</dt>
|
||||
<dd class="field-even"><p><strong>res</strong> (<em>tuple</em>) – STEP Standard TYPE ARRAY [low:u] OF GENERIC</p>
|
||||
<dd class="field-even"><ul class="simple">
|
||||
<li><p><strong>n</strong> (<a class="reference internal" href="#pylib.data_step_std.INTEGER" title="pylib.data_step_std.INTEGER"><em>INTEGER</em></a>) – </p></li>
|
||||
<li><p><strong>res</strong> (<em>tuple</em><em>[</em><a class="reference internal" href="#pylib.data_step_std.GENERIC" title="pylib.data_step_std.GENERIC"><em>GENERIC</em></a><em>, </em><em>..</em><em>]</em>) – STEP Standard TYPE ARRAY [low:u] OF GENERIC</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -922,16 +1179,16 @@ dimension_count > 0</p>
|
||||
<p>Check if the path is a connected curve set.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><p><strong>a_path</strong> (<a class="reference internal" href="#pylib.data_step_std.PATH" title="pylib.data_step_std.PATH"><em>PATH</em></a>) – STEP Standard TYPE path</p>
|
||||
<dd class="field-odd"><p><strong>a_path</strong> (<a class="reference internal" href="#pylib.data_step_std.PATH" title="pylib.data_step_std.PATH"><em>PATH</em></a>) – </p>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>p</p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>object</p>
|
||||
<dd class="field-odd"><p>LOGICAL</p>
|
||||
</dd>
|
||||
<dt class="field-even">Variables</dt>
|
||||
<dd class="field-even"><p><strong>p</strong> – STEP STEP Standard TYPE LOGICAL</p>
|
||||
<dd class="field-even"><p><strong>p</strong> – </p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="admonition seealso">
|
||||
@@ -962,7 +1219,28 @@ dimension_count > 0</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.date.html
vendored
23
docs/build/html/pylib.date.html
vendored
@@ -183,7 +183,28 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.drawblock.html
vendored
23
docs/build/html/pylib.drawblock.html
vendored
@@ -86,7 +86,28 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
65
docs/build/html/pylib.function.html
vendored
65
docs/build/html/pylib.function.html
vendored
@@ -47,26 +47,29 @@
|
||||
<dt id="pylib.function.b_spline_basis">
|
||||
<code class="sig-name descname">b_spline_basis</code><span class="sig-paren">(</span><em class="sig-param">knots</em>, <em class="sig-param">knot_span</em>, <em class="sig-param">degree</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/function.html#b_spline_basis"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.function.b_spline_basis" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Cox-de Boor algorithm / recursion formula.</p>
|
||||
<p>Calculate the i-th B-spline basis function of degree p: N_{i,p}(u)</p>
|
||||
<p>Calculate the i-th B-spline basis function of degree p:
|
||||
<span class="math notranslate nohighlight">\(N_{i,p}(u)\)</span></p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
<li><p><strong>knots</strong> (<em>list</em>) – Knot vector U. m + 1 non-decreasing numbers / knots,
|
||||
<span class="math notranslate nohighlight">\(u_0 <= u_1 <= u_2 <= ... <= u_m\)</span></p></li>
|
||||
<span class="math notranslate nohighlight">\(u_0 \le u_1 \le u_2 \le \dots \le u_m\)</span></p></li>
|
||||
<li><p><strong>knot_span</strong> (<em>int</em>) – i-th knot span</p></li>
|
||||
<li><p><strong>degree</strong> (<em>int</em>) – degree of B-spline basis function</p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>B-spline basis function using variable, u in [u_0, u_m]</p>
|
||||
<dd class="field-even"><p>B-spline basis function using variable,
|
||||
<span class="math notranslate nohighlight">\(u \in [u_0, u_m]\)</span></p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>function</p>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="math notranslate nohighlight">
|
||||
\[\begin{split}N_{i,0}(u) &= \begin{cases} 1 & \text{if } u_i \le u \lt u_{i+1} \\
|
||||
0 & \text{otherwise}\end{cases} \\
|
||||
\[\begin{split}N_{i,0}(u) &= \begin{cases}
|
||||
1 & \text{if } u_i \le u \lt u_{i+1} \\
|
||||
0 & \text{otherwise}\end{cases} \\
|
||||
N_{i,p}(u) &= \frac{u - u_i}{u_{i+p} - u_i} N_{i,p-1}(u) +
|
||||
\frac{u_{i+p+1} - u}{u_{i+p+1} - u_{i+1}} N_{i+1,p-1}(u)\end{split}\]</div>
|
||||
</dd></dl>
|
||||
@@ -82,11 +85,11 @@ N_{i,p}(u) &= \frac{u - u_i}{u_{i+p} - u_i} N_{i,p-1}(u) +
|
||||
<li><p><strong>degree</strong> (<em>int</em>) – degree of B-spline basis functions</p></li>
|
||||
<li><p><strong>control_points</strong> (<em>list</em>) – control points P, n + 1 control points</p></li>
|
||||
<li><p><strong>knots</strong> (<em>list</em>) – Knot vector U. m + 1 non-decreasing numbers / knots,
|
||||
<span class="math notranslate nohighlight">\(u_0 <= u_1 <= u_2 <= ... <= u_m\)</span></p></li>
|
||||
<span class="math notranslate nohighlight">\(u_0 \le u_1 \le u_2 \le \dots \le u_m\)</span></p></li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="field-even">Returns</dt>
|
||||
<dd class="field-even"><p>B-spline curve using variable, u in [u_0, u_m]</p>
|
||||
<dd class="field-even"><p>B-spline curve using variable, <span class="math notranslate nohighlight">\(u \in [u_0, u_m]\)</span></p>
|
||||
</dd>
|
||||
<dt class="field-odd">Return type</dt>
|
||||
<dd class="field-odd"><p>function</p>
|
||||
@@ -100,10 +103,11 @@ N_{i,p}(u) &= \frac{u - u_i}{u_{i+p} - u_i} N_{i,p-1}(u) +
|
||||
<li><p>the curve will not touch the first and last legs of the
|
||||
control polyline</p></li>
|
||||
<li><p>the knot vector does not have any particular structure</p></li>
|
||||
<li><p>for degree p, intervals [u_0, u_p) and [u_{n-p}, u_n) will not
|
||||
have “full support” of basis functions and are ignored when a
|
||||
B-spline curve is open. For open B-spline curves, the domain
|
||||
is inteval [u_p, u_{n-p}]</p></li>
|
||||
<li><p>for degree p, intervals <span class="math notranslate nohighlight">\([u_0, u_p)\)</span> and
|
||||
<span class="math notranslate nohighlight">\([u_{n-p}, u_n)\)</span> will not have “full support” of basis
|
||||
functions and are ignored when a B-spline curve is open. For
|
||||
open B-spline curves, the domain is inteval
|
||||
<span class="math notranslate nohighlight">\([u_p, u_{n-p}]\)</span></p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p>clamped B-spline curves, nonperiodic B-spline curves</p>
|
||||
@@ -118,7 +122,7 @@ a Bézier curve</p></li>
|
||||
<ul>
|
||||
<li><p>the start and the end of the generated curve join together
|
||||
forming a closed loop</p></li>
|
||||
<li><p>repeating some knots and control points # TODO: which?</p></li>
|
||||
<li><p>repeating some knots and control points (TODO: which?)</p></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><p>uniform B-spline curves</p>
|
||||
@@ -202,10 +206,10 @@ y(\theta) = r\sin\theta \\
|
||||
<dt id="pylib.function.cosine_wave">
|
||||
<code class="sig-name descname">cosine_wave</code><span class="sig-paren">(</span><em class="sig-param">A=1</em>, <em class="sig-param">k=1</em>, <em class="sig-param">f=1</em>, <em class="sig-param">phi=0</em>, <em class="sig-param">D=0</em>, <em class="sig-param">degree=False</em><span class="sig-paren">)</span><a class="reference internal" href="_modules/pylib/function.html#cosine_wave"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#pylib.function.cosine_wave" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>A cosine wave is said to be sinusoidal, because,
|
||||
<span class="math notranslate nohighlight">\(\cos(x) = \sin(x + \pi/2)\)</span>, which is also a sine wave with a
|
||||
phase-shift of π/2 radians. Because of this head start, it is often
|
||||
said that the cosine function leads the sine function or the sine
|
||||
lags the cosine.</p>
|
||||
<span class="math notranslate nohighlight">\(\cos(x) = \sin(x + \pi/2)\)</span>, which is also a sine wave with
|
||||
a phase-shift of π/2 radians. Because of this head start, it is
|
||||
often said that the cosine function leads the sine function or
|
||||
the sine lags the cosine.</p>
|
||||
<dl class="field-list simple">
|
||||
<dt class="field-odd">Parameters</dt>
|
||||
<dd class="field-odd"><ul class="simple">
|
||||
@@ -363,9 +367,9 @@ y(\theta) = (R - r)\sin\theta - d\sin\left(\frac{R-r}{r}\theta\right) \\
|
||||
<span class="o">*</span> <span class="o">*</span> <span class="o">*</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">hyotrochoid</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">)[:</span><span class="mi">2</span><span class="p">]</span>
|
||||
<span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">hyotrochoid</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">)</span>
|
||||
<span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">interval</span> <span class="o">=</span> <span class="n">hyotrochoid</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">)</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">hypotrochoid</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">)[:</span><span class="mi">2</span><span class="p">]</span>
|
||||
<span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">hypotrochoid</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">)</span>
|
||||
<span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">,</span> <span class="n">interval</span> <span class="o">=</span> <span class="n">hypotrochoid</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">6</span><span class="p">)</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="admonition seealso">
|
||||
@@ -625,7 +629,28 @@ Example of 3 columns and 3 rows (upside down view of ‘normal’ braille/drawil
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.geometry.html
vendored
23
docs/build/html/pylib.geometry.html
vendored
@@ -420,7 +420,28 @@ The Wireframe class create its own points (copy).</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
25
docs/build/html/pylib.geometry2d.html
vendored
25
docs/build/html/pylib.geometry2d.html
vendored
@@ -235,7 +235,7 @@ x = s\,L + x_1\end{split}\]</div>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="o">=</span> <span class="n">line</span><span class="p">((</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">),</span> <span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="mi">0</span><span class="p">))</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span>
|
||||
<span class="go">((0, 1), (0, 0))</span>
|
||||
<span class="go">(0, 1) (0, 0)</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
@@ -467,7 +467,28 @@ around a given origin. The angle should be given in radians.</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.geometry2d_plot.html
vendored
23
docs/build/html/pylib.geometry2d_plot.html
vendored
@@ -74,7 +74,28 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.geometry_plot.html
vendored
23
docs/build/html/pylib.geometry_plot.html
vendored
@@ -64,7 +64,28 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
23
docs/build/html/pylib.geometry_plot_pylab.html
vendored
23
docs/build/html/pylib.geometry_plot_pylab.html
vendored
@@ -135,7 +135,28 @@ working for 3D.</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
41
docs/build/html/pylib.helper.html
vendored
41
docs/build/html/pylib.helper.html
vendored
@@ -90,18 +90,16 @@ used for the print-out</p>
|
||||
<dt class="field-even">Example</dt>
|
||||
<dd class="field-even"><p></p></dd>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="k">with</span> <span class="n">timeit</span><span class="p">(</span><span class="s1">'section_test'</span><span class="p">):</span>
|
||||
<span class="gp">... </span> <span class="c1"># code</span>
|
||||
<span class="go">section_test took 0.006 ms</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="nd">@timeit</span><span class="p">(</span><span class="s1">'func'</span><span class="p">)</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">with</span> <span class="n">timeit</span><span class="p">(</span><span class="s1">'section_test'</span><span class="p">):</span>
|
||||
<span class="c1"># code</span>
|
||||
<span class="n">section_test</span> <span class="n">took</span> <span class="mf">0.006</span> <span class="n">ms</span>
|
||||
|
||||
<span class="nd">@timeit</span><span class="p">(</span><span class="s1">'func'</span><span class="p">)</span>
|
||||
<span class="k">def</span> <span class="nf">func</span><span class="p">():</span>
|
||||
<span class="c1"># code</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">func</span><span class="p">()</span>
|
||||
<span class="go">func took 0.006 ms</span>
|
||||
|
||||
<span class="n">func</span><span class="p">()</span>
|
||||
<span class="n">func</span> <span class="n">took</span> <span class="mf">0.006</span> <span class="n">ms</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
@@ -128,7 +126,28 @@ used for the print-out</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
26
docs/build/html/pylib.html
vendored
26
docs/build/html/pylib.html
vendored
@@ -97,7 +97,31 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="current reference internal" href="#">pylib package</a><ul>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#subpackages">Subpackages</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.numerical.html">pylib.numerical package</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="#submodules">Submodules</a><ul>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
57
docs/build/html/pylib.mathematics.html
vendored
57
docs/build/html/pylib.mathematics.html
vendored
@@ -61,8 +61,7 @@
|
||||
<dt class="field-odd">Example</dt>
|
||||
<dd class="field-odd"><p></p></dd>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="p">[</span><span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> \
|
||||
<span class="go"> [0, 0, 0, 0]])</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="p">[</span><span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">]])</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">[:])</span>
|
||||
<span class="go">[[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], [0, 0, 0, 0]]</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">[</span><span class="mi">2</span><span class="p">])</span>
|
||||
@@ -103,20 +102,16 @@ for wrong usage (result will be nonsense).</p>
|
||||
<dt class="field-odd">Example</dt>
|
||||
<dd class="field-odd"><p></p></dd>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> <span class="p">[</span><span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">],</span> \
|
||||
<span class="go"> [0, 0, 0, 1]]) * 5</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> <span class="p">[</span><span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">]])</span> <span class="o">*</span> <span class="mi">5</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
|
||||
<span class="go">[[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60], [0, 0, 0, 5]]</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> <span class="p">[</span><span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">],</span> \
|
||||
<span class="go"> [0, 0, 0, 1]]) * 5.</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> <span class="p">[</span><span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">]])</span> <span class="o">*</span> <span class="mf">5.</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
|
||||
<span class="go">[[5.0, 10.0, 15.0, 20.0], [25.0, 30.0, 35.0, 40.0], [45.0, 50.0, 55.0, 60.0], [0.0, 0.0, 0.0, 5.0]]</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">],</span> <span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">]])</span> <span class="o">*</span> \
|
||||
<span class="go"> vector([12, 12, 13])</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">],</span> <span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">]])</span> <span class="o">*</span> <span class="n">vector</span><span class="p">([</span><span class="mi">12</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">])</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
|
||||
<span class="go">[75, 186, 297]</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">],</span> <span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">]])</span> <span class="o">*</span> \
|
||||
<span class="go"> matrix([[12, 12, 13], [14, 15, 16], [17, 18, 19]])</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">],</span> <span class="p">[</span><span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">],</span> <span class="p">[</span><span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">,</span> <span class="mi">9</span><span class="p">]])</span> <span class="o">*</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">12</span><span class="p">,</span> <span class="mi">12</span><span class="p">,</span> <span class="mi">13</span><span class="p">],</span> <span class="p">[</span><span class="mi">14</span><span class="p">,</span> <span class="mi">15</span><span class="p">,</span> <span class="mi">16</span><span class="p">],</span> <span class="p">[</span><span class="mi">17</span><span class="p">,</span> <span class="mi">18</span><span class="p">,</span> <span class="mi">19</span><span class="p">]])</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
|
||||
<span class="go">[[91, 96, 102], [220, 231, 246], [349, 366, 390]]</span>
|
||||
</pre></div>
|
||||
@@ -153,12 +148,10 @@ for wrong usage (result will be nonsense).</p>
|
||||
<dt class="field-odd">Example</dt>
|
||||
<dd class="field-odd"><p></p></dd>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="mi">5</span> <span class="o">*</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> \
|
||||
<span class="go"> [9, 10, 11, 12], [0, 0, 0, 1]])</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="mi">5</span> <span class="o">*</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> <span class="p">[</span><span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">]])</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
|
||||
<span class="go">[[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60], [0, 0, 0, 5]]</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="mf">5.</span> <span class="o">*</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> \
|
||||
<span class="go"> [9, 10, 11, 12], [0, 0, 0, 1]])</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="mf">5.</span> <span class="o">*</span> <span class="n">matrix</span><span class="p">([[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">5</span><span class="p">,</span> <span class="mi">6</span><span class="p">,</span> <span class="mi">7</span><span class="p">,</span> <span class="mi">8</span><span class="p">],</span> <span class="p">[</span><span class="mi">9</span><span class="p">,</span> <span class="mi">10</span><span class="p">,</span> <span class="mi">11</span><span class="p">,</span> <span class="mi">12</span><span class="p">],</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">]])</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">m</span><span class="p">)</span>
|
||||
<span class="go">[[5.0, 10.0, 15.0, 20.0], [25.0, 30.0, 35.0, 40.0], [45.0, 50.0, 55.0, 60.0], [0.0, 0.0, 0.0, 5.0]]</span>
|
||||
</pre></div>
|
||||
@@ -538,7 +531,7 @@ filled with zeros.</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">m</span> <span class="o">=</span> <span class="n">vector</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">])</span>
|
||||
<span class="gp">>>> </span><span class="n">m</span> <span class="o">*=</span> <span class="n">vector</span><span class="p">([</span><span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">3</span><span class="p">])</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
|
||||
<span class="go">[[3, 3, 3], [6, 6, 6], [9, 9, 9]]</span>
|
||||
<span class="go">18</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<dl class="method">
|
||||
@@ -604,7 +597,7 @@ other object.</p>
|
||||
<dd class="field-odd"><p></p></dd>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">vector</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">])</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span><span class="p">[</span><span class="mi">1</span><span class="p">:</span><span class="mi">3</span><span class="p">]</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">v</span><span class="p">[</span><span class="mi">1</span><span class="p">:</span><span class="mi">3</span><span class="p">])</span>
|
||||
<span class="go">[2, 3]</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">vector</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">3</span><span class="p">,</span> <span class="mi">4</span><span class="p">,</span> <span class="mi">5</span><span class="p">])</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span><span class="p">[</span><span class="mi">3</span><span class="p">]</span>
|
||||
@@ -994,12 +987,15 @@ numbers.</p>
|
||||
<dt class="field-even">Example</dt>
|
||||
<dd class="field-even"><p></p></dd>
|
||||
</dl>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">vector</span><span class="o">.</span><span class="n">random</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="kn">import</span> <span class="nn">random</span>
|
||||
<span class="gp">>>> </span><span class="n">random</span><span class="o">.</span><span class="n">seed</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">vector</span><span class="o">.</span><span class="n">random</span><span class="p">(</span><span class="mi">3</span><span class="p">)</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
|
||||
<span class="go">[0.9172905912930438, 0.8908124278322492, 0.5256002790725927]</span>
|
||||
<span class="go">[0.13436424411240122, 0.8474337369372327, 0.763774618976614]</span>
|
||||
<span class="gp">>>> </span><span class="n">random</span><span class="o">.</span><span class="n">seed</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span>
|
||||
<span class="gp">>>> </span><span class="n">v</span> <span class="o">=</span> <span class="n">vector</span><span class="o">.</span><span class="n">random</span><span class="p">(</span><span class="mi">3</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
|
||||
<span class="gp">>>> </span><span class="nb">print</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
|
||||
<span class="go">[1.2563665665080803, 1.9270454509964547, 1.2381672401270487]</span>
|
||||
<span class="go">[1.134364244112401, 1.8474337369372327, 1.7637746189766141]</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
</dd></dl>
|
||||
@@ -1135,7 +1131,28 @@ where it should be.</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
18
docs/build/html/pylib.numerical.fit.html
vendored
18
docs/build/html/pylib.numerical.fit.html
vendored
@@ -128,7 +128,23 @@ amplitude a, expected value <span class="math notranslate nohighlight">\(\mu\)</
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a><ul class="current">
|
||||
<li class="toctree-l4 current"><a class="reference internal" href="pylib.numerical.html">pylib.numerical package</a><ul class="current">
|
||||
<li class="toctree-l5 current"><a class="reference internal" href="pylib.numerical.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l6 current"><a class="current reference internal" href="#">pylib.numerical.fit module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.integration.html">pylib.numerical.integration module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode.html">pylib.numerical.ode module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode_model.html">pylib.numerical.ode_model module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#submodules">Submodules</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
18
docs/build/html/pylib.numerical.html
vendored
18
docs/build/html/pylib.numerical.html
vendored
@@ -69,7 +69,23 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a><ul class="current">
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.numerical package</a><ul>
|
||||
<li class="toctree-l5"><a class="reference internal" href="#submodules">Submodules</a><ul>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.fit.html">pylib.numerical.fit module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.integration.html">pylib.numerical.integration module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode.html">pylib.numerical.ode module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode_model.html">pylib.numerical.ode_model module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#submodules">Submodules</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
20
docs/build/html/pylib.numerical.integration.html
vendored
20
docs/build/html/pylib.numerical.integration.html
vendored
@@ -111,7 +111,7 @@ b &= 1\end{split}\]</div>
|
||||
= \left. \frac{1}{3} x^3 \right\vert_0^1
|
||||
= \frac{1}{3}\]</div>
|
||||
<p>numerical solution</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">f</span> <span class="o">=</span> <span class="k">lambda</span><span class="p">(</span><span class="n">x</span><span class="p">):</span> <span class="n">x</span><span class="o">**</span><span class="mi">2</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">>>> </span><span class="n">f</span> <span class="o">=</span> <span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">x</span><span class="o">**</span><span class="mi">2</span>
|
||||
<span class="gp">>>> </span><span class="n">trapez</span><span class="p">(</span><span class="n">f</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">1</span><span class="p">)</span>
|
||||
<span class="go">0.5</span>
|
||||
<span class="gp">>>> </span><span class="n">trapez</span><span class="p">(</span><span class="n">f</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">1</span><span class="p">,</span> <span class="mi">10</span><span class="p">)</span>
|
||||
@@ -144,7 +144,23 @@ b &= 1\end{split}\]</div>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a><ul class="current">
|
||||
<li class="toctree-l4 current"><a class="reference internal" href="pylib.numerical.html">pylib.numerical package</a><ul class="current">
|
||||
<li class="toctree-l5 current"><a class="reference internal" href="pylib.numerical.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.fit.html">pylib.numerical.fit module</a></li>
|
||||
<li class="toctree-l6 current"><a class="current reference internal" href="#">pylib.numerical.integration module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode.html">pylib.numerical.ode module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode_model.html">pylib.numerical.ode_model module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#submodules">Submodules</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
18
docs/build/html/pylib.numerical.ode.html
vendored
18
docs/build/html/pylib.numerical.ode.html
vendored
@@ -327,7 +327,23 @@ t &\in [t_0, t_n]\end{split}\]</div>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a><ul class="current">
|
||||
<li class="toctree-l4 current"><a class="reference internal" href="pylib.numerical.html">pylib.numerical package</a><ul class="current">
|
||||
<li class="toctree-l5 current"><a class="reference internal" href="pylib.numerical.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.fit.html">pylib.numerical.fit module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.integration.html">pylib.numerical.integration module</a></li>
|
||||
<li class="toctree-l6 current"><a class="current reference internal" href="#">pylib.numerical.ode module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode_model.html">pylib.numerical.ode_model module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#submodules">Submodules</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
18
docs/build/html/pylib.numerical.ode_model.html
vendored
18
docs/build/html/pylib.numerical.ode_model.html
vendored
@@ -178,7 +178,23 @@ system of 3x2 first-order differential equations.</p>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a><ul class="current">
|
||||
<li class="toctree-l4 current"><a class="reference internal" href="pylib.numerical.html">pylib.numerical package</a><ul class="current">
|
||||
<li class="toctree-l5 current"><a class="reference internal" href="pylib.numerical.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.fit.html">pylib.numerical.fit module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.integration.html">pylib.numerical.integration module</a></li>
|
||||
<li class="toctree-l6"><a class="reference internal" href="pylib.numerical.ode.html">pylib.numerical.ode module</a></li>
|
||||
<li class="toctree-l6 current"><a class="current reference internal" href="#">pylib.numerical.ode_model module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#submodules">Submodules</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
25
docs/build/html/pylib.time_of_day.html
vendored
25
docs/build/html/pylib.time_of_day.html
vendored
@@ -16,6 +16,7 @@
|
||||
<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.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="pylib.tui module" href="pylib.tui.html" />
|
||||
<link rel="prev" title="pylib.mathematics module" href="pylib.mathematics.html" />
|
||||
|
||||
<link rel="stylesheet" href="_static/custom.css" type="text/css" />
|
||||
@@ -237,7 +238,28 @@
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.tui.html">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -249,6 +271,7 @@
|
||||
<li><a href="modules.html">pylib</a><ul>
|
||||
<li><a href="pylib.html">pylib package</a><ul>
|
||||
<li>Previous: <a href="pylib.mathematics.html" title="previous chapter">pylib.mathematics module</a></li>
|
||||
<li>Next: <a href="pylib.tui.html" title="next chapter">pylib.tui module</a></li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
</ul></li>
|
||||
|
||||
23
docs/build/html/pylib.tui.html
vendored
23
docs/build/html/pylib.tui.html
vendored
@@ -265,7 +265,28 @@ the left.</p></li>
|
||||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||||
<ul class="current">
|
||||
<li class="toctree-l1 current"><a class="reference internal" href="modules.html">pylib</a><ul class="current">
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a></li>
|
||||
<li class="toctree-l2 current"><a class="reference internal" href="pylib.html">pylib package</a><ul class="current">
|
||||
<li class="toctree-l3"><a class="reference internal" href="pylib.html#subpackages">Subpackages</a></li>
|
||||
<li class="toctree-l3 current"><a class="reference internal" href="pylib.html#submodules">Submodules</a><ul class="current">
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data.html">pylib.data module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step.html">pylib.data_step module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.data_step_std.html">pylib.data_step_std module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.date.html">pylib.date module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.drawblock.html">pylib.drawblock module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.function.html">pylib.function module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry.html">pylib.geometry module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d.html">pylib.geometry2d module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry2d_plot.html">pylib.geometry2d_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot.html">pylib.geometry_plot module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.geometry_plot_pylab.html">pylib.geometry_plot_pylab module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.helper.html">pylib.helper module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.mathematics.html">pylib.mathematics module</a></li>
|
||||
<li class="toctree-l4"><a class="reference internal" href="pylib.time_of_day.html">pylib.time_of_day module</a></li>
|
||||
<li class="toctree-l4 current"><a class="current reference internal" href="#">pylib.tui module</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
2
docs/build/html/searchindex.js
vendored
2
docs/build/html/searchindex.js
vendored
File diff suppressed because one or more lines are too long
267
docs/source/_static/class_diagram.svg
Normal file
267
docs/source/_static/class_diagram.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 82 KiB |
@@ -34,8 +34,9 @@ release = '2019.12.21'
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
'sphinx.ext.autodoc',
|
||||
'sphinx.ext.autodoc', # see also autodoc_default_options below
|
||||
'sphinx.ext.viewcode',
|
||||
'sphinx.ext.doctest', # see also doctest_global_setup below
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
@@ -92,3 +93,11 @@ html_theme_options = {
|
||||
autodoc_default_options = {
|
||||
'special-members': '__iter__, __contains__, __getitem__, __setitem__, __pos__, __neg__, __add__, __iadd__, __sub__, __isub__, __mul__, __rmul__, __imul__, __matmul__, __imatmul__, __abs__, __lt__, __le__, __gt__, __ge__, __eq__, __ne__, __str__, __repr__'
|
||||
}
|
||||
|
||||
doctest_global_setup = '''
|
||||
from pylib.data import *
|
||||
from pylib.mathematics import *
|
||||
from pylib.function import *
|
||||
from pylib.numerical.integration import *
|
||||
from pylib.geometry2d import *
|
||||
'''
|
||||
|
||||
@@ -7,7 +7,7 @@ Welcome to pylib's documentation!
|
||||
=================================
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 2
|
||||
:maxdepth: 6
|
||||
:caption: Contents:
|
||||
|
||||
modules
|
||||
@@ -22,15 +22,20 @@ Indices and tables
|
||||
* :ref:`search`
|
||||
|
||||
|
||||
``data_step_std``
|
||||
-----------------
|
||||
.. image:: _static/class_diagram.svg
|
||||
:target: _images/class_diagram.svg
|
||||
|
||||
tui
|
||||
---
|
||||
|
||||
pylib/tui.py is the main module for tui 'terminal user interface' programs.
|
||||
``tui``
|
||||
-------
|
||||
|
||||
* curses package (for Windows install windows-curses) is the underlying main
|
||||
package to build terminal programs. The curses package can also be used
|
||||
directly.
|
||||
``pylib/tui.py`` is the main module for tui 'textual user interface' programs.
|
||||
|
||||
* ``curses`` package (for Windows install ``windows-curses``) is the underlying
|
||||
main package to build terminal programs. The ``curses`` package can also be
|
||||
used directly.
|
||||
|
||||
* Windows (Anaconda):
|
||||
|
||||
@@ -38,9 +43,9 @@ pylib/tui.py is the main module for tui 'terminal user interface' programs.
|
||||
* ``python -m pip install windows-curses``
|
||||
* https://github.com/zephyrproject-rtos/windows-curses
|
||||
|
||||
* drawille package is used to draw with braille characters (dottet and quasi-
|
||||
line charts). Make sure you use a font with Unicode Braille characters. For
|
||||
Windows e. g.: NSimSun, MS Gothic.
|
||||
* ``drawille`` package is used to draw with braille characters (dottet and
|
||||
quasi-line charts). Make sure you use a font with Unicode Braille characters.
|
||||
For Windows e. g.: NSimSun, MS Gothic.
|
||||
|
||||
* Install: ``python -m pip install drawille``
|
||||
* Windows (Anaconda):
|
||||
@@ -48,6 +53,5 @@ pylib/tui.py is the main module for tui 'terminal user interface' programs.
|
||||
* ``C:\PathToAnaconda3\condabin\conda.bat activate base``
|
||||
* ``python -m pip install drawille``
|
||||
|
||||
* drawblock.py is used to draw with block characters (histogram).
|
||||
|
||||
example/tui.py is an example script to build a terminal program.
|
||||
* ``drawblock`` is used to draw with block characters (histogram).
|
||||
* ``example/tui.py`` is an example script to build a terminal program.
|
||||
|
||||
@@ -309,6 +309,26 @@ def str_between(text, left, right):
|
||||
except:
|
||||
return ''
|
||||
|
||||
def strs_between(text, left, right):
|
||||
"""Get text between two pattern.
|
||||
|
||||
Text can be multi-line.
|
||||
|
||||
:param text: text to search in
|
||||
:type text: str
|
||||
:param left: left pattern
|
||||
:type left: str
|
||||
:param right: right pattern
|
||||
:type right: str
|
||||
|
||||
:returns: text between the left and right pattern
|
||||
:rtype: str
|
||||
"""
|
||||
try:
|
||||
return re.findall(left+'(.+?)'+right, text, re.DOTALL)
|
||||
except:
|
||||
return ''
|
||||
|
||||
def str_to_list(string, delimiter=';\n', newline_replacement=''):
|
||||
r"""Converts a string with block information into a list.
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -124,10 +124,10 @@ def sine_wave(A=1, k=1, f=1, phi=0, D=0, degree=False):
|
||||
|
||||
def cosine_wave(A=1, k=1, f=1, phi=0, D=0, degree=False):
|
||||
r"""A cosine wave is said to be sinusoidal, because,
|
||||
:math:`\cos(x) = \sin(x + \pi/2)`, which is also a sine wave with a
|
||||
phase-shift of π/2 radians. Because of this head start, it is often
|
||||
said that the cosine function leads the sine function or the sine
|
||||
lags the cosine.
|
||||
:math:`\cos(x) = \sin(x + \pi/2)`, which is also a sine wave with
|
||||
a phase-shift of π/2 radians. Because of this head start, it is
|
||||
often said that the cosine function leads the sine function or
|
||||
the sine lags the cosine.
|
||||
|
||||
:param A: amplitude
|
||||
:type A: float or int
|
||||
@@ -160,22 +160,25 @@ def cosine_wave(A=1, k=1, f=1, phi=0, D=0, degree=False):
|
||||
def b_spline_basis(knots, knot_span, degree):
|
||||
r"""Cox-de Boor algorithm / recursion formula.
|
||||
|
||||
Calculate the i-th B-spline basis function of degree p: N_{i,p}(u)
|
||||
Calculate the i-th B-spline basis function of degree p:
|
||||
:math:`N_{i,p}(u)`
|
||||
|
||||
:param knots: Knot vector U. m + 1 non-decreasing numbers / knots,
|
||||
:math:`u_0 <= u_1 <= u_2 <= ... <= u_m`
|
||||
:math:`u_0 \le u_1 \le u_2 \le \dots \le u_m`
|
||||
:type knots: list
|
||||
:param knot_span: i-th knot span
|
||||
:type knot_span: int
|
||||
:param degree: degree of B-spline basis function
|
||||
:type degree: int
|
||||
|
||||
:returns: B-spline basis function using variable, u \in [u_0, u_m]
|
||||
:returns: B-spline basis function using variable,
|
||||
:math:`u \in [u_0, u_m]`
|
||||
:rtype: function
|
||||
|
||||
.. math::
|
||||
N_{i,0}(u) &= \begin{cases} 1 & \text{if } u_i \le u \lt u_{i+1} \\
|
||||
0 & \text{otherwise}\end{cases} \\
|
||||
N_{i,0}(u) &= \begin{cases}
|
||||
1 & \text{if } u_i \le u \lt u_{i+1} \\
|
||||
0 & \text{otherwise}\end{cases} \\
|
||||
N_{i,p}(u) &= \frac{u - u_i}{u_{i+p} - u_i} N_{i,p-1}(u) +
|
||||
\frac{u_{i+p+1} - u}{u_{i+p+1} - u_{i+1}} N_{i+1,p-1}(u)
|
||||
|
||||
@@ -242,10 +245,10 @@ def b_spline_curve_with_knots(degree, control_points, knots):
|
||||
:param control_points: control points P, n + 1 control points
|
||||
:type control_points: list
|
||||
:param knots: Knot vector U. m + 1 non-decreasing numbers / knots,
|
||||
:math:`u_0 <= u_1 <= u_2 <= ... <= u_m`
|
||||
:math:`u_0 \le u_1 \le u_2 \le \dots \le u_m`
|
||||
:type knots: list
|
||||
|
||||
:returns: B-spline curve using variable, u \in [u_0, u_m]
|
||||
:returns: B-spline curve using variable, :math:`u \in [u_0, u_m]`
|
||||
:rtype: function
|
||||
|
||||
.. math::
|
||||
@@ -256,10 +259,11 @@ def b_spline_curve_with_knots(degree, control_points, knots):
|
||||
* the curve will not touch the first and last legs of the
|
||||
control polyline
|
||||
* the knot vector does not have any particular structure
|
||||
* for degree p, intervals [u_0, u_p) and [u_{n-p}, u_n) will not
|
||||
have "full support" of basis functions and are ignored when a
|
||||
B-spline curve is open. For open B-spline curves, the domain
|
||||
is inteval [u_p, u_{n-p}]
|
||||
* for degree p, intervals :math:`[u_0, u_p)` and
|
||||
:math:`[u_{n-p}, u_n)` will not have "full support" of basis
|
||||
functions and are ignored when a B-spline curve is open. For
|
||||
open B-spline curves, the domain is inteval
|
||||
:math:`[u_p, u_{n-p}]`
|
||||
|
||||
* clamped B-spline curves, nonperiodic B-spline curves
|
||||
|
||||
@@ -272,7 +276,7 @@ def b_spline_curve_with_knots(degree, control_points, knots):
|
||||
|
||||
* the start and the end of the generated curve join together
|
||||
forming a closed loop
|
||||
* repeating some knots and control points # TODO: which?
|
||||
* repeating some knots and control points (TODO: which?)
|
||||
|
||||
* uniform B-spline curves
|
||||
|
||||
@@ -413,9 +417,9 @@ def hypotrochoid(R, r, d):
|
||||
* *
|
||||
* * *
|
||||
|
||||
>>> x, y = hyotrochoid(20, 6, 6)[:2]
|
||||
>>> x, y, _ = hyotrochoid(20, 6, 6)
|
||||
>>> x, y, interval = hyotrochoid(20, 6, 6)
|
||||
>>> x, y = hypotrochoid(20, 6, 6)[:2]
|
||||
>>> x, y, _ = hypotrochoid(20, 6, 6)
|
||||
>>> x, y, interval = hypotrochoid(20, 6, 6)
|
||||
|
||||
.. seealso::
|
||||
:meth:`pylib.mathematics.lcm`
|
||||
|
||||
@@ -438,7 +438,7 @@ def line(point1, point2, samples=2):
|
||||
|
||||
>>> x, y = line((0, 0), (1, 0))
|
||||
>>> print(x, y)
|
||||
((0, 1), (0, 0))
|
||||
(0, 1) (0, 0)
|
||||
"""
|
||||
p1x, p1y = point1
|
||||
p2x, p2y = point2
|
||||
|
||||
@@ -23,18 +23,18 @@ class timeit(ContextDecorator):
|
||||
|
||||
:Example:
|
||||
|
||||
>>> with timeit('section_test'):
|
||||
... # code
|
||||
section_test took 0.006 ms
|
||||
|
||||
::
|
||||
|
||||
with timeit('section_test'):
|
||||
# code
|
||||
section_test took 0.006 ms
|
||||
|
||||
@timeit('func')
|
||||
def func():
|
||||
# code
|
||||
|
||||
>>> func()
|
||||
func took 0.006 ms
|
||||
func()
|
||||
func took 0.006 ms
|
||||
"""
|
||||
def __init__(self, description=None):
|
||||
self.description = description
|
||||
|
||||
@@ -79,7 +79,7 @@ class vector(list):
|
||||
>>> m = vector([1, 2, 3])
|
||||
>>> m *= vector([3, 3, 3])
|
||||
>>> print(v)
|
||||
[[3, 3, 3], [6, 6, 6], [9, 9, 9]]
|
||||
18
|
||||
"""
|
||||
|
||||
def __getitem__(self, index):
|
||||
@@ -89,7 +89,7 @@ class vector(list):
|
||||
:Example:
|
||||
|
||||
>>> v = vector([1, 2, 3, 4, 5])
|
||||
>>> v[1:3]
|
||||
>>> print(v[1:3])
|
||||
[2, 3]
|
||||
>>> v = vector([1, 2, 3, 4, 5])
|
||||
>>> v[3]
|
||||
@@ -405,12 +405,15 @@ class vector(list):
|
||||
|
||||
:Example:
|
||||
|
||||
>>> import random
|
||||
>>> random.seed(1)
|
||||
>>> v = vector.random(3)
|
||||
>>> print(v)
|
||||
[0.9172905912930438, 0.8908124278322492, 0.5256002790725927]
|
||||
[0.13436424411240122, 0.8474337369372327, 0.763774618976614]
|
||||
>>> random.seed(1)
|
||||
>>> v = vector.random(3, 1, 2)
|
||||
>>> print(v)
|
||||
[1.2563665665080803, 1.9270454509964547, 1.2381672401270487]
|
||||
[1.134364244112401, 1.8474337369372327, 1.7637746189766141]
|
||||
"""
|
||||
import random
|
||||
dl = lmax-lmin
|
||||
@@ -638,8 +641,7 @@ class matrix(list):
|
||||
|
||||
:Example:
|
||||
|
||||
>>> m = matrix([[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], \
|
||||
[0, 0, 0, 0]])
|
||||
>>> m = matrix([[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], [0, 0, 0, 0]])
|
||||
>>> print(m[:])
|
||||
[[1, 2, 3, 0], [4, 5, 6, 0], [7, 8, 9, 0], [0, 0, 0, 0]]
|
||||
>>> print(m[2])
|
||||
@@ -702,20 +704,16 @@ class matrix(list):
|
||||
|
||||
:Example:
|
||||
|
||||
>>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], \
|
||||
[0, 0, 0, 1]]) * 5
|
||||
>>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]]) * 5
|
||||
>>> print(m)
|
||||
[[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60], [0, 0, 0, 5]]
|
||||
>>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], \
|
||||
[0, 0, 0, 1]]) * 5.
|
||||
>>> m = matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]]) * 5.
|
||||
>>> print(m)
|
||||
[[5.0, 10.0, 15.0, 20.0], [25.0, 30.0, 35.0, 40.0], [45.0, 50.0, 55.0, 60.0], [0.0, 0.0, 0.0, 5.0]]
|
||||
>>> v = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * \
|
||||
vector([12, 12, 13])
|
||||
>>> v = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * vector([12, 12, 13])
|
||||
>>> print(v)
|
||||
[75, 186, 297]
|
||||
>>> m = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * \
|
||||
matrix([[12, 12, 13], [14, 15, 16], [17, 18, 19]])
|
||||
>>> m = matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) * matrix([[12, 12, 13], [14, 15, 16], [17, 18, 19]])
|
||||
>>> print(m)
|
||||
[[91, 96, 102], [220, 231, 246], [349, 366, 390]]
|
||||
|
||||
@@ -749,12 +747,10 @@ class matrix(list):
|
||||
|
||||
:Example:
|
||||
|
||||
>>> m = 5 * matrix([[1, 2, 3, 4], [5, 6, 7, 8], \
|
||||
[9, 10, 11, 12], [0, 0, 0, 1]])
|
||||
>>> m = 5 * matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]])
|
||||
>>> print(m)
|
||||
[[5, 10, 15, 20], [25, 30, 35, 40], [45, 50, 55, 60], [0, 0, 0, 5]]
|
||||
>>> m = 5. * matrix([[1, 2, 3, 4], [5, 6, 7, 8], \
|
||||
[9, 10, 11, 12], [0, 0, 0, 1]])
|
||||
>>> m = 5. * matrix([[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [0, 0, 0, 1]])
|
||||
>>> print(m)
|
||||
[[5.0, 10.0, 15.0, 20.0], [25.0, 30.0, 35.0, 40.0], [45.0, 50.0, 55.0, 60.0], [0.0, 0.0, 0.0, 5.0]]
|
||||
|
||||
|
||||
@@ -97,7 +97,7 @@ def trapez(f, a=0, b=1, N=10, x=None, verbose=False,
|
||||
|
||||
numerical solution
|
||||
|
||||
>>> f = lambda(x): x**2
|
||||
>>> f = lambda x: x**2
|
||||
>>> trapez(f, 0, 1, 1)
|
||||
0.5
|
||||
>>> trapez(f, 0, 1, 10)
|
||||
|
||||
@@ -13,29 +13,57 @@ import unittest
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
from pylib.data_step_std import (
|
||||
BOOLEAN,
|
||||
CARTESIAN_POINT,
|
||||
VERTEX_POINT,
|
||||
)
|
||||
|
||||
sys.path.insert(0, os.path.abspath('..'))
|
||||
from pylib.data_step_std import CARTESIAN_POINT, VERTEX_POINT
|
||||
|
||||
|
||||
class TestDataStepStd(unittest.TestCase):
|
||||
|
||||
def test_BOOLEAN(self):
|
||||
self.assertRaises(
|
||||
TypeError,
|
||||
BOOLEAN,
|
||||
)
|
||||
self.assertRaises(
|
||||
ValueError,
|
||||
BOOLEAN,
|
||||
'',
|
||||
)
|
||||
self.assertEqual(
|
||||
BOOLEAN('.T.'),
|
||||
True,
|
||||
)
|
||||
self.assertEqual(
|
||||
BOOLEAN('.F.'),
|
||||
False,
|
||||
)
|
||||
|
||||
#def test_
|
||||
|
||||
def test_multi_objects(self):
|
||||
cp = CARTESIAN_POINT('', (0.E+000, 0.E+000, 0.E+000))
|
||||
#print(cp)
|
||||
self.assertEqual(
|
||||
str(cp),
|
||||
"#1 = CARTESIAN_POINT('', (0.0, 0.0, 0.0))")
|
||||
str(cp),
|
||||
"#1 = CARTESIAN_POINT('', (0.0, 0.0, 0.0))")
|
||||
|
||||
cp2 = eval('CARTESIAN_POINT("j", (0.E+000,0.E+000,0.E+000))')
|
||||
#print(cp2)
|
||||
self.assertEqual(
|
||||
str(cp2),
|
||||
"#2 = CARTESIAN_POINT('j', (0.0, 0.0, 0.0))")
|
||||
str(cp2),
|
||||
"#2 = CARTESIAN_POINT('j', (0.0, 0.0, 0.0))")
|
||||
|
||||
vp = VERTEX_POINT('', cp)
|
||||
#print(vp)
|
||||
self.assertEqual(
|
||||
str(vp),
|
||||
"#3 = VERTEX_POINT('', #1)")
|
||||
str(vp),
|
||||
"#3 = VERTEX_POINT('', #1)")
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user