diff --git a/.github/workflows/c-check.yml b/.github/workflows/c-check.yml index bbfcf29..db306d3 100644 --- a/.github/workflows/c-check.yml +++ b/.github/workflows/c-check.yml @@ -1,3 +1,4 @@ +name: C-Check on: push: branches: [main] diff --git a/.gitignore b/.gitignore index dfea22b..91721c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ # ignore ALL .log files -.ipynb_checkpoints/ -*/.ipynb_checkpoints/ -*/*/.ipynb_checkpoints/ +**.ipynb_checkpoints/ +**/__pycache__ -*.txt -*/*.txt +**.txt + +**.png +**.svg diff --git a/Ableitungsmatrix.ipynb b/Ableitungsmatrix.ipynb index 442f7bc..9732a58 100644 --- a/Ableitungsmatrix.ipynb +++ b/Ableitungsmatrix.ipynb @@ -213,7 +213,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -227,7 +227,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.3" + "version": "3.11.5" } }, "nbformat": 4, diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..389fea3 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Morten Kretschmer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Attractors.ipynb b/Other Attractors.ipynb similarity index 99% rename from Attractors.ipynb rename to Other Attractors.ipynb index b1e5a9e..f9e2be3 100644 --- a/Attractors.ipynb +++ b/Other Attractors.ipynb @@ -256,7 +256,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -270,9 +270,9 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.3" + "version": "3.11.5" } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } diff --git a/README.md b/README.md index 24754fa..2f26c71 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,15 @@ # Lorenz -![Example](lorenz_rk.png) - -![Example](lorenz_euler.png) - -# Compile +## Compile ```bash gcc -o lorenz lorenz.c ``` + +## Example + +![Example](example/lorenz_rk.png) + +![Example](example/lorenz_euler.png) + + diff --git a/environment.yml b/environment.yml new file mode 100644 index 0000000..33d852a --- /dev/null +++ b/environment.yml @@ -0,0 +1,9 @@ +name: lorenz +channels: + - conda-forge +dependencies: + - python=3.11 + - numpy + - matplotlib + - pyyaml + - nose2=0.9.2 diff --git a/dynamik/lorenz_Euler Einschritt.png b/example/lorenz_Euler Einschritt.png similarity index 100% rename from dynamik/lorenz_Euler Einschritt.png rename to example/lorenz_Euler Einschritt.png diff --git a/lorenz_euler.png b/example/lorenz_euler.png similarity index 100% rename from lorenz_euler.png rename to example/lorenz_euler.png diff --git a/lorenz_rk.png b/example/lorenz_rk.png similarity index 100% rename from lorenz_rk.png rename to example/lorenz_rk.png diff --git a/test/.coverage b/test/.coverage new file mode 100644 index 0000000..2465712 Binary files /dev/null and b/test/.coverage differ diff --git a/test/nose2.cfg b/test/nose2.cfg new file mode 100644 index 0000000..84743c4 --- /dev/null +++ b/test/nose2.cfg @@ -0,0 +1,2 @@ +[coverage] +always-on = True