PyOptik 1.9.8.2__tar.gz → 1.9.8.3__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.
- pyoptik-1.9.8.3/.github/workflows/deploy_documentation.yml +67 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PKG-INFO +1 -1
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/_version.py +2 -2
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik.egg-info/PKG-INFO +1 -1
- pyoptik-1.9.8.2/.github/workflows/deploy_documentation.yml +0 -133
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.flake8 +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.github/dependabot.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.github/workflows/deploy_PyPi.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.github/workflows/deploy_anaconda.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.github/workflows/deploy_coverage.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.gitignore +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/.readthedocs.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/LICENSE +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/__init__.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/__main__.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/__init__.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/BAK1.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/BK7.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/SF5.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/air.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/argon.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/crown.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/flint.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/germanium.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/polystyren.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/silicon.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/sellmeier/water.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/aluminium.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/calcium.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/copper.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/gold.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/iron.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/nickel.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/silver.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/sodium.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/data/tabulated/zinc.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/directories.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/__init__.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/classics.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/dielectrics.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/metals.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/minimal.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/organics.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/others.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/libraries/polymers.yml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/material/__init__.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/material/base_class.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/material/sellmeier_class.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/material/tabulated_class.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/material_bank.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/material_type.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/units.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik/utils.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik.egg-info/SOURCES.txt +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik.egg-info/dependency_links.txt +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik.egg-info/requires.txt +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/PyOptik.egg-info/top_level.txt +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/README.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/development/dev_0.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/Makefile +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/README.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/sellmeier/README.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/sellmeier/plot_bk7.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/sellmeier/plot_silica.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/sellmeier/plot_water.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/tabulated/README.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/tabulated/plot_sf5.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/tabulated/plot_silver.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/utils/README.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/utils/build_library.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/utils/create_sellmeier_file.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/utils/create_tabulated_file.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/examples/utils/download_yml_file.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/images/example_bk7.png +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/images/logo.png +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/make.bat +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/_static/default.css +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/_static/thumbnail.png +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/code.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/conf.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/gallery/index.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/index.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/docs/source/references.rst +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/meta.yaml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/pyproject.toml +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/setup.cfg +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/tests/__init__.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/tests/test_sellmeier.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/tests/test_tabulated.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/tests/test_usual_material.py +0 -0
- {pyoptik-1.9.8.2 → pyoptik-1.9.8.3}/tests/test_utils.py +0 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# .github/workflows/deploy_documentation.yml
|
|
2
|
+
name: Documentation
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: [ "master" ]
|
|
7
|
+
tags:
|
|
8
|
+
- '*'
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "master" ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
documentation:
|
|
14
|
+
name: Run the documentation building tools
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
pull-requests: write
|
|
18
|
+
contents: write
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: "Set-up: Python 3.11"
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
id: cp311
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.11"
|
|
26
|
+
|
|
27
|
+
- name: "Install: Dependencies for headless server"
|
|
28
|
+
shell: bash
|
|
29
|
+
run: |
|
|
30
|
+
sudo apt-get update
|
|
31
|
+
sudo apt-get install xvfb
|
|
32
|
+
|
|
33
|
+
- name: "Checkout requirements and files for testing"
|
|
34
|
+
uses: actions/checkout@v4
|
|
35
|
+
with:
|
|
36
|
+
fetch-depth: 0
|
|
37
|
+
submodules: true
|
|
38
|
+
|
|
39
|
+
- name: Install everything, run the tests, produce the .coverage file
|
|
40
|
+
run: |
|
|
41
|
+
python -m pip install wheel build
|
|
42
|
+
python -m build --wheel
|
|
43
|
+
python -m pip install .[documentation]
|
|
44
|
+
|
|
45
|
+
- name: Install dependencies
|
|
46
|
+
run: |
|
|
47
|
+
pip install sphinx sphinx_rtd_theme myst_parser jq
|
|
48
|
+
|
|
49
|
+
- name: Get current tag
|
|
50
|
+
id: get_tag
|
|
51
|
+
run: |
|
|
52
|
+
git fetch --tags
|
|
53
|
+
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
54
|
+
|
|
55
|
+
- name: Sphinx build
|
|
56
|
+
run: |
|
|
57
|
+
sphinx-build docs/source _build
|
|
58
|
+
|
|
59
|
+
- name: "Deploy to documentation_page: specific version"
|
|
60
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
61
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
62
|
+
with:
|
|
63
|
+
publish_branch: documentation_page
|
|
64
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
65
|
+
publish_dir: _build/
|
|
66
|
+
destination_dir: "docs/${{ env.tag }}"
|
|
67
|
+
keep_files: true
|
|
@@ -12,5 +12,5 @@ __version__: str
|
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
|
13
13
|
version_tuple: VERSION_TUPLE
|
|
14
14
|
|
|
15
|
-
__version__ = version = '1.9.8.
|
|
16
|
-
__version_tuple__ = version_tuple = (1, 9, 8,
|
|
15
|
+
__version__ = version = '1.9.8.3'
|
|
16
|
+
__version_tuple__ = version_tuple = (1, 9, 8, 3)
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
# .github/workflows/deploy_documentation.yml
|
|
2
|
-
name: Documentation
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches: [ "master" ]
|
|
7
|
-
tags:
|
|
8
|
-
- '*'
|
|
9
|
-
pull_request:
|
|
10
|
-
branches: [ "master" ]
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
documentation:
|
|
14
|
-
name: Run the documentation building tools
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
permissions:
|
|
17
|
-
pull-requests: write
|
|
18
|
-
contents: write
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- name: "Set-up: Python 3.11"
|
|
22
|
-
uses: actions/setup-python@v5
|
|
23
|
-
id: cp311
|
|
24
|
-
with:
|
|
25
|
-
python-version: "3.11"
|
|
26
|
-
|
|
27
|
-
- name: "Install: Dependencies for headless server"
|
|
28
|
-
shell: bash
|
|
29
|
-
run: |
|
|
30
|
-
sudo apt-get update
|
|
31
|
-
sudo apt-get install xvfb
|
|
32
|
-
|
|
33
|
-
- name: "Checkout requirements and files for testing"
|
|
34
|
-
uses: actions/checkout@v4
|
|
35
|
-
with:
|
|
36
|
-
fetch-depth: 0
|
|
37
|
-
submodules: true
|
|
38
|
-
|
|
39
|
-
- name: Install everything, run the tests, produce the .coverage file
|
|
40
|
-
run: |
|
|
41
|
-
python -m pip install wheel build
|
|
42
|
-
python -m build --wheel
|
|
43
|
-
python -m pip install .[documentation]
|
|
44
|
-
|
|
45
|
-
- name: Install dependencies
|
|
46
|
-
run: |
|
|
47
|
-
pip install sphinx sphinx_rtd_theme myst_parser jq
|
|
48
|
-
|
|
49
|
-
- name: Get current tag
|
|
50
|
-
id: get_tag
|
|
51
|
-
run: |
|
|
52
|
-
git fetch --tags
|
|
53
|
-
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
54
|
-
|
|
55
|
-
- name: Sphinx build
|
|
56
|
-
run: |
|
|
57
|
-
sphinx-build docs/source _build
|
|
58
|
-
|
|
59
|
-
- name: "Deploy to documentation_page: specific version"
|
|
60
|
-
uses: peaceiris/actions-gh-pages@v3
|
|
61
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
62
|
-
with:
|
|
63
|
-
publish_branch: documentation_page
|
|
64
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
65
|
-
publish_dir: _build/
|
|
66
|
-
destination_dir: "docs/${{ env.tag }}"
|
|
67
|
-
keep_files: true
|
|
68
|
-
|
|
69
|
-
update_version_switcher:
|
|
70
|
-
name: Update version_switcher.json
|
|
71
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
72
|
-
runs-on: ubuntu-latest
|
|
73
|
-
needs: documentation # This job depends on the successful completion of the 'documentation' job
|
|
74
|
-
permissions:
|
|
75
|
-
contents: write
|
|
76
|
-
|
|
77
|
-
steps:
|
|
78
|
-
- name: "Checkout documentation_page branch"
|
|
79
|
-
uses: actions/checkout@v4
|
|
80
|
-
with:
|
|
81
|
-
fetch-depth: 0
|
|
82
|
-
ref: documentation_page # Directly check out the documentation_page branch
|
|
83
|
-
|
|
84
|
-
- name: Install jq for JSON manipulation
|
|
85
|
-
run: |
|
|
86
|
-
sudo apt-get update
|
|
87
|
-
sudo apt-get install -y jq
|
|
88
|
-
|
|
89
|
-
- name: Scan for versions in docs folder and update version_switcher.json
|
|
90
|
-
run: |
|
|
91
|
-
# Define the path to version_switcher.json
|
|
92
|
-
json_file="version_switcher.json"
|
|
93
|
-
docs_path="docs"
|
|
94
|
-
base_url="https://martinpdes.github.io/PyOptik"
|
|
95
|
-
|
|
96
|
-
# Initialize an empty array for versions in JSON format
|
|
97
|
-
versions_list=$(mktemp) # Temporary file to store the array
|
|
98
|
-
|
|
99
|
-
echo "[" > $versions_list # Start of the JSON array
|
|
100
|
-
|
|
101
|
-
# Scan each directory in docs and add it to the versions list
|
|
102
|
-
first_entry=true
|
|
103
|
-
for version_dir in ${docs_path}/*/; do
|
|
104
|
-
version=$(basename "$version_dir")
|
|
105
|
-
version_url="${base_url}/${docs_path}/${version}"
|
|
106
|
-
|
|
107
|
-
# Add a comma if it's not the first entry
|
|
108
|
-
if [ "$first_entry" = true ]; then
|
|
109
|
-
first_entry=false
|
|
110
|
-
else
|
|
111
|
-
echo "," >> $versions_list
|
|
112
|
-
fi
|
|
113
|
-
|
|
114
|
-
# Append each version as a JSON entry
|
|
115
|
-
jq -n \
|
|
116
|
-
--arg name "$version" \
|
|
117
|
-
--arg version "$version" \
|
|
118
|
-
--arg url "$version_url" \
|
|
119
|
-
'{name: $name, version: $version, url: $url}' >> $versions_list
|
|
120
|
-
done
|
|
121
|
-
|
|
122
|
-
echo "]" >> $versions_list # End of the JSON array
|
|
123
|
-
|
|
124
|
-
# Move the temporary array file to version_switcher.json
|
|
125
|
-
mv $versions_list $json_file
|
|
126
|
-
|
|
127
|
-
- name: Commit and push the updated version_switcher.json
|
|
128
|
-
run: |
|
|
129
|
-
git config user.name "github-actions[bot]"
|
|
130
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
131
|
-
git add version_switcher.json
|
|
132
|
-
git commit -m "Update version_switcher.json with new tag ${{ env.tag }}"
|
|
133
|
-
git push origin documentation_page
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|