PyFiberModes 0.4.0.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 (161) hide show
  1. pyfibermodes-0.4.0.post0/.github/dependabot.yml +11 -0
  2. pyfibermodes-0.4.0.post0/.github/workflows/deploy_workflow.yml +54 -0
  3. pyfibermodes-0.4.0.post0/.gitignore +24 -0
  4. pyfibermodes-0.4.0.post0/.readthedocs.yml +35 -0
  5. pyfibermodes-0.4.0.post0/LICENSE.txt +674 -0
  6. pyfibermodes-0.4.0.post0/PKG-INFO +147 -0
  7. pyfibermodes-0.4.0.post0/PyFiberModes/__future__.py +108 -0
  8. pyfibermodes-0.4.0.post0/PyFiberModes/__init__.py +36 -0
  9. pyfibermodes-0.4.0.post0/PyFiberModes/_version.py +16 -0
  10. pyfibermodes-0.4.0.post0/PyFiberModes/factory.py +136 -0
  11. pyfibermodes-0.4.0.post0/PyFiberModes/fiber.py +721 -0
  12. pyfibermodes-0.4.0.post0/PyFiberModes/field.py +622 -0
  13. pyfibermodes-0.4.0.post0/PyFiberModes/fundamentals.py +248 -0
  14. pyfibermodes-0.4.0.post0/PyFiberModes/mode.py +48 -0
  15. pyfibermodes-0.4.0.post0/PyFiberModes/mode_instances.py +34 -0
  16. pyfibermodes-0.4.0.post0/PyFiberModes/solver/__init__.py +1 -0
  17. pyfibermodes-0.4.0.post0/PyFiberModes/solver/base_solver.py +184 -0
  18. pyfibermodes-0.4.0.post0/PyFiberModes/solver/mlsif/__init__.py +1 -0
  19. pyfibermodes-0.4.0.post0/PyFiberModes/solver/mlsif/neff.py +586 -0
  20. pyfibermodes-0.4.0.post0/PyFiberModes/solver/ssif/__init__.py +2 -0
  21. pyfibermodes-0.4.0.post0/PyFiberModes/solver/ssif/cutoff.py +113 -0
  22. pyfibermodes-0.4.0.post0/PyFiberModes/solver/ssif/neff.py +573 -0
  23. pyfibermodes-0.4.0.post0/PyFiberModes/solver/tlsif/__init__.py +1 -0
  24. pyfibermodes-0.4.0.post0/PyFiberModes/solver/tlsif/cutoff.py +394 -0
  25. pyfibermodes-0.4.0.post0/PyFiberModes/stepindex.py +335 -0
  26. pyfibermodes-0.4.0.post0/PyFiberModes/tools/__init__.py +0 -0
  27. pyfibermodes-0.4.0.post0/PyFiberModes/tools/directories.py +41 -0
  28. pyfibermodes-0.4.0.post0/PyFiberModes/tools/utils.py +20 -0
  29. pyfibermodes-0.4.0.post0/PyFiberModes/wavelength.py +96 -0
  30. pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/PKG-INFO +147 -0
  31. pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/SOURCES.txt +159 -0
  32. pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/dependency_links.txt +1 -0
  33. pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/requires.txt +21 -0
  34. pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/top_level.txt +1 -0
  35. pyfibermodes-0.4.0.post0/README.rst +109 -0
  36. pyfibermodes-0.4.0.post0/Untitled.ipynb +212 -0
  37. pyfibermodes-0.4.0.post0/docs/Makefile +19 -0
  38. pyfibermodes-0.4.0.post0/docs/examples/README.rst +6 -0
  39. pyfibermodes-0.4.0.post0/docs/examples/plot_DCF_fields.py +41 -0
  40. pyfibermodes-0.4.0.post0/docs/examples/plot_U_vs_V.py +49 -0
  41. pyfibermodes-0.4.0.post0/docs/examples/plot_comparison_solvers.py +59 -0
  42. pyfibermodes-0.4.0.post0/docs/examples/plot_dispersion.py +45 -0
  43. pyfibermodes-0.4.0.post0/docs/examples/plot_effective_index.py +45 -0
  44. pyfibermodes-0.4.0.post0/docs/examples/plot_fiber_LP_modes.py +45 -0
  45. pyfibermodes-0.4.0.post0/docs/examples/plot_group_index.py +45 -0
  46. pyfibermodes-0.4.0.post0/docs/examples/plot_mode_field.py +44 -0
  47. pyfibermodes-0.4.0.post0/docs/examples/plot_mode_field_1.py +48 -0
  48. pyfibermodes-0.4.0.post0/docs/examples/plot_mode_field_2.py +45 -0
  49. pyfibermodes-0.4.0.post0/docs/examples/plot_neff_tapered_fiber.py +73 -0
  50. pyfibermodes-0.4.0.post0/docs/examples/plot_smf28.py +26 -0
  51. pyfibermodes-0.4.0.post0/docs/examples/plot_smf28_dispersion_vs_wavelength.py +38 -0
  52. pyfibermodes-0.4.0.post0/docs/examples/plot_smf28_group_index_vs_wavelength.py +38 -0
  53. pyfibermodes-0.4.0.post0/docs/make.bat +35 -0
  54. pyfibermodes-0.4.0.post0/docs/source/_static/default.css +19 -0
  55. pyfibermodes-0.4.0.post0/docs/source/code.rst +67 -0
  56. pyfibermodes-0.4.0.post0/docs/source/conf.py +154 -0
  57. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_DCF_fields_001.png +0 -0
  58. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_U_vs_V_001.png +0 -0
  59. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_comparison_solvers_001.png +0 -0
  60. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_dispersion_001.png +0 -0
  61. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_effective_index_001.png +0 -0
  62. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_fiber_LP_modes_001.png +0 -0
  63. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_group_index_001.png +0 -0
  64. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_mode_field_001.png +0 -0
  65. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_mode_field_1_001.png +0 -0
  66. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_mode_field_2_001.png +0 -0
  67. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_neff_tapered_fiber_001.png +0 -0
  68. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_smf28_dispersion_vs_wavelength_001.png +0 -0
  69. pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_smf28_group_index_vs_wavelength_001.png +0 -0
  70. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_DCF_fields_thumb.png +0 -0
  71. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_U_vs_V_thumb.png +0 -0
  72. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_comparison_solvers_thumb.png +0 -0
  73. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_dispersion_thumb.png +0 -0
  74. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_effective_index_thumb.png +0 -0
  75. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_fiber_LP_modes_thumb.png +0 -0
  76. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_group_index_thumb.png +0 -0
  77. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_mode_field_1_thumb.png +0 -0
  78. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_mode_field_2_thumb.png +0 -0
  79. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_mode_field_thumb.png +0 -0
  80. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_neff_tapered_fiber_thumb.png +0 -0
  81. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_smf28_dispersion_vs_wavelength_thumb.png +0 -0
  82. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_smf28_group_index_vs_wavelength_thumb.png +0 -0
  83. pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_smf28_thumb.png +0 -0
  84. pyfibermodes-0.4.0.post0/docs/source/gallery/index.rst +283 -0
  85. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.ipynb +86 -0
  86. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.py +41 -0
  87. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.py.md5 +1 -0
  88. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.rst +377 -0
  89. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields_codeobj.pickle +0 -0
  90. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.ipynb +50 -0
  91. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.py +49 -0
  92. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.py.md5 +1 -0
  93. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.rst +113 -0
  94. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V_codeobj.pickle +0 -0
  95. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.ipynb +50 -0
  96. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.py +59 -0
  97. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.py.md5 +1 -0
  98. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.rst +165 -0
  99. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers_codeobj.pickle +0 -0
  100. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.ipynb +86 -0
  101. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.py +45 -0
  102. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.py.md5 +1 -0
  103. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.rst +270 -0
  104. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion_codeobj.pickle +0 -0
  105. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.ipynb +86 -0
  106. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.py +45 -0
  107. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.py.md5 +1 -0
  108. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.rst +255 -0
  109. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index_codeobj.pickle +0 -0
  110. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.ipynb +86 -0
  111. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.py +45 -0
  112. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.py.md5 +1 -0
  113. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.rst +171 -0
  114. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes_codeobj.pickle +0 -0
  115. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.ipynb +86 -0
  116. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.py +45 -0
  117. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.py.md5 +1 -0
  118. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.rst +255 -0
  119. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index_codeobj.pickle +0 -0
  120. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.ipynb +86 -0
  121. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.py +44 -0
  122. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.py.md5 +1 -0
  123. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.rst +374 -0
  124. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.ipynb +86 -0
  125. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.py +48 -0
  126. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.py.md5 +1 -0
  127. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.rst +774 -0
  128. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1_codeobj.pickle +0 -0
  129. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.ipynb +86 -0
  130. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.py +45 -0
  131. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.py.md5 +1 -0
  132. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.rst +425 -0
  133. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2_codeobj.pickle +0 -0
  134. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_codeobj.pickle +0 -0
  135. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.ipynb +104 -0
  136. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.py +73 -0
  137. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.py.md5 +1 -0
  138. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.rst +183 -0
  139. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber_codeobj.pickle +0 -0
  140. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.ipynb +68 -0
  141. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.py +26 -0
  142. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.py.md5 +1 -0
  143. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.rst +151 -0
  144. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_codeobj.pickle +0 -0
  145. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.ipynb +68 -0
  146. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.py +38 -0
  147. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.py.md5 +1 -0
  148. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.rst +115 -0
  149. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength_codeobj.pickle +0 -0
  150. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.ipynb +68 -0
  151. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.py +38 -0
  152. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.py.md5 +1 -0
  153. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.rst +115 -0
  154. pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength_codeobj.pickle +0 -0
  155. pyfibermodes-0.4.0.post0/docs/source/gallery/sg_execution_times.rst +39 -0
  156. pyfibermodes-0.4.0.post0/docs/source/index.rst +14 -0
  157. pyfibermodes-0.4.0.post0/pyproject.toml +65 -0
  158. pyfibermodes-0.4.0.post0/setup.cfg +4 -0
  159. pyfibermodes-0.4.0.post0/tests/test_api.py +57 -0
  160. pyfibermodes-0.4.0.post0/tests/test_fiber.py +31 -0
  161. pyfibermodes-0.4.0.post0/tests/test_validation.py +45 -0
@@ -0,0 +1,11 @@
1
+ # Specify reviewers for pull requests
2
+
3
+ version: 2
4
+ updates:
5
+ - package-ecosystem: "pip"
6
+ directory: "/"
7
+ target-branch: "master"
8
+ schedule:
9
+ interval: "weekly"
10
+ day: "sunday"
11
+ time: "09:00"
@@ -0,0 +1,54 @@
1
+ name: Deploy
2
+
3
+ on:
4
+ push:
5
+ branches: [ "master" ]
6
+ tags:
7
+ - '*'
8
+ pull_request:
9
+ branches: [ "master" ]
10
+
11
+
12
+ permissions:
13
+ contents: write
14
+
15
+ jobs:
16
+ build_pure_python:
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: MartinPdeS/MPSActions/build_pure_python_package@master
20
+ with:
21
+ python-version: '3.11'
22
+
23
+ publish_coverage:
24
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
25
+ needs: [build_pure_python]
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: MartinPdeS/MPSActions/publish_coverage@master
29
+ with:
30
+ package-name: PyFiberModes
31
+ python-version: "3.11"
32
+ auth: ${{ secrets.GIST_TOKEN }}
33
+ gistID: f0955be398d59efac69042c1b0fbece2
34
+
35
+ publish_documentation:
36
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
37
+ needs: [build_pure_python]
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: MartinPdeS/MPSActions/publish_documentation@master
41
+ with:
42
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
+ package-name: PyFiberModes
44
+ python-version: "3.11" #no documentation for python 3.7 (pickle5 not present˘)
45
+
46
+ publish_wheel:
47
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
48
+ needs: [build_pure_python, publish_documentation, publish_coverage]
49
+ runs-on: ubuntu-latest
50
+ steps:
51
+ - uses: MartinPdeS/MPSActions/publish_pypi@master
52
+ with:
53
+ python-version: "3.11"
54
+ password: ${{ secrets.PYPI_API_TOKEN }}
@@ -0,0 +1,24 @@
1
+ __pycache__/
2
+ build/
3
+ dist/
4
+ *.egg-info/
5
+ *.pyc
6
+ *.npy
7
+ *.npz
8
+ _build/
9
+ *.tab
10
+ *.zip
11
+ *.pdf
12
+ *.fiber
13
+ *.solver
14
+ *.xmi
15
+ *.dump
16
+ *.mat
17
+ *.dat
18
+ *.data
19
+ .coverage
20
+ *.DS_Store
21
+ *.pytest_cache
22
+ *perso
23
+ .ipynb_checkpoints
24
+ gallery/*
@@ -0,0 +1,35 @@
1
+ # .readthedocs.yml
2
+ # Read the Docs configuration file
3
+ # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4
+
5
+ # Required
6
+ version: 2
7
+
8
+ submodules:
9
+ include: all
10
+ recursive: true
11
+
12
+ build:
13
+ os: ubuntu-22.04
14
+
15
+
16
+ tools:
17
+ python: "3.11"
18
+ jobs:
19
+ pre_install:
20
+ - Xvfb :99 &
21
+ - export DISPLAY=:99
22
+ - cd docs && rm -rf source/gallery
23
+ - sleep 3
24
+
25
+ python:
26
+ install:
27
+ - method: pip
28
+ path: .
29
+ extra_requirements:
30
+ - documentation
31
+
32
+ sphinx:
33
+ builder: html
34
+ configuration: docs/source/conf.py
35
+ fail_on_warning: false