PyOptik 1.8.7.post0__tar.gz → 1.8.8.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.
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PKG-INFO +3 -2
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/_version.py +2 -2
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/material/sellmeier_class.py +3 -2
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/material/tabulated_class.py +7 -1
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik.egg-info/PKG-INFO +3 -2
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik.egg-info/requires.txt +3 -1
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/meta.yaml +0 -4
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/pyproject.toml +5 -1
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/tests/test_sellmeier.py +17 -1
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/tests/test_tabulated.py +16 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.flake8 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.github/dependabot.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.github/workflows/deploy_anaconda.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.github/workflows/deploy_coverage.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.github/workflows/deploy_documentation.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.github/workflows/deploy_workflow.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.gitignore +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/.readthedocs.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/LICENSE +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/__init__.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/__main__.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/__init__.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/BAK1.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/BK7.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/SF5.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/air.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/argon.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/crown.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/flint.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/germanium.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/polystyren.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/silicon.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/sellmeier/water.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/aluminium.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/calcium.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/copper.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/gold.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/iron.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/nickel.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/silver.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/sodium.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/data/tabulated/zinc.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/directories.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/__init__.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/classics.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/dielectrics.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/metals.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/minimal.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/organics.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/others.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/libraries/polymers.yml +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/material/__init__.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/material/base_class.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/material_bank.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/units.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik/utils.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik.egg-info/SOURCES.txt +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik.egg-info/dependency_links.txt +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/PyOptik.egg-info/top_level.txt +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/README.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/development/dev_0.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/Makefile +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/README.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/sellmeier/README.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/sellmeier/plot_bk7.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/sellmeier/plot_silica.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/sellmeier/plot_water.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/tabulated/README.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/tabulated/plot_sf5.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/tabulated/plot_silver.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/utils/README.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/utils/build_library.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/utils/create_sellmeier_file.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/utils/create_tabulated_file.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/examples/utils/download_yml_file.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/images/example_bk7.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/images/logo.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/make.bat +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/_static/default.css +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/code.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/conf.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/index.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_bk7_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_silica_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_water_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_bk7_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_silica_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_water_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/index.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_bk7.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_bk7.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_bk7.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_bk7.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_water.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_water.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_water.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_water.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/sg_execution_times.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_sf5_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_silver_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_sf5_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_silver_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/index.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_sf5.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_sf5.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_sf5.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_sf5.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/sg_execution_times.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/build_library.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/build_library.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/build_library.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/build_library.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/build_library_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file.ipynb +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file.py.md5 +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file_codeobj.pickle +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/sphx_glr_create_tabulated_file_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/sphx_glr_download_yml_file_001.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_build_library_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_create_tabulated_file_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_download_yml_file_thumb.png +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/index.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/sg_execution_times.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/index.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/references.rst +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/setup.cfg +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/tests/__init__.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/tests/test_usual_material.py +0 -0
- {pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyOptik
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.8.post0
|
|
4
4
|
Summary: A package for refractive index values.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -48,7 +48,6 @@ Provides-Extra: testing
|
|
|
48
48
|
Requires-Dist: pytest<9.0,>=7.4; extra == "testing"
|
|
49
49
|
Requires-Dist: pytest-cov<6,>=2; extra == "testing"
|
|
50
50
|
Requires-Dist: pytest-json-report~=1.5; extra == "testing"
|
|
51
|
-
Requires-Dist: flake8==7.1.1; extra == "testing"
|
|
52
51
|
Requires-Dist: coverage~=7.6; extra == "testing"
|
|
53
52
|
Provides-Extra: documentation
|
|
54
53
|
Requires-Dist: numpydoc==1.6.0; extra == "documentation"
|
|
@@ -56,6 +55,8 @@ Requires-Dist: sphinx>=5.1.1; extra == "documentation"
|
|
|
56
55
|
Requires-Dist: sphinx-gallery==0.15.0; extra == "documentation"
|
|
57
56
|
Requires-Dist: sphinx-rtd-theme==2.0.0; extra == "documentation"
|
|
58
57
|
Requires-Dist: pydata-sphinx-theme==0.14.1; extra == "documentation"
|
|
58
|
+
Provides-Extra: dev
|
|
59
|
+
Requires-Dist: flake8==7.1.1; extra == "dev"
|
|
59
60
|
|
|
60
61
|
PyOptik
|
|
61
62
|
=======
|
|
@@ -12,5 +12,5 @@ __version__: str
|
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
|
13
13
|
version_tuple: VERSION_TUPLE
|
|
14
14
|
|
|
15
|
-
__version__ = version = '1.8.
|
|
16
|
-
__version_tuple__ = version_tuple = (1, 8,
|
|
15
|
+
__version__ = version = '1.8.8.post0'
|
|
16
|
+
__version_tuple__ = version_tuple = (1, 8, 8)
|
|
@@ -104,7 +104,8 @@ class SellmeierMaterial(BaseMaterial):
|
|
|
104
104
|
ValueError
|
|
105
105
|
If the wavelength is outside the specified range or if an unsupported formula type is encountered.
|
|
106
106
|
"""
|
|
107
|
-
|
|
107
|
+
return_as_scalar = numpy.isscalar(wavelength.magnitude)
|
|
108
|
+
|
|
108
109
|
wavelength = numpy.atleast_1d(wavelength)
|
|
109
110
|
self._check_wavelength(wavelength)
|
|
110
111
|
|
|
@@ -137,7 +138,7 @@ class SellmeierMaterial(BaseMaterial):
|
|
|
137
138
|
case _:
|
|
138
139
|
raise ValueError(f"Unsupported formula type: {self.formula_type}")
|
|
139
140
|
|
|
140
|
-
return n[0] if
|
|
141
|
+
return n[0] if return_as_scalar else n
|
|
141
142
|
|
|
142
143
|
@BaseMaterial.ensure_units
|
|
143
144
|
def plot(self, wavelength: Optional[Quantity] = None) -> None:
|
|
@@ -97,12 +97,18 @@ class TabulatedMaterial(BaseMaterial):
|
|
|
97
97
|
ValueError
|
|
98
98
|
If the wavelength is outside the tabulated range.
|
|
99
99
|
"""
|
|
100
|
+
return_as_scalar = numpy.isscalar(wavelength.magnitude)
|
|
101
|
+
|
|
102
|
+
wavelength = numpy.atleast_1d(wavelength)
|
|
103
|
+
|
|
100
104
|
self._check_wavelength(wavelength)
|
|
101
105
|
|
|
102
106
|
n_interp = numpy.interp(wavelength.to(meter).magnitude, self.wavelength.to(meter).magnitude, self.n_values)
|
|
103
107
|
k_interp = numpy.interp(wavelength.to(meter).magnitude, self.wavelength.to(meter).magnitude, self.k_values)
|
|
104
108
|
|
|
105
|
-
|
|
109
|
+
index = n_interp + 1j * k_interp
|
|
110
|
+
|
|
111
|
+
return index[0] if return_as_scalar else index
|
|
106
112
|
|
|
107
113
|
@BaseMaterial.ensure_units
|
|
108
114
|
def plot(self, wavelength: Optional[Quantity] = None) -> None:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyOptik
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.8.post0
|
|
4
4
|
Summary: A package for refractive index values.
|
|
5
5
|
Author-email: Martin Poinsinet de Sivry-Houle <martin.poinsinet.de.sivry@gmail.com>
|
|
6
6
|
License: MIT License
|
|
@@ -48,7 +48,6 @@ Provides-Extra: testing
|
|
|
48
48
|
Requires-Dist: pytest<9.0,>=7.4; extra == "testing"
|
|
49
49
|
Requires-Dist: pytest-cov<6,>=2; extra == "testing"
|
|
50
50
|
Requires-Dist: pytest-json-report~=1.5; extra == "testing"
|
|
51
|
-
Requires-Dist: flake8==7.1.1; extra == "testing"
|
|
52
51
|
Requires-Dist: coverage~=7.6; extra == "testing"
|
|
53
52
|
Provides-Extra: documentation
|
|
54
53
|
Requires-Dist: numpydoc==1.6.0; extra == "documentation"
|
|
@@ -56,6 +55,8 @@ Requires-Dist: sphinx>=5.1.1; extra == "documentation"
|
|
|
56
55
|
Requires-Dist: sphinx-gallery==0.15.0; extra == "documentation"
|
|
57
56
|
Requires-Dist: sphinx-rtd-theme==2.0.0; extra == "documentation"
|
|
58
57
|
Requires-Dist: pydata-sphinx-theme==0.14.1; extra == "documentation"
|
|
58
|
+
Provides-Extra: dev
|
|
59
|
+
Requires-Dist: flake8==7.1.1; extra == "dev"
|
|
59
60
|
|
|
60
61
|
PyOptik
|
|
61
62
|
=======
|
|
@@ -7,6 +7,9 @@ pyyaml~=6.0
|
|
|
7
7
|
MPSPlots~=1.5.1
|
|
8
8
|
tabulate~=0.9
|
|
9
9
|
|
|
10
|
+
[dev]
|
|
11
|
+
flake8==7.1.1
|
|
12
|
+
|
|
10
13
|
[documentation]
|
|
11
14
|
numpydoc==1.6.0
|
|
12
15
|
sphinx>=5.1.1
|
|
@@ -18,5 +21,4 @@ pydata-sphinx-theme==0.14.1
|
|
|
18
21
|
pytest<9.0,>=7.4
|
|
19
22
|
pytest-cov<6,>=2
|
|
20
23
|
pytest-json-report~=1.5
|
|
21
|
-
flake8==7.1.1
|
|
22
24
|
coverage~=7.6
|
|
@@ -48,7 +48,6 @@ testing = [
|
|
|
48
48
|
"pytest >=7.4,<9.0",
|
|
49
49
|
"pytest-cov >=2,<6",
|
|
50
50
|
"pytest-json-report ~=1.5",
|
|
51
|
-
"flake8 ==7.1.1",
|
|
52
51
|
"coverage ~=7.6"
|
|
53
52
|
]
|
|
54
53
|
|
|
@@ -61,6 +60,11 @@ documentation = [
|
|
|
61
60
|
"pydata-sphinx-theme ==0.14.1",
|
|
62
61
|
]
|
|
63
62
|
|
|
63
|
+
dev = [
|
|
64
|
+
"flake8 ==7.1.1",
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
|
|
64
68
|
[tool.pytest.ini_options]
|
|
65
69
|
python_functions = "test*"
|
|
66
70
|
minversion = "6.0"
|
|
@@ -99,7 +99,7 @@ def test_compute_refractive_index():
|
|
|
99
99
|
material = Material('water')
|
|
100
100
|
|
|
101
101
|
# Test single wavelength input
|
|
102
|
-
wavelength = 500e-9 * meter
|
|
102
|
+
wavelength = [800e-9, 500e-9] * meter
|
|
103
103
|
refractive_index = material.compute_refractive_index(wavelength)
|
|
104
104
|
assert isinstance(refractive_index, np.ndarray)
|
|
105
105
|
|
|
@@ -112,6 +112,22 @@ def test_compute_refractive_index():
|
|
|
112
112
|
assert refractive_indices.shape == wavelength.shape
|
|
113
113
|
|
|
114
114
|
|
|
115
|
+
def test_compute_refractive_index_inputs():
|
|
116
|
+
"""Test computation of refractive index for given wavelengths."""
|
|
117
|
+
material = Material('water')
|
|
118
|
+
|
|
119
|
+
# Test single wavelength input
|
|
120
|
+
wavelength = 500e-9
|
|
121
|
+
refractive_index = material.compute_refractive_index(wavelength)
|
|
122
|
+
|
|
123
|
+
assert np.isscalar(refractive_index), f"Refractive index [{refractive_index}] should return scalar value when wavelength [{wavelength}] input is scalar"
|
|
124
|
+
|
|
125
|
+
wavelength = [500e-9, 800e-9] * meter
|
|
126
|
+
refractive_index = material.compute_refractive_index(wavelength)
|
|
127
|
+
|
|
128
|
+
assert isinstance(refractive_index, np.ndarray), f"Refractive index [{refractive_index}] should return an array when wavelength [{wavelength}] input is an array"
|
|
129
|
+
|
|
130
|
+
|
|
115
131
|
def test_invalid_formula_type():
|
|
116
132
|
"""Test handling of unsupported material types."""
|
|
117
133
|
with pytest.raises(FileNotFoundError):
|
|
@@ -77,6 +77,22 @@ def test_compute_refractive_index():
|
|
|
77
77
|
assert refractive_indices.shape == wavelengths.shape
|
|
78
78
|
|
|
79
79
|
|
|
80
|
+
def test_compute_refractive_index_inputs():
|
|
81
|
+
"""Test computation of refractive index for given wavelengths."""
|
|
82
|
+
material = TabulatedMaterial('zinc')
|
|
83
|
+
|
|
84
|
+
# Test single wavelength input
|
|
85
|
+
wavelength = 500e-9
|
|
86
|
+
refractive_index = material.compute_refractive_index(wavelength)
|
|
87
|
+
|
|
88
|
+
assert np.isscalar(refractive_index), f"Refractive index [{refractive_index}] should return scalar value when wavelength [{wavelength}] input is scalar"
|
|
89
|
+
|
|
90
|
+
wavelength = [500e-9, 800e-9] * meter
|
|
91
|
+
refractive_index = material.compute_refractive_index(wavelength)
|
|
92
|
+
|
|
93
|
+
assert isinstance(refractive_index, np.ndarray), f"Refractive index [{refractive_index}] should return an array when wavelength [{wavelength}] input is an array"
|
|
94
|
+
|
|
95
|
+
|
|
80
96
|
@patch("matplotlib.pyplot.show")
|
|
81
97
|
def test_plot(mock_show):
|
|
82
98
|
"""Test plotting method of TabulatedMaterial."""
|
|
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
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica.py.md5
RENAMED
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/plot_water_codeobj.pickle
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/sellmeier/sg_execution_times.rst
RENAMED
|
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
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver.py.md5
RENAMED
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/plot_silver_codeobj.pickle
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/tabulated/sg_execution_times.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/build_library_codeobj.pickle
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.ipynb
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.py
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.py.md5
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_sellmeier_file.rst
RENAMED
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.ipynb
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.py
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.py.md5
RENAMED
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/create_tabulated_file.rst
RENAMED
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file.ipynb
RENAMED
|
File without changes
|
|
File without changes
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/download_yml_file.py.md5
RENAMED
|
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
|
{pyoptik-1.8.7.post0 → pyoptik-1.8.8.post0}/docs/source/gallery/utils/sg_execution_times.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|