PyOptik 1.9.8.3__tar.gz → 1.9.8.4__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.4/.github/workflows/add_documentation_version.yml +73 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PKG-INFO +1 -1
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/_version.py +2 -2
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik.egg-info/PKG-INFO +1 -1
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik.egg-info/SOURCES.txt +1 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.flake8 +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.github/dependabot.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.github/workflows/deploy_PyPi.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.github/workflows/deploy_anaconda.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.github/workflows/deploy_coverage.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.github/workflows/deploy_documentation.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.gitignore +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/.readthedocs.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/LICENSE +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/__init__.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/__main__.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/__init__.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/BAK1.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/BK7.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/SF5.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/air.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/argon.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/crown.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/flint.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/germanium.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/polystyren.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/silicon.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/sellmeier/water.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/aluminium.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/calcium.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/copper.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/gold.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/iron.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/nickel.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/silver.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/sodium.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/data/tabulated/zinc.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/directories.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/__init__.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/classics.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/dielectrics.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/metals.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/minimal.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/organics.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/others.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/libraries/polymers.yml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/material/__init__.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/material/base_class.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/material/sellmeier_class.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/material/tabulated_class.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/material_bank.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/material_type.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/units.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik/utils.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik.egg-info/dependency_links.txt +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik.egg-info/requires.txt +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/PyOptik.egg-info/top_level.txt +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/README.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/development/dev_0.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/Makefile +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/README.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/sellmeier/README.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/sellmeier/plot_bk7.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/sellmeier/plot_silica.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/sellmeier/plot_water.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/tabulated/README.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/tabulated/plot_sf5.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/tabulated/plot_silver.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/utils/README.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/utils/build_library.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/utils/create_sellmeier_file.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/utils/create_tabulated_file.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/examples/utils/download_yml_file.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/images/example_bk7.png +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/images/logo.png +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/make.bat +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/_static/default.css +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/_static/thumbnail.png +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/code.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/conf.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/gallery/index.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/index.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/docs/source/references.rst +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/meta.yaml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/pyproject.toml +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/setup.cfg +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/tests/__init__.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/tests/test_sellmeier.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/tests/test_tabulated.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/tests/test_usual_material.py +0 -0
- {pyoptik-1.9.8.3 → pyoptik-1.9.8.4}/tests/test_utils.py +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Update Documentation Versions
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- documentation_page # Run on pushes to documentation_page branch
|
|
7
|
+
tags:
|
|
8
|
+
- '*' # Run on all new tags
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
update_version_switcher:
|
|
12
|
+
name: Update version_switcher.json
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
permissions:
|
|
15
|
+
contents: write
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: "Checkout documentation_page branch"
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
ref: documentation_page # Directly check out the documentation_page branch
|
|
23
|
+
|
|
24
|
+
- name: Install jq for JSON manipulation
|
|
25
|
+
run: |
|
|
26
|
+
sudo apt-get update
|
|
27
|
+
sudo apt-get install -y jq
|
|
28
|
+
|
|
29
|
+
- name: Scan for versions in docs folder and update version_switcher.json
|
|
30
|
+
run: |
|
|
31
|
+
# Define the path to version_switcher.json
|
|
32
|
+
json_file="version_switcher.json"
|
|
33
|
+
docs_path="docs"
|
|
34
|
+
base_url="https://martinpdes.github.io/PyOptik"
|
|
35
|
+
|
|
36
|
+
# Initialize an empty array for versions in JSON format
|
|
37
|
+
versions_list=$(mktemp) # Temporary file to store the array
|
|
38
|
+
|
|
39
|
+
echo "[" > $versions_list # Start of the JSON array
|
|
40
|
+
|
|
41
|
+
# Scan each directory in docs and add it to the versions list
|
|
42
|
+
first_entry=true
|
|
43
|
+
for version_dir in ${docs_path}/*/; do
|
|
44
|
+
version=$(basename "$version_dir")
|
|
45
|
+
version_url="${base_url}/${docs_path}/${version}"
|
|
46
|
+
|
|
47
|
+
# Add a comma if it's not the first entry
|
|
48
|
+
if [ "$first_entry" = true ]; then
|
|
49
|
+
first_entry=false
|
|
50
|
+
else
|
|
51
|
+
echo "," >> $versions_list
|
|
52
|
+
fi
|
|
53
|
+
|
|
54
|
+
# Append each version as a JSON entry
|
|
55
|
+
jq -n \
|
|
56
|
+
--arg name "$version" \
|
|
57
|
+
--arg version "$version" \
|
|
58
|
+
--arg url "$version_url" \
|
|
59
|
+
'{name: $name, version: $version, url: $url}' >> $versions_list
|
|
60
|
+
done
|
|
61
|
+
|
|
62
|
+
echo "]" >> $versions_list # End of the JSON array
|
|
63
|
+
|
|
64
|
+
# Move the temporary array file to version_switcher.json
|
|
65
|
+
mv $versions_list $json_file
|
|
66
|
+
|
|
67
|
+
- name: Commit and push the updated version_switcher.json
|
|
68
|
+
run: |
|
|
69
|
+
git config user.name "github-actions[bot]"
|
|
70
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
71
|
+
git add version_switcher.json
|
|
72
|
+
git commit -m "Update version_switcher.json with all versions in docs folder"
|
|
73
|
+
git push origin documentation_page
|
|
@@ -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.4'
|
|
16
|
+
__version_tuple__ = version_tuple = (1, 9, 8, 4)
|
|
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
|