PyFinitDiff 2.0.3.post0__tar.gz → 2.1.2.post0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyfinitdiff-2.1.2.post0/.github/workflows/deploy_anaconda.yml +34 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/workflows/deploy_coverage.yml +1 -1
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/workflows/deploy_documentation.yml +13 -10
- pyfinitdiff-2.0.3.post0/.github/workflows/deploy_workflow.yml → pyfinitdiff-2.1.2.post0/.github/workflows/deploy_pypi.yml +6 -6
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.gitignore +2 -3
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PKG-INFO +53 -28
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/_version.py +2 -2
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/boundaries.py +118 -69
- pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_1D/derivative.py +58 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/diagonals.py +155 -82
- pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_1D/finite_difference.py +238 -0
- pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_1D/utils.py +72 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_2D/boundaries.py +116 -65
- pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_2D/derivative.py +67 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_2D/diagonals.py +122 -78
- pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_2D/finite_difference.py +256 -0
- pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_2D/utils.py +89 -0
- pyfinitdiff-2.1.2.post0/PyFinitDiff/triplet.py +500 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/PKG-INFO +53 -28
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/SOURCES.txt +4 -4
- pyfinitdiff-2.1.2.post0/PyFinitDiff.egg-info/requires.txt +26 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/README.rst +32 -11
- pyfinitdiff-2.1.2.post0/docs/images/logo.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/code.rst +52 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/conf.py +26 -20
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/index.rst +8 -3
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/index.rst +8 -3
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/index.rst +8 -3
- pyfinitdiff-2.1.2.post0/docs/source/gallery/index.rst +12 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_0_001.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_1_001.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_2_001.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_3_001.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_0_thumb.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_1_thumb.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_2_thumb.png +0 -0
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_3_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/index.rst +8 -3
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_0.ipynb +1 -1
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_0.py +1 -3
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_0.py.md5 +1 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_0.rst +4 -6
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_1.ipynb +1 -1
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_1.py +1 -3
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_1.py.md5 +1 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_1.rst +4 -6
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_2.ipynb +1 -1
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_2.py +1 -3
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_2.py.md5 +1 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_2.rst +4 -6
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_3.ipynb +1 -1
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_3.py +1 -3
- pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_3.py.md5 +1 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_3.rst +4 -6
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/sg_execution_times.rst +5 -5
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/index.rst +2 -1
- pyfinitdiff-2.1.2.post0/meta.yaml +67 -0
- pyfinitdiff-2.1.2.post0/pyproject.toml +92 -0
- pyfinitdiff-2.0.3.post0/.coverage +0 -0
- pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_1D/derivative.py +0 -44
- pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_1D/finite_difference.py +0 -189
- pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_1D/utils.py +0 -54
- pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_2D/derivative.py +0 -51
- pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_2D/finite_difference.py +0 -206
- pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_2D/utils.py +0 -68
- pyfinitdiff-2.0.3.post0/PyFinitDiff/triplet.py +0 -221
- pyfinitdiff-2.0.3.post0/PyFinitDiff.egg-info/requires.txt +0 -21
- pyfinitdiff-2.0.3.post0/docs/images/logo.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/code.rst +0 -33
- pyfinitdiff-2.0.3.post0/docs/source/gallery/index.rst +0 -412
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_0_001.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_1_001.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_2_001.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_3_001.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_0_thumb.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_1_thumb.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_2_thumb.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_3_thumb.png +0 -0
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_0.py.md5 +0 -1
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_1.py.md5 +0 -1
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_2.py.md5 +0 -1
- pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_3.py.md5 +0 -1
- pyfinitdiff-2.0.3.post0/pyproject.toml +0 -87
- pyfinitdiff-2.0.3.post0/tests/__init__.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/dependabot.yml +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.readthedocs.yml +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/LICENSE +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/__init__.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/__init__.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/backward.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/central.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/forward.py +0 -0
- {pyfinitdiff-2.0.3.post0/PyFinitDiff/tools → pyfinitdiff-2.1.2.post0/PyFinitDiff}/directories.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/__init__.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_2D/__init__.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/utils.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/dependency_links.txt +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/top_level.txt +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/Makefile +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/README.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/README.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_0.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_1.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_2.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_3.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/README.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_bottom_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_bottom_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_left_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_left_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_no_symmetry.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_right_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_right_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_top_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_top_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/extras/README.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/extras/gradient.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/extras/plot_WM_field.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/README.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_0.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_1.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_2.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_3.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/images/triplet_example_0.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/make.bat +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/_static/default.css +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/sphx_glr_plot_mode_0_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/sphx_glr_plot_mode_1_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/sphx_glr_plot_mode_2_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/sphx_glr_plot_mode_3_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/thumb/sphx_glr_plot_mode_0_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/thumb/sphx_glr_plot_mode_1_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/thumb/sphx_glr_plot_mode_2_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/images/thumb/sphx_glr_plot_mode_3_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/sg_execution_times.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_bottom_anti_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_bottom_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_left_anti_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_left_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_no_symmetry_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_right_anti_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_right_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_top_anti_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/sphx_glr_plot_top_symmetric_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_bottom_anti_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_bottom_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_left_anti_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_left_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_no_symmetry_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_right_anti_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_right_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_top_anti_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/images/thumb/sphx_glr_plot_top_symmetric_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/sg_execution_times.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/gradient.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/gradient.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/gradient.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/images/sphx_glr_plot_WM_field_001.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/images/thumb/sphx_glr_gradient_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/images/thumb/sphx_glr_plot_WM_field_thumb.png +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.ipynb +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.py.md5 +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/sg_execution_times.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/references.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/theory.rst +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/setup.cfg +0 -0
- {pyfinitdiff-2.0.3.post0/PyFinitDiff/tools → pyfinitdiff-2.1.2.post0/tests}/__init__.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_1D_api.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_1D_derivative.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_2D_api.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_2D_derivative.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_2D_eigen.py +0 -0
- {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_triplet.py +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
name: Deploy Conda Package
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
tags:
|
|
7
|
+
- '*'
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: [ "master" ]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build_and_publish_conda_package:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout Repository
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
|
+
|
|
18
|
+
- name: Set up Miniconda
|
|
19
|
+
uses: conda-incubator/setup-miniconda@v2
|
|
20
|
+
with:
|
|
21
|
+
channels: conda-forge
|
|
22
|
+
python-version: '3.11'
|
|
23
|
+
|
|
24
|
+
- name: Upload to Anaconda (if tag)
|
|
25
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
26
|
+
run: |
|
|
27
|
+
conda config --set anaconda_upload true
|
|
28
|
+
|
|
29
|
+
- name: Create Conda Environment and Install Dependencies
|
|
30
|
+
env:
|
|
31
|
+
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} # Ensure the Anaconda token is set
|
|
32
|
+
run: |
|
|
33
|
+
conda install conda-build anaconda-client conda-verify -y
|
|
34
|
+
conda build . -c martinpdes
|
{pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/workflows/deploy_documentation.yml
RENAMED
|
@@ -28,7 +28,7 @@ jobs:
|
|
|
28
28
|
shell: bash
|
|
29
29
|
run: |
|
|
30
30
|
sudo apt-get update
|
|
31
|
-
sudo apt-get install
|
|
31
|
+
sudo apt-get install xvfb
|
|
32
32
|
|
|
33
33
|
- name: "Checkout requirements and files for testing"
|
|
34
34
|
uses: actions/checkout@v4
|
|
@@ -42,16 +42,19 @@ jobs:
|
|
|
42
42
|
python -m build --wheel
|
|
43
43
|
python -m pip install .[documentation]
|
|
44
44
|
|
|
45
|
-
- name:
|
|
46
|
-
|
|
45
|
+
- name: Install dependencies
|
|
46
|
+
run: |
|
|
47
|
+
pip install sphinx sphinx_rtd_theme myst_parser
|
|
48
|
+
|
|
49
|
+
- name: Sphinx build
|
|
47
50
|
run: |
|
|
48
|
-
|
|
51
|
+
sphinx-build docs/source _build
|
|
49
52
|
|
|
50
|
-
- name:
|
|
53
|
+
- name: Deploy to GitHub Pages
|
|
54
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
51
55
|
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
52
|
-
uses: crazy-max/ghaction-github-pages@v3
|
|
53
56
|
with:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
publish_branch: gh-pages
|
|
58
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
59
|
+
publish_dir: _build/
|
|
60
|
+
force_orphan: true
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
name: Deploy Wheel
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
push:
|
|
5
|
+
branches: [ "master" ]
|
|
6
|
+
tags:
|
|
7
|
+
- '*'
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: [ "master" ]
|
|
10
10
|
|
|
11
11
|
permissions:
|
|
12
12
|
contents: write
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyFinitDiff
|
|
3
|
-
Version: 2.
|
|
4
|
-
Summary: A package
|
|
3
|
+
Version: 2.1.2.post0
|
|
4
|
+
Summary: A package for generating finite-difference matrices, particularly suited for physics and engineering applications.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
@@ -28,7 +28,7 @@ License: MIT License
|
|
|
28
28
|
Project-URL: Homepage, https://github.com/MartinPdeS/PyFinitDiff
|
|
29
29
|
Project-URL: Documentation, https://pyfinitdiff.readthedocs.io/en/latest/
|
|
30
30
|
Project-URL: Repository, https://github.com/MartinPdeS/PyFinitDiff.git
|
|
31
|
-
Keywords:
|
|
31
|
+
Keywords: finite-difference,solving,linear algebra,physics,matrix,engineering
|
|
32
32
|
Classifier: Programming Language :: Python
|
|
33
33
|
Classifier: Programming Language :: Python :: 3
|
|
34
34
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -41,33 +41,48 @@ Classifier: Intended Audience :: Science/Research
|
|
|
41
41
|
Requires-Python: >=3.10
|
|
42
42
|
Description-Content-Type: text/x-rst
|
|
43
43
|
License-File: LICENSE
|
|
44
|
-
Requires-Dist:
|
|
45
|
-
Requires-Dist:
|
|
46
|
-
Requires-Dist:
|
|
44
|
+
Requires-Dist: scipy~=1.14
|
|
45
|
+
Requires-Dist: pydantic~=2.9
|
|
46
|
+
Requires-Dist: numpy~=1.26
|
|
47
47
|
Requires-Dist: MPSPlots
|
|
48
|
-
Requires-Dist: tabulate
|
|
48
|
+
Requires-Dist: tabulate~=0.9
|
|
49
49
|
Provides-Extra: testing
|
|
50
|
-
Requires-Dist: pytest
|
|
51
|
-
Requires-Dist: pytest-cov
|
|
52
|
-
Requires-Dist: pytest-json-report
|
|
53
|
-
Requires-Dist: mypy
|
|
54
|
-
Requires-Dist: flake8
|
|
55
|
-
Requires-Dist: tox
|
|
56
|
-
Requires-Dist: coverage
|
|
50
|
+
Requires-Dist: pytest~=7.4; extra == "testing"
|
|
51
|
+
Requires-Dist: pytest-cov~=2.0; extra == "testing"
|
|
52
|
+
Requires-Dist: pytest-json-report~=1.5; extra == "testing"
|
|
53
|
+
Requires-Dist: mypy~=0.910; extra == "testing"
|
|
54
|
+
Requires-Dist: flake8~=3.9; extra == "testing"
|
|
55
|
+
Requires-Dist: tox~=3.24; extra == "testing"
|
|
56
|
+
Requires-Dist: coverage~=7.6; extra == "testing"
|
|
57
57
|
Provides-Extra: documentation
|
|
58
|
-
Requires-Dist: numpydoc
|
|
59
|
-
Requires-Dist: sphinx>=
|
|
60
|
-
Requires-Dist: sphinx-gallery
|
|
61
|
-
Requires-Dist: sphinx-rtd-theme
|
|
62
|
-
Requires-Dist: pydata-sphinx-theme
|
|
58
|
+
Requires-Dist: numpydoc~=1.8; extra == "documentation"
|
|
59
|
+
Requires-Dist: sphinx>=6; extra == "documentation"
|
|
60
|
+
Requires-Dist: sphinx-gallery~=0.17; extra == "documentation"
|
|
61
|
+
Requires-Dist: sphinx-rtd-theme~=2.0; extra == "documentation"
|
|
62
|
+
Requires-Dist: pydata-sphinx-theme~=0.15; extra == "documentation"
|
|
63
|
+
Provides-Extra: dev
|
|
64
|
+
Requires-Dist: black~=22.3; extra == "dev"
|
|
65
|
+
Requires-Dist: isort~=5.9; extra == "dev"
|
|
66
|
+
Requires-Dist: pre-commit~=2.19; extra == "dev"
|
|
63
67
|
|
|
64
68
|
PyFinitDiff
|
|
65
69
|
===========
|
|
66
70
|
|
|
67
|
-
|
|
|
71
|
+
|logo|
|
|
68
72
|
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
.. list-table::
|
|
74
|
+
:widths: 10 25 25
|
|
75
|
+
:header-rows: 0
|
|
76
|
+
|
|
77
|
+
* - Meta
|
|
78
|
+
- |python|
|
|
79
|
+
- |docs|
|
|
80
|
+
* - Testing
|
|
81
|
+
- |ci/cd|
|
|
82
|
+
- |coverage|
|
|
83
|
+
* - PyPi
|
|
84
|
+
- |PyPi|
|
|
85
|
+
- |PyPi_download|
|
|
71
86
|
|
|
72
87
|
PyFinitDiff is a robust Python package designed to compute finite-difference matrices with an intuitive API. This package provides an efficient and user-friendly interface for generating finite-difference approximations, making it ideal for numerical analysis and scientific computing.
|
|
73
88
|
|
|
@@ -149,19 +164,20 @@ Contact Information
|
|
|
149
164
|
********************
|
|
150
165
|
As of 2024, the project is still under development. If you want to collaborate, it would be a pleasure! I encourage you to contact me.
|
|
151
166
|
|
|
152
|
-
|
|
167
|
+
PyFinitDiff was written by `Martin Poinsinet de Sivry-Houle <https://github.com/MartinPdS>`_ .
|
|
153
168
|
|
|
154
169
|
Email:`martin.poinsinet.de.sivry@gmail.ca <mailto:martin.poinsinet.de.sivry@gmail.ca?subject=PyFinitDiff>`_ .
|
|
155
170
|
|
|
156
171
|
|
|
157
172
|
.. |python| image:: https://img.shields.io/pypi/pyversions/pyfinitdiff.svg
|
|
158
|
-
|
|
173
|
+
:alt: Python
|
|
174
|
+
:target: https://www.python.org/
|
|
159
175
|
|
|
160
|
-
.. |
|
|
161
|
-
|
|
176
|
+
.. |logo| image:: https://github.com/MartinPdeS/PyFinitDiff/raw/master/docs/images/logo.png
|
|
177
|
+
:alt: PyFinitDiff logo
|
|
162
178
|
|
|
163
|
-
.. |docs| image:: https://
|
|
164
|
-
:target: https://
|
|
179
|
+
.. |docs| image:: https://github.com/martinpdes/pyfinitdiff/actions/workflows/deploy_documentation.yml/badge.svg
|
|
180
|
+
:target: https://martinpdes.github.io/PyFinitDiff/
|
|
165
181
|
:alt: Documentation Status
|
|
166
182
|
|
|
167
183
|
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/PyFinitDiff/python-coverage-comment-action-data/badge.svg
|
|
@@ -169,7 +185,16 @@ Email:`martin.poinsinet.de.sivry@gmail.ca <mailto:martin.poinsinet.de.sivry@gmai
|
|
|
169
185
|
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/PyFinitDiff/blob/python-coverage-comment-action-data/htmlcov/index.html
|
|
170
186
|
|
|
171
187
|
.. |PyPi| image:: https://badge.fury.io/py/PyFinitDiff.svg
|
|
188
|
+
:alt: PyPi version
|
|
172
189
|
:target: https://pypi.org/project/PyFinitDiff/
|
|
173
190
|
|
|
174
191
|
.. |PyPi_download| image:: https://img.shields.io/pypi/dm/pyfinitdiff.svg
|
|
192
|
+
:alt: PyPi version
|
|
175
193
|
:target: https://pypistats.org/packages/pyfinitdiff
|
|
194
|
+
|
|
195
|
+
.. |ci/cd| image:: https://github.com/martinpdes/pyfinitdiff/actions/workflows/deploy_coverage.yml/badge.svg
|
|
196
|
+
:target: https://martinpdes.github.io/PyFinitDiff/actions
|
|
197
|
+
:alt: Unittest Status
|
|
198
|
+
|
|
199
|
+
.. |example_triplet_0| image:: https://github.com/MartinPdeS/PyFinitDiff/blob/master/docs/images/triplet_example_0.png
|
|
200
|
+
:target: https://www.python.org/
|
|
@@ -12,5 +12,5 @@ __version__: str
|
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
|
13
13
|
version_tuple: VERSION_TUPLE
|
|
14
14
|
|
|
15
|
-
__version__ = version = '2.
|
|
16
|
-
__version_tuple__ = version_tuple = (2,
|
|
15
|
+
__version__ = version = '2.1.2.post0'
|
|
16
|
+
__version_tuple__ = version_tuple = (2, 1, 2)
|
{pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/boundaries.py
RENAMED
|
@@ -15,15 +15,19 @@ config_dict = ConfigDict(
|
|
|
15
15
|
frozen=False
|
|
16
16
|
)
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
@dataclass(config=config_dict)
|
|
20
19
|
class Boundary:
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
20
|
+
"""
|
|
21
|
+
Class representing a boundary with a specific name, value, and mesh information.
|
|
22
|
+
|
|
23
|
+
Parameters
|
|
24
|
+
----------
|
|
25
|
+
name : str
|
|
26
|
+
The name of the boundary.
|
|
27
|
+
value : Optional[str]
|
|
28
|
+
The value associated with the boundary, such as 'symmetric', 'anti-symmetric', 'zero', or 'none'.
|
|
29
|
+
mesh_info : object
|
|
30
|
+
The mesh information object containing information about the mesh size and structure.
|
|
27
31
|
"""
|
|
28
32
|
|
|
29
33
|
name: str
|
|
@@ -31,13 +35,18 @@ class Boundary:
|
|
|
31
35
|
mesh_info: object
|
|
32
36
|
|
|
33
37
|
def get_factor(self) -> float:
|
|
34
|
-
"""
|
|
38
|
+
"""
|
|
39
|
+
Get the factor associated with the boundary value.
|
|
35
40
|
|
|
36
|
-
Returns
|
|
37
|
-
|
|
41
|
+
Returns
|
|
42
|
+
-------
|
|
43
|
+
float
|
|
44
|
+
The factor corresponding to the boundary value.
|
|
38
45
|
|
|
39
|
-
Raises
|
|
40
|
-
|
|
46
|
+
Raises
|
|
47
|
+
------
|
|
48
|
+
ValueError
|
|
49
|
+
If the boundary value is unexpected.
|
|
41
50
|
"""
|
|
42
51
|
match self.value:
|
|
43
52
|
case 'symmetric':
|
|
@@ -52,16 +61,23 @@ class Boundary:
|
|
|
52
61
|
raise ValueError(f"Unexpected boundary value: {self.value}")
|
|
53
62
|
|
|
54
63
|
def get_shift_vector(self, offset: int) -> Optional[numpy.ndarray]:
|
|
55
|
-
"""
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
"""
|
|
65
|
+
Calculate the shift vector based on the boundary name and offset.
|
|
66
|
+
|
|
67
|
+
Parameters
|
|
68
|
+
----------
|
|
69
|
+
offset : int
|
|
70
|
+
The offset value to be used in the shift vector calculation.
|
|
71
|
+
|
|
72
|
+
Returns
|
|
73
|
+
-------
|
|
74
|
+
Optional[numpy.ndarray]
|
|
75
|
+
The shift vector as a numpy array, or None if the boundary name is 'center'.
|
|
76
|
+
|
|
77
|
+
Raises
|
|
78
|
+
------
|
|
79
|
+
ValueError
|
|
80
|
+
If the boundary name is unexpected.
|
|
65
81
|
"""
|
|
66
82
|
offset = abs(offset)
|
|
67
83
|
|
|
@@ -79,16 +95,21 @@ class Boundary:
|
|
|
79
95
|
case _:
|
|
80
96
|
raise ValueError(f"Unexpected boundary name: {self.name}")
|
|
81
97
|
|
|
82
|
-
|
|
83
98
|
@dataclass(config=config_dict)
|
|
84
99
|
class Boundaries:
|
|
85
|
-
"""
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
100
|
+
"""
|
|
101
|
+
Class representing the boundaries with left and right values.
|
|
102
|
+
|
|
103
|
+
Parameters
|
|
104
|
+
----------
|
|
105
|
+
left : Optional[str]
|
|
106
|
+
Value of the left boundary. Defaults to 'zero'. Must be either 'zero', 'symmetric', or 'anti-symmetric'.
|
|
107
|
+
right : Optional[str]
|
|
108
|
+
Value of the right boundary. Defaults to 'zero'. Must be either 'zero', 'symmetric', or 'anti-symmetric'.
|
|
109
|
+
acceptable_boundary : List[str]
|
|
110
|
+
List of acceptable boundary values.
|
|
111
|
+
all_boundaries : List[str]
|
|
112
|
+
List of all boundary names.
|
|
92
113
|
"""
|
|
93
114
|
left: Optional[str] = 'zero'
|
|
94
115
|
right: Optional[str] = 'zero'
|
|
@@ -97,31 +118,44 @@ class Boundaries:
|
|
|
97
118
|
all_boundaries = ['left', 'right']
|
|
98
119
|
|
|
99
120
|
def __post_init__(self) -> None:
|
|
100
|
-
"""
|
|
121
|
+
"""
|
|
122
|
+
Post-initialization method to assert acceptable boundary values.
|
|
123
|
+
"""
|
|
101
124
|
for boundary in self.all_boundaries:
|
|
102
125
|
self.assert_boundary_acceptable(boundary_string=boundary)
|
|
103
126
|
|
|
104
127
|
def assert_both_boundaries_not_same(self, boundary_0: str, boundary_1: str) -> None:
|
|
105
|
-
"""
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
128
|
+
"""
|
|
129
|
+
Assert that both boundaries are not the same axis symmetries if they are not 'zero'.
|
|
130
|
+
|
|
131
|
+
Parameters
|
|
132
|
+
----------
|
|
133
|
+
boundary_0 : str
|
|
134
|
+
The first boundary value.
|
|
135
|
+
boundary_1 : str
|
|
136
|
+
The second boundary value.
|
|
137
|
+
|
|
138
|
+
Raises
|
|
139
|
+
------
|
|
140
|
+
ValueError
|
|
141
|
+
If both boundaries are set to the same axis symmetries.
|
|
113
142
|
"""
|
|
114
143
|
if boundary_0 != 'zero' and boundary_1 != 'zero':
|
|
115
144
|
raise ValueError("Same-axis symmetries shouldn't be set on both ends")
|
|
116
145
|
|
|
117
146
|
def assert_boundary_acceptable(self, boundary_string: str) -> None:
|
|
118
|
-
"""
|
|
147
|
+
"""
|
|
148
|
+
Assert that a given boundary value is acceptable.
|
|
119
149
|
|
|
120
|
-
|
|
121
|
-
|
|
150
|
+
Parameters
|
|
151
|
+
----------
|
|
152
|
+
boundary_string : str
|
|
153
|
+
The name of the boundary to check.
|
|
122
154
|
|
|
123
|
-
Raises
|
|
124
|
-
|
|
155
|
+
Raises
|
|
156
|
+
------
|
|
157
|
+
AssertionError
|
|
158
|
+
If the boundary value is not acceptable.
|
|
125
159
|
"""
|
|
126
160
|
boundary_value = getattr(self, boundary_string)
|
|
127
161
|
assert boundary_value in self.acceptable_boundary, (
|
|
@@ -130,24 +164,34 @@ class Boundaries:
|
|
|
130
164
|
)
|
|
131
165
|
|
|
132
166
|
def get_boundary_pairs(self) -> List[Tuple[str, str]]:
|
|
133
|
-
"""
|
|
167
|
+
"""
|
|
168
|
+
Get the pairs of boundaries.
|
|
134
169
|
|
|
135
|
-
Returns
|
|
136
|
-
|
|
170
|
+
Returns
|
|
171
|
+
-------
|
|
172
|
+
List[Tuple[str, str]]
|
|
173
|
+
A list of tuples containing boundary pairs.
|
|
137
174
|
"""
|
|
138
175
|
return [(self.left, self.right)]
|
|
139
176
|
|
|
140
177
|
def get_boundary(self, name: str) -> Boundary:
|
|
141
|
-
"""
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
178
|
+
"""
|
|
179
|
+
Return a specific instance of the boundary.
|
|
180
|
+
|
|
181
|
+
Parameters
|
|
182
|
+
----------
|
|
183
|
+
name : str
|
|
184
|
+
The name of the boundary.
|
|
185
|
+
|
|
186
|
+
Returns
|
|
187
|
+
-------
|
|
188
|
+
Boundary
|
|
189
|
+
The boundary instance.
|
|
190
|
+
|
|
191
|
+
Raises
|
|
192
|
+
------
|
|
193
|
+
AttributeError
|
|
194
|
+
If the boundary name is not an attribute of the instance.
|
|
151
195
|
"""
|
|
152
196
|
if not hasattr(self, name):
|
|
153
197
|
value = None
|
|
@@ -163,16 +207,23 @@ class Boundaries:
|
|
|
163
207
|
return boundary
|
|
164
208
|
|
|
165
209
|
def offset_to_boundary(self, offset: int) -> str:
|
|
166
|
-
"""
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
210
|
+
"""
|
|
211
|
+
Determine the boundary based on the offset.
|
|
212
|
+
|
|
213
|
+
Parameters
|
|
214
|
+
----------
|
|
215
|
+
offset : int
|
|
216
|
+
The offset value.
|
|
217
|
+
|
|
218
|
+
Returns
|
|
219
|
+
-------
|
|
220
|
+
str
|
|
221
|
+
The name of the boundary corresponding to the offset.
|
|
222
|
+
|
|
223
|
+
Raises
|
|
224
|
+
------
|
|
225
|
+
ValueError
|
|
226
|
+
If the offset does not correspond to a valid boundary.
|
|
176
227
|
"""
|
|
177
228
|
if offset == 0:
|
|
178
229
|
return self.get_boundary('center')
|
|
@@ -186,5 +237,3 @@ class Boundaries:
|
|
|
186
237
|
return self.get_boundary('left')
|
|
187
238
|
|
|
188
239
|
raise ValueError("Offset does not correspond to a valid boundary.")
|
|
189
|
-
|
|
190
|
-
# -
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
from PyFinitDiff.coefficients import FiniteCoefficients
|
|
5
|
+
|
|
6
|
+
def get_function_derivative(
|
|
7
|
+
function: callable,
|
|
8
|
+
x_eval: float,
|
|
9
|
+
derivative: int,
|
|
10
|
+
delta: float,
|
|
11
|
+
function_kwargs: dict,
|
|
12
|
+
accuracy: int = 4,
|
|
13
|
+
coefficient_type: str = 'central') -> float:
|
|
14
|
+
"""
|
|
15
|
+
Compute the derivative of a given function at a specified point using finite differences.
|
|
16
|
+
|
|
17
|
+
Parameters
|
|
18
|
+
----------
|
|
19
|
+
function : callable
|
|
20
|
+
The function to differentiate.
|
|
21
|
+
x_eval : float
|
|
22
|
+
The point at which to evaluate the derivative.
|
|
23
|
+
derivative : int
|
|
24
|
+
The order of the derivative.
|
|
25
|
+
delta : float
|
|
26
|
+
The distance between points used in the finite difference.
|
|
27
|
+
function_kwargs : dict
|
|
28
|
+
Additional keyword arguments to pass to the function.
|
|
29
|
+
accuracy : int, optional
|
|
30
|
+
The accuracy of the finite difference approximation (default is 4).
|
|
31
|
+
coefficient_type : str, optional
|
|
32
|
+
The type of finite difference coefficients to use ('central', 'forward', 'backward'). Defaults to 'central'.
|
|
33
|
+
|
|
34
|
+
Returns
|
|
35
|
+
-------
|
|
36
|
+
float
|
|
37
|
+
The value of the derivative at the specified point.
|
|
38
|
+
|
|
39
|
+
Examples
|
|
40
|
+
--------
|
|
41
|
+
>>> def func(x):
|
|
42
|
+
>>> return x**2
|
|
43
|
+
>>> get_function_derivative(func, 1.0, 1, 0.01, {})
|
|
44
|
+
2.0
|
|
45
|
+
"""
|
|
46
|
+
coefficients = FiniteCoefficients(
|
|
47
|
+
derivative=derivative,
|
|
48
|
+
accuracy=accuracy,
|
|
49
|
+
coefficient_type=coefficient_type
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
summation = 0
|
|
53
|
+
for index, value in coefficients:
|
|
54
|
+
x = x_eval + index * delta
|
|
55
|
+
y = function(x, **function_kwargs)
|
|
56
|
+
summation += value * y
|
|
57
|
+
|
|
58
|
+
return summation / delta ** derivative
|