From 4fc4903dc204a295ba9abc863e2e14fd0a4d8d1f Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Wed, 8 Jan 2020 21:59:53 +0100 Subject: [PATCH] change data, mathematics, function, geometry and geometry_plot_pylab. add data_step, data_step_std and helper. add an example and more documentation. inside the data module rename read to read_columns add add new read function to read the whole file as string. add print_list function to print one element per line. add unique_list and unique_list_hashable to reduce the list into a unique list with same order. add find_last, str_between, str_to_list functions. inside the mathematics module for vector add normalized creating a new object (normalize will change the object), isclose and iscloseto, change ang to round internal number. for matrix improve slicing and add transposed creating a new object (transpose will change object). inside the function module add b_spline_basis, b_spline_curve_with_knots and b_spline_knots functions. add sample_hal_open and sample_half_open_seq. add circle and ellipse. inside the geometry module change CS init from using lists to Directions and add new constructor CS.init_xzy using lists. rename Wireframe to Polyline. add classes B_spline_curve_with_knots, Ellipse, ArcCircle, ArcEllipse, ArcBSplineCurveWithKnots. add function sample_half_open to create a list of Points. inside the geometry_plot_pylab module change the help text. add step_and data data_step_std module to read a step file to list and draw the content. add helper module with context manager and decorator timeit to meassure the time for a section or function. add example for b_spline function. --- docs/build/html/.buildinfo | 2 +- docs/build/html/_modules/index.html | 3 + docs/build/html/_modules/pylib/data.html | 142 ++- docs/build/html/_modules/pylib/data_step.html | 785 ++++++++++++ .../html/_modules/pylib/data_step_std.html | 1102 +++++++++++++++++ docs/build/html/_modules/pylib/function.html | 255 +++- docs/build/html/_modules/pylib/geometry.html | 201 ++- .../_modules/pylib/geometry_plot_pylab.html | 15 +- docs/build/html/_modules/pylib/helper.html | 151 +++ .../html/_modules/pylib/mathematics.html | 320 +++-- .../html/_modules/pylib/numerical/ode.html | 100 +- .../_modules/pylib/numerical/ode_model.html | 265 ++-- .../html/_sources/pylib.data_step.rst.txt | 7 + .../html/_sources/pylib.data_step_std.rst.txt | 7 + docs/build/html/_sources/pylib.helper.rst.txt | 7 + docs/build/html/_sources/pylib.rst.txt | 3 + docs/build/html/_static/alabaster.css | 6 +- docs/build/html/_static/custom.css | 7 + docs/build/html/genindex.html | 280 ++++- docs/build/html/modules.html | 8 +- docs/build/html/objects.inv | Bin 1680 -> 2402 bytes docs/build/html/py-modindex.html | 34 + docs/build/html/pylib.data.html | 139 ++- docs/build/html/pylib.data_step.html | 246 ++++ docs/build/html/pylib.data_step_std.html | 1021 +++++++++++++++ docs/build/html/pylib.date.html | 4 +- docs/build/html/pylib.function.html | 235 +++- docs/build/html/pylib.geometry.html | 244 ++-- .../build/html/pylib.geometry_plot_pylab.html | 4 +- docs/build/html/pylib.helper.html | 152 +++ docs/build/html/pylib.html | 8 +- docs/build/html/pylib.mathematics.html | 109 +- docs/build/html/pylib.numerical.ode.html | 43 +- .../build/html/pylib.numerical.ode_model.html | 159 ++- docs/build/html/searchindex.js | 2 +- docs/source/_static/custom.css | 7 + docs/source/conf.py | 5 +- docs/source/pylib.data_step.rst | 7 + docs/source/pylib.data_step_std.rst | 7 + docs/source/pylib.helper.rst | 7 + docs/source/pylib.rst | 3 + examples/function_b_spline.py | 378 ++++++ pylib/data.py | 142 ++- pylib/data_step.py | 682 ++++++++++ pylib/data_step_std.py | 999 +++++++++++++++ pylib/function.py | 255 +++- pylib/geometry.py | 177 ++- pylib/geometry_plot_pylab.py | 15 +- pylib/helper.py | 48 + pylib/mathematics.py | 318 +++-- pylib/numerical/ode.py | 100 +- pylib/numerical/ode_model.py | 265 ++-- tests/test_data.py | 6 +- tests/test_data_step_std.py | 42 + tests/test_mathematics.py | 36 +- tests/test_ode.py | 138 ++- 56 files changed, 8756 insertions(+), 947 deletions(-) create mode 100644 docs/build/html/_modules/pylib/data_step.html create mode 100644 docs/build/html/_modules/pylib/data_step_std.html create mode 100644 docs/build/html/_modules/pylib/helper.html create mode 100644 docs/build/html/_sources/pylib.data_step.rst.txt create mode 100644 docs/build/html/_sources/pylib.data_step_std.rst.txt create mode 100644 docs/build/html/_sources/pylib.helper.rst.txt create mode 100644 docs/build/html/pylib.data_step.html create mode 100644 docs/build/html/pylib.data_step_std.html create mode 100644 docs/build/html/pylib.helper.html create mode 100644 docs/source/pylib.data_step.rst create mode 100644 docs/source/pylib.data_step_std.rst create mode 100644 docs/source/pylib.helper.rst create mode 100755 examples/function_b_spline.py create mode 100644 pylib/data_step.py create mode 100755 pylib/data_step_std.py mode change 100644 => 100755 pylib/function.py create mode 100755 pylib/helper.py create mode 100755 tests/test_data_step_std.py diff --git a/docs/build/html/.buildinfo b/docs/build/html/.buildinfo index 591ca50..d7ef047 100644 --- a/docs/build/html/.buildinfo +++ b/docs/build/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: caf5792fd17da2c604992977d35f1f60 +config: 2580fd671a06d4c76900a6be80ac7ca7 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/build/html/_modules/index.html b/docs/build/html/_modules/index.html index bca247e..d872c66 100644 --- a/docs/build/html/_modules/index.html +++ b/docs/build/html/_modules/index.html @@ -34,6 +34,8 @@

All modules for which code is available

@@ -154,6 +176,28 @@

B

+ @@ -163,29 +207,43 @@
@@ -204,21 +264,35 @@ + - - +