PyOptik 1.8.2.post0__tar.gz → 1.8.4.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.2.post0 → pyoptik-1.8.4.post0}/PKG-INFO +14 -12
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/_version.py +2 -2
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/material/base_class.py +2 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/material_bank.py +3 -2
- pyoptik-1.8.4.post0/PyOptik/units.py +61 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik.egg-info/PKG-INFO +14 -12
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik.egg-info/requires.txt +8 -6
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/README.rst +5 -5
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/tabulated/plot_silver.py +1 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/utils/create_sellmeier_file.py +4 -4
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/utils/create_tabulated_file.py +3 -4
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/utils/download_yml_file.py +2 -2
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/conf.py +0 -2
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_bk7.py +1 -0
- pyoptik-1.8.4.post0/docs/source/gallery/sellmeier/plot_bk7.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_bk7.rst +2 -3
- pyoptik-1.8.4.post0/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_silica.py +1 -0
- pyoptik-1.8.4.post0/docs/source/gallery/sellmeier/plot_silica.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_silica.rst +2 -3
- pyoptik-1.8.4.post0/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_water.py +1 -0
- pyoptik-1.8.4.post0/docs/source/gallery/sellmeier/plot_water.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_water.rst +2 -3
- pyoptik-1.8.4.post0/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/sg_execution_times.rst +4 -4
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/plot_sf5.py +1 -0
- pyoptik-1.8.4.post0/docs/source/gallery/tabulated/plot_sf5.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/plot_sf5.rst +2 -3
- pyoptik-1.8.4.post0/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/plot_silver.ipynb +1 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/plot_silver.py +2 -1
- pyoptik-1.8.4.post0/docs/source/gallery/tabulated/plot_silver.py.md5 +1 -0
- pyoptik-1.8.4.post0/docs/source/gallery/tabulated/plot_silver.rst +112 -0
- pyoptik-1.8.4.post0/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/sg_execution_times.rst +3 -3
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/build_library.ipynb +8 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/build_library.py +1 -0
- pyoptik-1.8.4.post0/docs/source/gallery/utils/build_library.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/build_library.rst +17 -38
- pyoptik-1.8.4.post0/docs/source/gallery/utils/build_library_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/create_sellmeier_file.ipynb +1 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/create_sellmeier_file.py +5 -4
- pyoptik-1.8.4.post0/docs/source/gallery/utils/create_sellmeier_file.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/create_sellmeier_file.rst +6 -8
- pyoptik-1.8.4.post0/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/create_tabulated_file.ipynb +1 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/create_tabulated_file.py +4 -4
- pyoptik-1.8.4.post0/docs/source/gallery/utils/create_tabulated_file.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/create_tabulated_file.rst +5 -8
- pyoptik-1.8.4.post0/docs/source/gallery/utils/create_tabulated_file_codeobj.pickle +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/download_yml_file.ipynb +1 -1
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/download_yml_file.py +3 -2
- pyoptik-1.8.4.post0/docs/source/gallery/utils/download_yml_file.py.md5 +1 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/download_yml_file.rst +4 -5
- pyoptik-1.8.4.post0/docs/source/gallery/utils/download_yml_file_codeobj.pickle +0 -0
- pyoptik-1.8.4.post0/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
- pyoptik-1.8.4.post0/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/sg_execution_times.rst +5 -5
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/meta.yaml +6 -6
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/pyproject.toml +20 -18
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/tests/test_utils.py +11 -2
- pyoptik-1.8.2.post0/PyOptik/units.py +0 -9
- pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_bk7.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_silica.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_water.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_sf5.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_silver.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_silver.rst +0 -85
- pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/utils/build_library.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/utils/build_library_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/utils/create_sellmeier_file.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/utils/create_tabulated_file.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/utils/create_tabulated_file_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/utils/download_yml_file.py.md5 +0 -1
- pyoptik-1.8.2.post0/docs/source/gallery/utils/download_yml_file_codeobj.pickle +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
- pyoptik-1.8.2.post0/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.github/dependabot.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.github/workflows/deploy_anaconda.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.github/workflows/deploy_coverage.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.github/workflows/deploy_documentation.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.github/workflows/deploy_workflow.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.gitignore +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/.readthedocs.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/LICENSE +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/__init__.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/__main__.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/__init__.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/classics.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/glasses.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/metals.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/minimal.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/organics.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/others.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/plastics.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/BAK1.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/BK7.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/SF5.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/air.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/argon.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/crown.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/flint.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/germanium.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/polystyren.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/silicon.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/sellmeier/water.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/aluminium.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/calcium.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/copper.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/gold.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/iron.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/nickel.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/silver.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/sodium.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/data/tabulated/zinc.yml +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/directories.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/material/__init__.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/material/sellmeier_class.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/material/tabulated_class.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik/utils.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik.egg-info/SOURCES.txt +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik.egg-info/dependency_links.txt +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/PyOptik.egg-info/top_level.txt +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/development/dev_0.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/Makefile +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/README.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/sellmeier/README.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/sellmeier/plot_bk7.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/sellmeier/plot_silica.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/sellmeier/plot_water.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/tabulated/README.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/tabulated/plot_sf5.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/utils/README.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/examples/utils/build_library.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/images/example_bk7.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/images/logo.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/make.bat +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/_static/default.css +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/code.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/index.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_bk7_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_silica_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_water_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_bk7_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_silica_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_water_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/index.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_bk7.ipynb +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_silica.ipynb +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/plot_water.ipynb +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_sf5_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_silver_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_sf5_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_silver_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/index.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/tabulated/plot_sf5.ipynb +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/images/sphx_glr_create_tabulated_file_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/images/sphx_glr_download_yml_file_001.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_build_library_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_create_tabulated_file_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_download_yml_file_thumb.png +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/utils/index.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/index.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/references.rst +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/setup.cfg +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/tests/__init__.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/tests/test_sellmeier.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/tests/test_tabulated.py +0 -0
- {pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/tests/test_usual_material.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.4.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
|
|
@@ -36,12 +36,14 @@ Classifier: Intended Audience :: Science/Research
|
|
|
36
36
|
Requires-Python: >=3.10
|
|
37
37
|
Description-Content-Type: text/x-rst
|
|
38
38
|
License-File: LICENSE
|
|
39
|
-
Requires-Dist: pint
|
|
40
|
-
Requires-Dist: pydantic
|
|
41
|
-
Requires-Dist: numpy
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist:
|
|
44
|
-
Requires-Dist:
|
|
39
|
+
Requires-Dist: pint~=0.24
|
|
40
|
+
Requires-Dist: pydantic~=2.9
|
|
41
|
+
Requires-Dist: numpy~=1.26
|
|
42
|
+
Requires-Dist: matplotlib~=3.8
|
|
43
|
+
Requires-Dist: requests~=2.31
|
|
44
|
+
Requires-Dist: pyyaml~=6.0
|
|
45
|
+
Requires-Dist: MPSPlots~=1.5.1
|
|
46
|
+
Requires-Dist: tabulate~=0.9
|
|
45
47
|
Provides-Extra: testing
|
|
46
48
|
Requires-Dist: pytest>=0.6; extra == "testing"
|
|
47
49
|
Requires-Dist: pytest-cov>=2.0; extra == "testing"
|
|
@@ -66,7 +68,7 @@ PyOptik is a Python tool designed to import refractive indexes and extinction co
|
|
|
66
68
|
|
|
67
69
|
.. list-table::
|
|
68
70
|
:widths: 10 25 25
|
|
69
|
-
:header-rows:
|
|
71
|
+
:header-rows: 0
|
|
70
72
|
|
|
71
73
|
* - Meta
|
|
72
74
|
- |python|
|
|
@@ -274,10 +276,6 @@ As of 2024, PyOptik is still under development. If you would like to collaborate
|
|
|
274
276
|
:alt: PyPi version
|
|
275
277
|
:target: https://pypistats.org/packages/pyoptik
|
|
276
278
|
|
|
277
|
-
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pyoptik/badges/downloads.svg
|
|
278
|
-
:alt: Anaconda downloads
|
|
279
|
-
:target: https://anaconda.org/martinpdes/pyoptik
|
|
280
|
-
|
|
281
279
|
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/PyOptik/python-coverage-comment-action-data/badge.svg
|
|
282
280
|
:alt: Unittest coverage
|
|
283
281
|
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/PyOptik/blob/python-coverage-comment-action-data/htmlcov/index.html
|
|
@@ -285,3 +283,7 @@ As of 2024, PyOptik is still under development. If you would like to collaborate
|
|
|
285
283
|
.. |anaconda| image:: https://anaconda.org/martinpdes/pyoptik/badges/version.svg
|
|
286
284
|
:alt: Anaconda version
|
|
287
285
|
:target: https://anaconda.org/martinpdes/pyoptik
|
|
286
|
+
|
|
287
|
+
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pyoptik/badges/downloads.svg
|
|
288
|
+
:alt: Anaconda downloads
|
|
289
|
+
:target: https://anaconda.org/martinpdes/pyoptik
|
|
@@ -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.4.post0'
|
|
16
|
+
__version_tuple__ = version_tuple = (1, 8, 4)
|
|
@@ -73,7 +73,8 @@ class BaseMaterial:
|
|
|
73
73
|
raise ValueError('Wavelenght must be provided for computation.')
|
|
74
74
|
wavelength = numpy.linspace(self.wavelength_bound[0].magnitude, self.wavelength_bound[1].magnitude, 100) * self.wavelength_bound.units
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
import PyOptik.units
|
|
77
|
+
if not isinstance(wavelength, PyOptik.units.Quantity):
|
|
77
78
|
wavelength = wavelength * meter
|
|
78
79
|
return func(self, wavelength, *args, **kwargs)
|
|
79
80
|
return wrapper
|
|
@@ -80,6 +80,9 @@ class _MaterialBank():
|
|
|
80
80
|
|
|
81
81
|
raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{material_name}'")
|
|
82
82
|
|
|
83
|
+
def get(self, filename: str) -> Union[SellmeierMaterial, TabulatedMaterial]:
|
|
84
|
+
return self.__getattr__(filename)
|
|
85
|
+
|
|
83
86
|
@property
|
|
84
87
|
def sellmeier(self) -> List[str]:
|
|
85
88
|
return [
|
|
@@ -220,8 +223,6 @@ class _MaterialBank():
|
|
|
220
223
|
|
|
221
224
|
# Function to remove matching files in a given directory
|
|
222
225
|
def remove_matching_files(directory: Path):
|
|
223
|
-
if not directory.exists():
|
|
224
|
-
return
|
|
225
226
|
for file in directory.glob("*.yml"):
|
|
226
227
|
if pattern.match(file.stem):
|
|
227
228
|
logging.info(f"Removing file: {file}")
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
from typing import Optional
|
|
2
|
+
import pint
|
|
3
|
+
|
|
4
|
+
ureg = pint.UnitRegistry()
|
|
5
|
+
pint.set_application_registry(ureg)
|
|
6
|
+
|
|
7
|
+
# Define a list of base units to scale
|
|
8
|
+
BASE_UNITS = [
|
|
9
|
+
'meter'
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
# Define prefixes for scaling units
|
|
13
|
+
SCALES = ['nano', 'micro', 'milli', '', 'kilo', 'mega']
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def initialize_registry(ureg: Optional[pint.UnitRegistry] = None) -> None:
|
|
17
|
+
"""
|
|
18
|
+
Initialize and set up a unit registry. This function also leaks
|
|
19
|
+
the units into the global namespace for easy access throughout
|
|
20
|
+
the module.
|
|
21
|
+
|
|
22
|
+
Parameters
|
|
23
|
+
----------
|
|
24
|
+
ureg: Optional[pint.UnitRegistry]
|
|
25
|
+
A UnitRegistry object to use. If None, the default PintType.ureg will be used.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
# If no unit registry is provided, use the default
|
|
29
|
+
ureg = ureg or pint.UnitRegistry()
|
|
30
|
+
|
|
31
|
+
# Set up matplotlib integration and unit formatting
|
|
32
|
+
ureg.setup_matplotlib()
|
|
33
|
+
ureg.formatter.default_format = '~P' # Compact format without units like 'meter'
|
|
34
|
+
|
|
35
|
+
# Leak scaled units into the global namespace
|
|
36
|
+
for unit in BASE_UNITS:
|
|
37
|
+
for scale in SCALES:
|
|
38
|
+
scaled_unit_name = scale + unit
|
|
39
|
+
globals()[scaled_unit_name] = getattr(ureg, scaled_unit_name)
|
|
40
|
+
|
|
41
|
+
# Leak commonly used specific units into the global namespace
|
|
42
|
+
common_units = {
|
|
43
|
+
'RIU': ureg.refractive_index_unit,
|
|
44
|
+
'refractive_index_unit': ureg.refractive_index_unit,
|
|
45
|
+
'AU': ureg.dimensionless,
|
|
46
|
+
'distance': ureg.meter.dimensionality,
|
|
47
|
+
'Quantity': ureg.Quantity
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
# Leak the common units into the global namespace
|
|
51
|
+
globals().update(common_units)
|
|
52
|
+
|
|
53
|
+
globals()['ureg'] = ureg
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
initialize_registry(ureg)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: PyOptik
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.4.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
|
|
@@ -36,12 +36,14 @@ Classifier: Intended Audience :: Science/Research
|
|
|
36
36
|
Requires-Python: >=3.10
|
|
37
37
|
Description-Content-Type: text/x-rst
|
|
38
38
|
License-File: LICENSE
|
|
39
|
-
Requires-Dist: pint
|
|
40
|
-
Requires-Dist: pydantic
|
|
41
|
-
Requires-Dist: numpy
|
|
42
|
-
Requires-Dist:
|
|
43
|
-
Requires-Dist:
|
|
44
|
-
Requires-Dist:
|
|
39
|
+
Requires-Dist: pint~=0.24
|
|
40
|
+
Requires-Dist: pydantic~=2.9
|
|
41
|
+
Requires-Dist: numpy~=1.26
|
|
42
|
+
Requires-Dist: matplotlib~=3.8
|
|
43
|
+
Requires-Dist: requests~=2.31
|
|
44
|
+
Requires-Dist: pyyaml~=6.0
|
|
45
|
+
Requires-Dist: MPSPlots~=1.5.1
|
|
46
|
+
Requires-Dist: tabulate~=0.9
|
|
45
47
|
Provides-Extra: testing
|
|
46
48
|
Requires-Dist: pytest>=0.6; extra == "testing"
|
|
47
49
|
Requires-Dist: pytest-cov>=2.0; extra == "testing"
|
|
@@ -66,7 +68,7 @@ PyOptik is a Python tool designed to import refractive indexes and extinction co
|
|
|
66
68
|
|
|
67
69
|
.. list-table::
|
|
68
70
|
:widths: 10 25 25
|
|
69
|
-
:header-rows:
|
|
71
|
+
:header-rows: 0
|
|
70
72
|
|
|
71
73
|
* - Meta
|
|
72
74
|
- |python|
|
|
@@ -274,10 +276,6 @@ As of 2024, PyOptik is still under development. If you would like to collaborate
|
|
|
274
276
|
:alt: PyPi version
|
|
275
277
|
:target: https://pypistats.org/packages/pyoptik
|
|
276
278
|
|
|
277
|
-
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pyoptik/badges/downloads.svg
|
|
278
|
-
:alt: Anaconda downloads
|
|
279
|
-
:target: https://anaconda.org/martinpdes/pyoptik
|
|
280
|
-
|
|
281
279
|
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/PyOptik/python-coverage-comment-action-data/badge.svg
|
|
282
280
|
:alt: Unittest coverage
|
|
283
281
|
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/PyOptik/blob/python-coverage-comment-action-data/htmlcov/index.html
|
|
@@ -285,3 +283,7 @@ As of 2024, PyOptik is still under development. If you would like to collaborate
|
|
|
285
283
|
.. |anaconda| image:: https://anaconda.org/martinpdes/pyoptik/badges/version.svg
|
|
286
284
|
:alt: Anaconda version
|
|
287
285
|
:target: https://anaconda.org/martinpdes/pyoptik
|
|
286
|
+
|
|
287
|
+
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pyoptik/badges/downloads.svg
|
|
288
|
+
:alt: Anaconda downloads
|
|
289
|
+
:target: https://anaconda.org/martinpdes/pyoptik
|
|
@@ -7,7 +7,7 @@ PyOptik is a Python tool designed to import refractive indexes and extinction co
|
|
|
7
7
|
|
|
8
8
|
.. list-table::
|
|
9
9
|
:widths: 10 25 25
|
|
10
|
-
:header-rows:
|
|
10
|
+
:header-rows: 0
|
|
11
11
|
|
|
12
12
|
* - Meta
|
|
13
13
|
- |python|
|
|
@@ -215,10 +215,6 @@ As of 2024, PyOptik is still under development. If you would like to collaborate
|
|
|
215
215
|
:alt: PyPi version
|
|
216
216
|
:target: https://pypistats.org/packages/pyoptik
|
|
217
217
|
|
|
218
|
-
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pyoptik/badges/downloads.svg
|
|
219
|
-
:alt: Anaconda downloads
|
|
220
|
-
:target: https://anaconda.org/martinpdes/pyoptik
|
|
221
|
-
|
|
222
218
|
.. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/PyOptik/python-coverage-comment-action-data/badge.svg
|
|
223
219
|
:alt: Unittest coverage
|
|
224
220
|
:target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/PyOptik/blob/python-coverage-comment-action-data/htmlcov/index.html
|
|
@@ -226,3 +222,7 @@ As of 2024, PyOptik is still under development. If you would like to collaborate
|
|
|
226
222
|
.. |anaconda| image:: https://anaconda.org/martinpdes/pyoptik/badges/version.svg
|
|
227
223
|
:alt: Anaconda version
|
|
228
224
|
:target: https://anaconda.org/martinpdes/pyoptik
|
|
225
|
+
|
|
226
|
+
.. |anaconda_download| image:: https://anaconda.org/martinpdes/pyoptik/badges/downloads.svg
|
|
227
|
+
:alt: Anaconda downloads
|
|
228
|
+
:target: https://anaconda.org/martinpdes/pyoptik
|
|
@@ -9,6 +9,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
9
9
|
# %%
|
|
10
10
|
import numpy
|
|
11
11
|
from PyOptik import MaterialBank
|
|
12
|
+
MaterialBank.build_library('metals')
|
|
12
13
|
|
|
13
14
|
# Initialize the material with the Sellmeier model
|
|
14
15
|
material = MaterialBank.silver
|
|
@@ -20,4 +21,3 @@ RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
|
|
|
20
21
|
material.plot(
|
|
21
22
|
wavelength=numpy.linspace(300e-9, 1500e-9, 300)
|
|
22
23
|
)
|
|
23
|
-
|
|
@@ -7,17 +7,17 @@ This example demonstrates how to create a custom Sellmeier YAML file using the
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
9
|
# %%
|
|
10
|
-
from PyOptik.utils import create_sellmeier_file
|
|
11
10
|
from PyOptik.directories import sellmeier_data_path
|
|
12
11
|
from PyOptik import SellmeierMaterial
|
|
12
|
+
from PyOptik import MaterialBank
|
|
13
13
|
|
|
14
14
|
# Define the file properties
|
|
15
15
|
filename = 'example_sellmeier'
|
|
16
|
-
coefficients = [1.86e-06, 1.31e-08, -1.37e-11, 4.34e-07, 6.27e-
|
|
16
|
+
coefficients = [1.86e-06, 1.31e-08, -1.37e-11, 4.34e-07, 6.27e-1, 0.17]
|
|
17
17
|
formula_type = 1
|
|
18
18
|
|
|
19
19
|
# Call the function to create the file
|
|
20
|
-
create_sellmeier_file(
|
|
20
|
+
MaterialBank.create_sellmeier_file(
|
|
21
21
|
filename=filename,
|
|
22
22
|
coefficients=coefficients,
|
|
23
23
|
formula_type=formula_type,
|
|
@@ -28,6 +28,6 @@ create_sellmeier_file(
|
|
|
28
28
|
|
|
29
29
|
print(f"Sellmeier YAML file {filename}.yml has been created in {sellmeier_data_path}")
|
|
30
30
|
|
|
31
|
-
m =
|
|
31
|
+
m = MaterialBank.get(filename)
|
|
32
32
|
|
|
33
33
|
m.plot()
|
|
@@ -7,9 +7,8 @@ This example demonstrates how to create a custom YAML file containing tabulated
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
9
|
# %%
|
|
10
|
-
from PyOptik.utils import create_tabulated_file
|
|
11
10
|
from PyOptik.directories import tabulated_data_path
|
|
12
|
-
from PyOptik import
|
|
11
|
+
from PyOptik import MaterialBank
|
|
13
12
|
|
|
14
13
|
# Define the tabulated data (wavelength in micrometers, n, k)
|
|
15
14
|
tabulated_data = [
|
|
@@ -26,7 +25,7 @@ reference = "Example Reference for Tabulated Data"
|
|
|
26
25
|
comments = "This file contains sample tabulated data for demonstration purposes. "
|
|
27
26
|
|
|
28
27
|
# Call the function to create the file
|
|
29
|
-
create_tabulated_file(
|
|
28
|
+
MaterialBank.create_tabulated_file(
|
|
30
29
|
filename=filename,
|
|
31
30
|
data=tabulated_data,
|
|
32
31
|
reference=reference,
|
|
@@ -35,6 +34,6 @@ create_tabulated_file(
|
|
|
35
34
|
|
|
36
35
|
print(f"Tabulated YAML file {filename}.yml has been created in {tabulated_data_path}")
|
|
37
36
|
|
|
38
|
-
m =
|
|
37
|
+
m = MaterialBank.get(filename)
|
|
39
38
|
|
|
40
39
|
m.plot()
|
|
@@ -9,7 +9,7 @@ This example demonstrates how to download a YAML file from a URL using the
|
|
|
9
9
|
# %%
|
|
10
10
|
from PyOptik.utils import download_yml_file
|
|
11
11
|
from PyOptik.directories import sellmeier_data_path
|
|
12
|
-
from PyOptik import
|
|
12
|
+
from PyOptik import MaterialBank
|
|
13
13
|
|
|
14
14
|
# Define the URL of the YAML file and the destination
|
|
15
15
|
url = 'https://refractiveindex.info/database/data-nk/main/H2O/Daimon-19.0C.yml'
|
|
@@ -18,6 +18,6 @@ filename = 'example_download'
|
|
|
18
18
|
# Call the function to download the file
|
|
19
19
|
download_yml_file(filename=filename, url=url, location=sellmeier_data_path)
|
|
20
20
|
|
|
21
|
-
m =
|
|
21
|
+
m = MaterialBank.get('example_download')
|
|
22
22
|
|
|
23
23
|
m.plot()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
eac4cdce2d7f95eaca11de1dc96a2ea7
|
|
@@ -23,7 +23,7 @@ Plot the Refractive Index of Optical Material: BK7
|
|
|
23
23
|
|
|
24
24
|
This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of the optical material BK7 glass over a specified range of wavelengths.
|
|
25
25
|
|
|
26
|
-
.. GENERATED FROM PYTHON SOURCE LINES
|
|
26
|
+
.. GENERATED FROM PYTHON SOURCE LINES 10-23
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -38,7 +38,6 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
38
38
|
|
|
39
39
|
.. code-block:: python3
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
import numpy
|
|
43
42
|
from PyOptik import MaterialBank
|
|
44
43
|
from PyOptik.units import nanometer
|
|
@@ -56,7 +55,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
56
55
|
|
|
57
56
|
.. rst-class:: sphx-glr-timing
|
|
58
57
|
|
|
59
|
-
**Total running time of the script:** (0 minutes 0.
|
|
58
|
+
**Total running time of the script:** (0 minutes 0.119 seconds)
|
|
60
59
|
|
|
61
60
|
|
|
62
61
|
.. _sphx_glr_download_gallery_sellmeier_plot_bk7.py:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c842182f88aa9d911824b8409e5b9730
|
|
@@ -23,7 +23,7 @@ Plot the Refractive Index of Optical Material: Silica
|
|
|
23
23
|
|
|
24
24
|
This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of the optical material Silica glass over a specified range of wavelengths.
|
|
25
25
|
|
|
26
|
-
.. GENERATED FROM PYTHON SOURCE LINES
|
|
26
|
+
.. GENERATED FROM PYTHON SOURCE LINES 10-23
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -38,7 +38,6 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
38
38
|
|
|
39
39
|
.. code-block:: python3
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
import numpy
|
|
43
42
|
from PyOptik import MaterialBank
|
|
44
43
|
|
|
@@ -56,7 +55,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
56
55
|
|
|
57
56
|
.. rst-class:: sphx-glr-timing
|
|
58
57
|
|
|
59
|
-
**Total running time of the script:** (0 minutes 0.
|
|
58
|
+
**Total running time of the script:** (0 minutes 0.110 seconds)
|
|
60
59
|
|
|
61
60
|
|
|
62
61
|
.. _sphx_glr_download_gallery_sellmeier_plot_silica.py:
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ed68d282649af04b43bfa92ea54e381f
|
|
@@ -23,7 +23,7 @@ Plot the Refractive Index of Optical Material: Water
|
|
|
23
23
|
|
|
24
24
|
This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of the optical material water over a specified range of wavelengths.
|
|
25
25
|
|
|
26
|
-
.. GENERATED FROM PYTHON SOURCE LINES
|
|
26
|
+
.. GENERATED FROM PYTHON SOURCE LINES 10-24
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -38,7 +38,6 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
38
38
|
|
|
39
39
|
.. code-block:: python3
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
import numpy
|
|
43
42
|
from PyOptik import MaterialBank
|
|
44
43
|
|
|
@@ -57,7 +56,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
57
56
|
|
|
58
57
|
.. rst-class:: sphx-glr-timing
|
|
59
58
|
|
|
60
|
-
**Total running time of the script:** (0 minutes 0.
|
|
59
|
+
**Total running time of the script:** (0 minutes 0.138 seconds)
|
|
61
60
|
|
|
62
61
|
|
|
63
62
|
.. _sphx_glr_download_gallery_sellmeier_plot_water.py:
|
{pyoptik-1.8.2.post0 → pyoptik-1.8.4.post0}/docs/source/gallery/sellmeier/sg_execution_times.rst
RENAMED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
Computation times
|
|
8
8
|
=================
|
|
9
|
-
**00:00.
|
|
9
|
+
**00:00.366** total execution time for **gallery_sellmeier** files:
|
|
10
10
|
|
|
11
11
|
+-----------------------------------------------------------------------+-----------+--------+
|
|
12
|
-
| :ref:`sphx_glr_gallery_sellmeier_plot_water.py` (``plot_water.py``) | 00:00.
|
|
12
|
+
| :ref:`sphx_glr_gallery_sellmeier_plot_water.py` (``plot_water.py``) | 00:00.138 | 0.0 MB |
|
|
13
13
|
+-----------------------------------------------------------------------+-----------+--------+
|
|
14
|
-
| :ref:`sphx_glr_gallery_sellmeier_plot_bk7.py` (``plot_bk7.py``) | 00:00.
|
|
14
|
+
| :ref:`sphx_glr_gallery_sellmeier_plot_bk7.py` (``plot_bk7.py``) | 00:00.119 | 0.0 MB |
|
|
15
15
|
+-----------------------------------------------------------------------+-----------+--------+
|
|
16
|
-
| :ref:`sphx_glr_gallery_sellmeier_plot_silica.py` (``plot_silica.py``) | 00:00.
|
|
16
|
+
| :ref:`sphx_glr_gallery_sellmeier_plot_silica.py` (``plot_silica.py``) | 00:00.110 | 0.0 MB |
|
|
17
17
|
+-----------------------------------------------------------------------+-----------+--------+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5e5ba704372cc584122f46d3b9efd76c
|
|
@@ -23,7 +23,7 @@ Plot the Refractive Index of Optical Material: SF5
|
|
|
23
23
|
|
|
24
24
|
This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of the optical material SF5 glass over a specified range of wavelengths.
|
|
25
25
|
|
|
26
|
-
.. GENERATED FROM PYTHON SOURCE LINES
|
|
26
|
+
.. GENERATED FROM PYTHON SOURCE LINES 10-23
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -38,7 +38,6 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
38
38
|
|
|
39
39
|
.. code-block:: python3
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
import numpy
|
|
43
42
|
from PyOptik import MaterialBank
|
|
44
43
|
|
|
@@ -56,7 +55,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
56
55
|
|
|
57
56
|
.. rst-class:: sphx-glr-timing
|
|
58
57
|
|
|
59
|
-
**Total running time of the script:** (0 minutes 0.
|
|
58
|
+
**Total running time of the script:** (0 minutes 0.126 seconds)
|
|
60
59
|
|
|
61
60
|
|
|
62
61
|
.. _sphx_glr_download_gallery_tabulated_plot_sf5.py:
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"outputs": [],
|
|
17
17
|
"source": [
|
|
18
|
-
"import numpy\nfrom PyOptik import MaterialBank\n\n# Initialize the material with the Sellmeier model\nmaterial = MaterialBank.silver\n\n# Calculate refractive index at specific wavelengths\nRI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])\n\n# Display calculated refractive indices at sample wavelengths\nmaterial.plot(\n wavelength=numpy.linspace(300e-9, 1500e-9, 300)\n)"
|
|
18
|
+
"import numpy\nfrom PyOptik import MaterialBank\nMaterialBank.build_library('metals')\n\n# Initialize the material with the Sellmeier model\nmaterial = MaterialBank.silver\n\n# Calculate refractive index at specific wavelengths\nRI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])\n\n# Display calculated refractive indices at sample wavelengths\nmaterial.plot(\n wavelength=numpy.linspace(300e-9, 1500e-9, 300)\n)"
|
|
19
19
|
]
|
|
20
20
|
}
|
|
21
21
|
],
|
|
@@ -6,8 +6,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
|
|
|
6
6
|
|
|
7
7
|
"""
|
|
8
8
|
|
|
9
|
+
# %%
|
|
9
10
|
import numpy
|
|
10
11
|
from PyOptik import MaterialBank
|
|
12
|
+
MaterialBank.build_library('metals')
|
|
11
13
|
|
|
12
14
|
# Initialize the material with the Sellmeier model
|
|
13
15
|
material = MaterialBank.silver
|
|
@@ -19,4 +21,3 @@ RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
|
|
|
19
21
|
material.plot(
|
|
20
22
|
wavelength=numpy.linspace(300e-9, 1500e-9, 300)
|
|
21
23
|
)
|
|
22
|
-
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5eff1d1f5bdbfe0661a4837b1c55ea8f
|