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.
- pyfibermodes-0.4.0.post0/.github/dependabot.yml +11 -0
- pyfibermodes-0.4.0.post0/.github/workflows/deploy_workflow.yml +54 -0
- pyfibermodes-0.4.0.post0/.gitignore +24 -0
- pyfibermodes-0.4.0.post0/.readthedocs.yml +35 -0
- pyfibermodes-0.4.0.post0/LICENSE.txt +674 -0
- pyfibermodes-0.4.0.post0/PKG-INFO +147 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/__future__.py +108 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/__init__.py +36 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/_version.py +16 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/factory.py +136 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/fiber.py +721 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/field.py +622 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/fundamentals.py +248 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/mode.py +48 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/mode_instances.py +34 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/__init__.py +1 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/base_solver.py +184 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/mlsif/__init__.py +1 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/mlsif/neff.py +586 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/ssif/__init__.py +2 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/ssif/cutoff.py +113 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/ssif/neff.py +573 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/tlsif/__init__.py +1 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/solver/tlsif/cutoff.py +394 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/stepindex.py +335 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/tools/__init__.py +0 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/tools/directories.py +41 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/tools/utils.py +20 -0
- pyfibermodes-0.4.0.post0/PyFiberModes/wavelength.py +96 -0
- pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/PKG-INFO +147 -0
- pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/SOURCES.txt +159 -0
- pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/dependency_links.txt +1 -0
- pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/requires.txt +21 -0
- pyfibermodes-0.4.0.post0/PyFiberModes.egg-info/top_level.txt +1 -0
- pyfibermodes-0.4.0.post0/README.rst +109 -0
- pyfibermodes-0.4.0.post0/Untitled.ipynb +212 -0
- pyfibermodes-0.4.0.post0/docs/Makefile +19 -0
- pyfibermodes-0.4.0.post0/docs/examples/README.rst +6 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_DCF_fields.py +41 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_U_vs_V.py +49 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_comparison_solvers.py +59 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_dispersion.py +45 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_effective_index.py +45 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_fiber_LP_modes.py +45 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_group_index.py +45 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_mode_field.py +44 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_mode_field_1.py +48 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_mode_field_2.py +45 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_neff_tapered_fiber.py +73 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_smf28.py +26 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_smf28_dispersion_vs_wavelength.py +38 -0
- pyfibermodes-0.4.0.post0/docs/examples/plot_smf28_group_index_vs_wavelength.py +38 -0
- pyfibermodes-0.4.0.post0/docs/make.bat +35 -0
- pyfibermodes-0.4.0.post0/docs/source/_static/default.css +19 -0
- pyfibermodes-0.4.0.post0/docs/source/code.rst +67 -0
- pyfibermodes-0.4.0.post0/docs/source/conf.py +154 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_DCF_fields_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_U_vs_V_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_comparison_solvers_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_dispersion_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_effective_index_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_fiber_LP_modes_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_group_index_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_mode_field_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_mode_field_1_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_mode_field_2_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_neff_tapered_fiber_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_smf28_dispersion_vs_wavelength_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/sphx_glr_plot_smf28_group_index_vs_wavelength_001.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_DCF_fields_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_U_vs_V_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_comparison_solvers_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_dispersion_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_effective_index_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_fiber_LP_modes_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_group_index_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_mode_field_1_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_mode_field_2_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_mode_field_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_neff_tapered_fiber_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_smf28_dispersion_vs_wavelength_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_smf28_group_index_vs_wavelength_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/images/thumb/sphx_glr_plot_smf28_thumb.png +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/index.rst +283 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.py +41 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields.rst +377 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_DCF_fields_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.ipynb +50 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.py +49 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V.rst +113 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_U_vs_V_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.ipynb +50 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.py +59 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers.rst +165 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_comparison_solvers_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.py +45 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion.rst +270 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_dispersion_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.py +45 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index.rst +255 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_effective_index_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.py +45 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes.rst +171 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_fiber_LP_modes_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.py +45 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index.rst +255 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_group_index_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.py +44 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field.rst +374 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.py +48 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1.rst +774 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_1_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.ipynb +86 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.py +45 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2.rst +425 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_2_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_mode_field_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.ipynb +104 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.py +73 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber.rst +183 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_neff_tapered_fiber_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.ipynb +68 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.py +26 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28.rst +151 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.ipynb +68 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.py +38 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength.rst +115 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_dispersion_vs_wavelength_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.ipynb +68 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.py +38 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.py.md5 +1 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength.rst +115 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/plot_smf28_group_index_vs_wavelength_codeobj.pickle +0 -0
- pyfibermodes-0.4.0.post0/docs/source/gallery/sg_execution_times.rst +39 -0
- pyfibermodes-0.4.0.post0/docs/source/index.rst +14 -0
- pyfibermodes-0.4.0.post0/pyproject.toml +65 -0
- pyfibermodes-0.4.0.post0/setup.cfg +4 -0
- pyfibermodes-0.4.0.post0/tests/test_api.py +57 -0
- pyfibermodes-0.4.0.post0/tests/test_fiber.py +31 -0
- pyfibermodes-0.4.0.post0/tests/test_validation.py +45 -0
|
@@ -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
|