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.
Files changed (227) hide show
  1. pyfinitdiff-2.1.2.post0/.github/workflows/deploy_anaconda.yml +34 -0
  2. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/workflows/deploy_coverage.yml +1 -1
  3. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/workflows/deploy_documentation.yml +13 -10
  4. pyfinitdiff-2.0.3.post0/.github/workflows/deploy_workflow.yml → pyfinitdiff-2.1.2.post0/.github/workflows/deploy_pypi.yml +6 -6
  5. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.gitignore +2 -3
  6. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PKG-INFO +53 -28
  7. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/_version.py +2 -2
  8. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/boundaries.py +118 -69
  9. pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_1D/derivative.py +58 -0
  10. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/diagonals.py +155 -82
  11. pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_1D/finite_difference.py +238 -0
  12. pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_1D/utils.py +72 -0
  13. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_2D/boundaries.py +116 -65
  14. pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_2D/derivative.py +67 -0
  15. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_2D/diagonals.py +122 -78
  16. pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_2D/finite_difference.py +256 -0
  17. pyfinitdiff-2.1.2.post0/PyFinitDiff/finite_difference_2D/utils.py +89 -0
  18. pyfinitdiff-2.1.2.post0/PyFinitDiff/triplet.py +500 -0
  19. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/PKG-INFO +53 -28
  20. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/SOURCES.txt +4 -4
  21. pyfinitdiff-2.1.2.post0/PyFinitDiff.egg-info/requires.txt +26 -0
  22. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/README.rst +32 -11
  23. pyfinitdiff-2.1.2.post0/docs/images/logo.png +0 -0
  24. pyfinitdiff-2.1.2.post0/docs/source/code.rst +52 -0
  25. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/conf.py +26 -20
  26. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/index.rst +8 -3
  27. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/index.rst +8 -3
  28. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/index.rst +8 -3
  29. pyfinitdiff-2.1.2.post0/docs/source/gallery/index.rst +12 -0
  30. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_0_001.png +0 -0
  31. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_1_001.png +0 -0
  32. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_2_001.png +0 -0
  33. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_3_001.png +0 -0
  34. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_0_thumb.png +0 -0
  35. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_1_thumb.png +0 -0
  36. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_2_thumb.png +0 -0
  37. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_3_thumb.png +0 -0
  38. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/index.rst +8 -3
  39. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_0.ipynb +1 -1
  40. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_0.py +1 -3
  41. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_0.py.md5 +1 -0
  42. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_0.rst +4 -6
  43. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_1.ipynb +1 -1
  44. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_1.py +1 -3
  45. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_1.py.md5 +1 -0
  46. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_1.rst +4 -6
  47. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_2.ipynb +1 -1
  48. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_2.py +1 -3
  49. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_2.py.md5 +1 -0
  50. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_2.rst +4 -6
  51. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_3.ipynb +1 -1
  52. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_3.py +1 -3
  53. pyfinitdiff-2.1.2.post0/docs/source/gallery/triplets/plot_triplets_3.py.md5 +1 -0
  54. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/plot_triplets_3.rst +4 -6
  55. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/triplets/sg_execution_times.rst +5 -5
  56. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/index.rst +2 -1
  57. pyfinitdiff-2.1.2.post0/meta.yaml +67 -0
  58. pyfinitdiff-2.1.2.post0/pyproject.toml +92 -0
  59. pyfinitdiff-2.0.3.post0/.coverage +0 -0
  60. pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_1D/derivative.py +0 -44
  61. pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_1D/finite_difference.py +0 -189
  62. pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_1D/utils.py +0 -54
  63. pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_2D/derivative.py +0 -51
  64. pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_2D/finite_difference.py +0 -206
  65. pyfinitdiff-2.0.3.post0/PyFinitDiff/finite_difference_2D/utils.py +0 -68
  66. pyfinitdiff-2.0.3.post0/PyFinitDiff/triplet.py +0 -221
  67. pyfinitdiff-2.0.3.post0/PyFinitDiff.egg-info/requires.txt +0 -21
  68. pyfinitdiff-2.0.3.post0/docs/images/logo.png +0 -0
  69. pyfinitdiff-2.0.3.post0/docs/source/code.rst +0 -33
  70. pyfinitdiff-2.0.3.post0/docs/source/gallery/index.rst +0 -412
  71. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_0_001.png +0 -0
  72. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_1_001.png +0 -0
  73. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_2_001.png +0 -0
  74. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/sphx_glr_plot_triplets_3_001.png +0 -0
  75. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_0_thumb.png +0 -0
  76. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_1_thumb.png +0 -0
  77. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_2_thumb.png +0 -0
  78. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/images/thumb/sphx_glr_plot_triplets_3_thumb.png +0 -0
  79. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_0.py.md5 +0 -1
  80. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_1.py.md5 +0 -1
  81. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_2.py.md5 +0 -1
  82. pyfinitdiff-2.0.3.post0/docs/source/gallery/triplets/plot_triplets_3.py.md5 +0 -1
  83. pyfinitdiff-2.0.3.post0/pyproject.toml +0 -87
  84. pyfinitdiff-2.0.3.post0/tests/__init__.py +0 -0
  85. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.github/dependabot.yml +0 -0
  86. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/.readthedocs.yml +0 -0
  87. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/LICENSE +0 -0
  88. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/__init__.py +0 -0
  89. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/__init__.py +0 -0
  90. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/backward.py +0 -0
  91. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/central.py +0 -0
  92. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/coefficients/forward.py +0 -0
  93. {pyfinitdiff-2.0.3.post0/PyFinitDiff/tools → pyfinitdiff-2.1.2.post0/PyFinitDiff}/directories.py +0 -0
  94. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_1D/__init__.py +0 -0
  95. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/finite_difference_2D/__init__.py +0 -0
  96. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff/utils.py +0 -0
  97. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/dependency_links.txt +0 -0
  98. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/PyFinitDiff.egg-info/top_level.txt +0 -0
  99. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/Makefile +0 -0
  100. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/README.rst +0 -0
  101. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/README.rst +0 -0
  102. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_0.py +0 -0
  103. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_1.py +0 -0
  104. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_2.py +0 -0
  105. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_1d/plot_mode_3.py +0 -0
  106. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/README.rst +0 -0
  107. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_bottom_anti_symmetric.py +0 -0
  108. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_bottom_symmetric.py +0 -0
  109. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_left_anti_symmetric.py +0 -0
  110. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_left_symmetric.py +0 -0
  111. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_no_symmetry.py +0 -0
  112. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_right_anti_symmetric.py +0 -0
  113. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_right_symmetric.py +0 -0
  114. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_top_anti_symmetric.py +0 -0
  115. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/eigenmodes_2d/plot_top_symmetric.py +0 -0
  116. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/extras/README.rst +0 -0
  117. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/extras/gradient.py +0 -0
  118. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/extras/plot_WM_field.py +0 -0
  119. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/README.rst +0 -0
  120. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_0.py +0 -0
  121. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_1.py +0 -0
  122. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_2.py +0 -0
  123. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/examples/triplets/plot_triplets_3.py +0 -0
  124. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/images/triplet_example_0.png +0 -0
  125. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/make.bat +0 -0
  126. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/_static/default.css +0 -0
  127. {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
  128. {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
  129. {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
  130. {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
  131. {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
  132. {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
  133. {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
  134. {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
  135. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.ipynb +0 -0
  136. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.py +0 -0
  137. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.py.md5 +0 -0
  138. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_0.rst +0 -0
  139. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.ipynb +0 -0
  140. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.py +0 -0
  141. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.py.md5 +0 -0
  142. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_1.rst +0 -0
  143. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.ipynb +0 -0
  144. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.py +0 -0
  145. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.py.md5 +0 -0
  146. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_2.rst +0 -0
  147. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.ipynb +0 -0
  148. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.py +0 -0
  149. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.py.md5 +0 -0
  150. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/plot_mode_3.rst +0 -0
  151. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_1d/sg_execution_times.rst +0 -0
  152. {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
  153. {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
  154. {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
  155. {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
  156. {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
  157. {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
  158. {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
  159. {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
  160. {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
  161. {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
  162. {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
  163. {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
  164. {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
  165. {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
  166. {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
  167. {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
  168. {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
  169. {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
  170. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.ipynb +0 -0
  171. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.py +0 -0
  172. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.py.md5 +0 -0
  173. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_anti_symmetric.rst +0 -0
  174. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.ipynb +0 -0
  175. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.py +0 -0
  176. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.py.md5 +0 -0
  177. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_bottom_symmetric.rst +0 -0
  178. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.ipynb +0 -0
  179. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.py +0 -0
  180. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.py.md5 +0 -0
  181. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_anti_symmetric.rst +0 -0
  182. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.ipynb +0 -0
  183. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.py +0 -0
  184. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.py.md5 +0 -0
  185. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_left_symmetric.rst +0 -0
  186. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.ipynb +0 -0
  187. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.py +0 -0
  188. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.py.md5 +0 -0
  189. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_no_symmetry.rst +0 -0
  190. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.ipynb +0 -0
  191. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.py +0 -0
  192. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.py.md5 +0 -0
  193. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_anti_symmetric.rst +0 -0
  194. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.ipynb +0 -0
  195. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.py +0 -0
  196. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.py.md5 +0 -0
  197. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_right_symmetric.rst +0 -0
  198. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.ipynb +0 -0
  199. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.py +0 -0
  200. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.py.md5 +0 -0
  201. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_anti_symmetric.rst +0 -0
  202. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.ipynb +0 -0
  203. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.py +0 -0
  204. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.py.md5 +0 -0
  205. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/plot_top_symmetric.rst +0 -0
  206. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/eigenmodes_2d/sg_execution_times.rst +0 -0
  207. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/gradient.ipynb +0 -0
  208. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/gradient.py +0 -0
  209. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/gradient.rst +0 -0
  210. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/images/sphx_glr_plot_WM_field_001.png +0 -0
  211. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/images/thumb/sphx_glr_gradient_thumb.png +0 -0
  212. {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
  213. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.ipynb +0 -0
  214. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.py +0 -0
  215. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.py.md5 +0 -0
  216. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/plot_WM_field.rst +0 -0
  217. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/gallery/extras/sg_execution_times.rst +0 -0
  218. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/references.rst +0 -0
  219. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/docs/source/theory.rst +0 -0
  220. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/setup.cfg +0 -0
  221. {pyfinitdiff-2.0.3.post0/PyFinitDiff/tools → pyfinitdiff-2.1.2.post0/tests}/__init__.py +0 -0
  222. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_1D_api.py +0 -0
  223. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_1D_derivative.py +0 -0
  224. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_2D_api.py +0 -0
  225. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_2D_derivative.py +0 -0
  226. {pyfinitdiff-2.0.3.post0 → pyfinitdiff-2.1.2.post0}/tests/test_2D_eigen.py +0 -0
  227. {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
@@ -29,7 +29,7 @@ jobs:
29
29
  shell: bash
30
30
  run: |
31
31
  sudo apt-get update
32
- sudo apt-get install libgl1-mesa-glx xvfb
32
+ sudo apt-get install xvfb
33
33
 
34
34
  - name: "Checkout requirements and files for testing"
35
35
  uses: actions/checkout@v4
@@ -28,7 +28,7 @@ jobs:
28
28
  shell: bash
29
29
  run: |
30
30
  sudo apt-get update
31
- sudo apt-get install libgl1-mesa-glx xvfb
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: "Build: documentation"
46
- shell: bash
45
+ - name: Install dependencies
46
+ run: |
47
+ pip install sphinx sphinx_rtd_theme myst_parser
48
+
49
+ - name: Sphinx build
47
50
  run: |
48
- make -C docs html
51
+ sphinx-build docs/source _build
49
52
 
50
- - name: "Upload: GitHub Pages"
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
- target_branch: gh-pages
55
- build_dir: docs/build/html
56
- env:
57
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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
- push:
5
- branches: [ "master" ]
6
- tags:
7
- - '*'
8
- pull_request:
9
- branches: [ "master" ]
4
+ push:
5
+ branches: [ "master" ]
6
+ tags:
7
+ - '*'
8
+ pull_request:
9
+ branches: [ "master" ]
10
10
 
11
11
  permissions:
12
12
  contents: write
@@ -19,11 +19,10 @@ build
19
19
  *.egg*
20
20
  *.whl
21
21
  .pdf
22
- Perso/
23
- docs/source/ExampleGallery
24
22
 
25
23
  CMakeCache.txt
26
24
  CMakeFiles
27
25
  ./Makefile
28
26
  install_manifest.txt
29
- cmake_install.cmake
27
+ cmake_install.cmake
28
+ .coverage
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyFinitDiff
3
- Version: 2.0.3.post0
4
- Summary: A package finit-difference matrix generation.
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: finit-difference,matrix
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: pydantic>=2.6.3
45
- Requires-Dist: numpy
46
- Requires-Dist: scipy
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>=0.6; extra == "testing"
51
- Requires-Dist: pytest-cov>=2.0; extra == "testing"
52
- Requires-Dist: pytest-json-report==1.5.0; 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.1; extra == "testing"
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==1.8.0; extra == "documentation"
59
- Requires-Dist: sphinx>=5.1.1; extra == "documentation"
60
- Requires-Dist: sphinx-gallery==0.17.1; extra == "documentation"
61
- Requires-Dist: sphinx-rtd-theme==2.0.0; extra == "documentation"
62
- Requires-Dist: pydata-sphinx-theme==0.15.4; extra == "documentation"
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
- |python| |docs| |coverage| |PyPi| |PyPi_download|
71
+ |logo|
68
72
 
69
- PyFinitDiff
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
- PyMieSim was written by `Martin Poinsinet de Sivry-Houle <https://github.com/MartinPdS>`_ .
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
- :target: https://www.python.org/
173
+ :alt: Python
174
+ :target: https://www.python.org/
159
175
 
160
- .. |example_triplet_0| image:: https://github.com/MartinPdeS/PyFinitDiff/blob/master/docs/images/triplet_example_0.png
161
- :target: https://www.python.org/
176
+ .. |logo| image:: https://github.com/MartinPdeS/PyFinitDiff/raw/master/docs/images/logo.png
177
+ :alt: PyFinitDiff logo
162
178
 
163
- .. |docs| image:: https://readthedocs.org/projects/pyfinitdiff/badge/?version=latest
164
- :target: https://pyfinitdiff.readthedocs.io/en/latest/
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.0.3.post0'
16
- __version_tuple__ = version_tuple = (2, 0, 3)
15
+ __version__ = version = '2.1.2.post0'
16
+ __version_tuple__ = version_tuple = (2, 1, 2)
@@ -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
- """Class representing a boundary with a specific name, value, and mesh information.
22
-
23
- Attributes:
24
- name (str): The name of the boundary.
25
- value (Optional[str]): The value associated with the boundary.
26
- mesh_info (object): The mesh information object.
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
- """Gets the factor associated with the boundary value.
38
+ """
39
+ Get the factor associated with the boundary value.
35
40
 
36
- Returns:
37
- float: The factor corresponding to the boundary value.
41
+ Returns
42
+ -------
43
+ float
44
+ The factor corresponding to the boundary value.
38
45
 
39
- Raises:
40
- ValueError: If the boundary value is unexpected.
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
- """Calculates the shift vector based on the boundary name and offset.
56
-
57
- Args:
58
- offset (int): The offset value to be used in the shift vector calculation.
59
-
60
- Returns:
61
- Optional[numpy.ndarray]: The shift vector as a numpy array, or None if the boundary name is 'center'.
62
-
63
- Raises:
64
- ValueError: If the boundary name is unexpected.
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
- """Class representing the boundaries with left and right values.
86
-
87
- Attributes:
88
- left (Optional[str]): Value of the left boundary. Defaults to 'zero' must be either ['zero', 'symmetric', 'anti-symmetric'].
89
- right (Optional[str]): Value of the right boundary. Defaults to 'zero' either ['zero', 'symmetric', 'anti-symmetric'].
90
- acceptable_boundary (List[str]): List of acceptable boundary values.
91
- all_boundaries (List[str]): List of all boundary names.
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
- """Post-initialization method to assert acceptable boundary values."""
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
- """Asserts that both boundaries are not the same axis symmetries if they are not 'zero'.
106
-
107
- Args:
108
- boundary_0 (str): The first boundary value.
109
- boundary_1 (str): The second boundary value.
110
-
111
- Raises:
112
- ValueError: If both boundaries are set to the same axis symmetries.
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
- """Asserts that a given boundary value is acceptable.
147
+ """
148
+ Assert that a given boundary value is acceptable.
119
149
 
120
- Args:
121
- boundary_string (str): The name of the boundary to check.
150
+ Parameters
151
+ ----------
152
+ boundary_string : str
153
+ The name of the boundary to check.
122
154
 
123
- Raises:
124
- AssertionError: If the boundary value is not acceptable.
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
- """Gets the pairs of boundaries.
167
+ """
168
+ Get the pairs of boundaries.
134
169
 
135
- Returns:
136
- List[Tuple[str, str]]: A list of tuples containing boundary pairs.
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
- """Returns a specific instance of the boundary.
142
-
143
- Args:
144
- name (str): The name of the boundary.
145
-
146
- Returns:
147
- Boundary: The boundary instance.
148
-
149
- Raises:
150
- AttributeError: If the boundary name is not an attribute of the instance.
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
- """Determines the boundary based on the offset.
167
-
168
- Args:
169
- offset (int): The offset value.
170
-
171
- Returns:
172
- str: The name of the boundary corresponding to the offset.
173
-
174
- Raises:
175
- ValueError: If the offset does not correspond to a valid boundary.
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