PyOptik 0.7.16.post0__tar.gz → 1.0.0.post0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. pyoptik-1.0.0.post0/.coverage +0 -0
  2. pyoptik-1.0.0.post0/.github/workflows/coverage.yml +49 -0
  3. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/.github/workflows/deploy_workflow.yml +1 -13
  4. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/.gitignore +1 -0
  5. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PKG-INFO +7 -4
  6. pyoptik-1.0.0.post0/PyOptik/__init__.py +10 -0
  7. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik/_version.py +2 -2
  8. pyoptik-1.0.0.post0/PyOptik/data/BAK1.yml +60 -0
  9. pyoptik-1.0.0.post0/PyOptik/data/BK7.yml +60 -0
  10. pyoptik-1.0.0.post0/PyOptik/data/SF5.yml +54 -0
  11. pyoptik-1.0.0.post0/PyOptik/data/ZBLAN.yml +10 -0
  12. pyoptik-1.0.0.post0/PyOptik/data/__init__.py +14 -0
  13. pyoptik-1.0.0.post0/PyOptik/data/crown.yml +58 -0
  14. pyoptik-1.0.0.post0/PyOptik/data/default.py +15 -0
  15. pyoptik-1.0.0.post0/PyOptik/data/flint.yml +57 -0
  16. pyoptik-1.0.0.post0/PyOptik/data/fluorine_doped_silica_1%.yml +8 -0
  17. pyoptik-1.0.0.post0/PyOptik/data/fluorine_doped_silica_2%.yml +9 -0
  18. pyoptik-1.0.0.post0/PyOptik/data/fused_silica.yml +15 -0
  19. pyoptik-1.0.0.post0/PyOptik/data/germanium.yml +10 -0
  20. pyoptik-1.0.0.post0/PyOptik/data/lithium_niobate.yml +10 -0
  21. pyoptik-1.0.0.post0/PyOptik/data/polystyren.yml +14 -0
  22. pyoptik-1.0.0.post0/PyOptik/data/silica.yml +15 -0
  23. pyoptik-1.0.0.post0/PyOptik/data/silicon.yml +10 -0
  24. pyoptik-1.0.0.post0/PyOptik/data/soda_lime_glass.yml +118 -0
  25. pyoptik-1.0.0.post0/PyOptik/data/water.yml +14 -0
  26. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik/directories.py +2 -0
  27. pyoptik-1.0.0.post0/PyOptik/material_class.py +175 -0
  28. pyoptik-1.0.0.post0/PyOptik/materials.py +17 -0
  29. pyoptik-1.0.0.post0/PyOptik/utils.py +34 -0
  30. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik.egg-info/PKG-INFO +7 -4
  31. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik.egg-info/SOURCES.txt +25 -3
  32. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/README.rst +6 -3
  33. pyoptik-1.0.0.post0/developments/testing.py +19 -0
  34. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/pyproject.toml +21 -2
  35. pyoptik-1.0.0.post0/tests/test_sellmeier.py +41 -0
  36. pyoptik-0.7.16.post0/PyOptik/__init__.py +0 -47
  37. pyoptik-0.7.16.post0/PyOptik/sellmeier_material.py +0 -119
  38. pyoptik-0.7.16.post0/tests/test_measurements.py +0 -20
  39. pyoptik-0.7.16.post0/tests/test_sellmeier.py +0 -21
  40. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/.github/dependabot.yml +0 -0
  41. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/.readthedocs.yml +0 -0
  42. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/LICENSE +0 -0
  43. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik.egg-info/dependency_links.txt +0 -0
  44. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik.egg-info/requires.txt +0 -0
  45. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/PyOptik.egg-info/top_level.txt +0 -0
  46. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/Makefile +0 -0
  47. {pyoptik-0.7.16.post0/PyOptik → pyoptik-1.0.0.post0/docs/deprecated}/experiment_material.py +0 -0
  48. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/examples/README.rst +0 -0
  49. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/examples/measurements_tio2.py +0 -0
  50. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/examples/measurements_water.py +0 -0
  51. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/examples/sellmeier_bk7.py +0 -0
  52. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/examples/sellmeier_sf5.py +0 -0
  53. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/examples/sellmeier_silica.py +0 -0
  54. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/images/logo.png +0 -0
  55. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/make.bat +0 -0
  56. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/_static/default.css +0 -0
  57. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/code.rst +0 -0
  58. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/conf.py +0 -0
  59. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/add_material.ipynb +0 -0
  60. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/add_material.py +0 -0
  61. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/add_material.rst +0 -0
  62. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/add_material_codeobj.pickle +0 -0
  63. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/get_values.ipynb +0 -0
  64. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/get_values.py +0 -0
  65. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/get_values.rst +0 -0
  66. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/get_values_codeobj.pickle +0 -0
  67. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/images/sphx_glr_plot_sellmeier_0_001.png +0 -0
  68. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/images/sphx_glr_plot_sellmeier_1_001.png +0 -0
  69. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/images/thumb/sphx_glr_add_material_thumb.png +0 -0
  70. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/images/thumb/sphx_glr_get_values_thumb.png +0 -0
  71. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/images/thumb/sphx_glr_plot_sellmeier_0_thumb.png +0 -0
  72. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/images/thumb/sphx_glr_plot_sellmeier_1_thumb.png +0 -0
  73. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/index.rst +0 -0
  74. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_0.ipynb +0 -0
  75. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_0.py +0 -0
  76. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_0.py.md5 +0 -0
  77. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_0.rst +0 -0
  78. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_0_codeobj.pickle +0 -0
  79. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_1.ipynb +0 -0
  80. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_1.py +0 -0
  81. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_1.py.md5 +0 -0
  82. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_1.rst +0 -0
  83. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/plot_sellmeier_1_codeobj.pickle +0 -0
  84. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/gallery/sg_execution_times.rst +0 -0
  85. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/index.rst +0 -0
  86. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/docs/source/references.rst +0 -0
  87. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/setup.cfg +0 -0
  88. {pyoptik-0.7.16.post0 → pyoptik-1.0.0.post0}/tests/__init__.py +0 -0
Binary file
@@ -0,0 +1,49 @@
1
+ # .github/workflows/coverage.yml
2
+ name: Coverage
3
+
4
+ on:
5
+ pull_request:
6
+ branches: "master"
7
+ push:
8
+ branches: "master"
9
+
10
+ jobs:
11
+ coverage:
12
+ name: Run test and generate coverage data
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ pull-requests: write
16
+ contents: write
17
+ steps:
18
+ - name: "Set-up: Python ${{ env.cp_python_version }}"
19
+ uses: actions/setup-python@v4
20
+ id: cp310
21
+ with:
22
+ python-version: "3.10"
23
+
24
+
25
+ - name: "Install: Dependencies for headless server"
26
+ shell: bash
27
+ run: |
28
+ sudo apt-get update
29
+ sudo apt-get install libgl1-mesa-glx xvfb
30
+
31
+ - name: "Checkout requirements and files for testing"
32
+ uses: actions/checkout@v4
33
+ with:
34
+ fetch-depth: 0
35
+ submodules: true
36
+
37
+ - name: Install everything, run the tests, produce the .coverage file
38
+ run: |
39
+ python -m pip install wheel build
40
+ python -m build --wheel
41
+ python -m pip install .[testing]
42
+ pytest
43
+
44
+ - name: Coverage comment
45
+ uses: py-cov-action/python-coverage-comment-action@v3
46
+ with:
47
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48
+ MINIMUM_GREEN: 90
49
+ MINIMUM_ORANGE: 50
@@ -19,18 +19,6 @@ jobs:
19
19
  with:
20
20
  python-version: '3.10'
21
21
 
22
- publish_coverage:
23
- if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
24
- needs: [build_pure_python]
25
- runs-on: ubuntu-latest
26
- steps:
27
- - uses: MartinPdeS/MPSActions/publish_coverage@master
28
- with:
29
- package-name: PyOptik
30
- python-version: "3.10"
31
- auth: ${{ secrets.GIST_TOKEN }}
32
- gistID: 8fa5a7d93dc020b1f624012220f6ebbd
33
-
34
22
  publish_documentation:
35
23
  if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
36
24
  needs: [build_pure_python]
@@ -44,7 +32,7 @@ jobs:
44
32
 
45
33
  publish_wheel:
46
34
  if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
47
- needs: [build_pure_python, publish_documentation, publish_coverage]
35
+ needs: [build_pure_python, publish_documentation]
48
36
  runs-on: ubuntu-latest
49
37
  steps:
50
38
  - uses: MartinPdeS/MPSActions/publish_pypi@master
@@ -3,6 +3,7 @@
3
3
  *__pycache__*
4
4
  *.so
5
5
  *.pytest_cache
6
+ *htmlcov
6
7
 
7
8
  dist
8
9
  build
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyOptik
3
- Version: 0.7.16.post0
3
+ Version: 1.0.0.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
@@ -62,7 +62,7 @@ Requires-Dist: pydata-sphinx-theme==0.14.1; extra == "documentation"
62
62
 
63
63
  |python|
64
64
  |docs|
65
- |unittest|
65
+ |coverage|
66
66
  |PyPi|
67
67
  |PyPi_download|
68
68
 
@@ -84,7 +84,7 @@ To test localy (with cloning the GitHub repository) you'll need to install the d
84
84
  .. code:: python
85
85
 
86
86
  >>> git clone https://github.com/MartinPdeS/PyOptik.git
87
- >>> cd TradeTide
87
+ >>> cd PyOptik
88
88
  >>> pip install -r requirements/requirements.txt
89
89
  >>> pytest
90
90
 
@@ -114,4 +114,7 @@ Email:`martin.poinsinet-de-sivry@polymtl.ca <mailto:martin.poinsinet-de-sivry@po
114
114
  .. |PyPi_download| image:: https://img.shields.io/pypi/dm/pyoptik.svg
115
115
  :target: https://pypistats.org/packages/pyoptik
116
116
 
117
- .. |unittest| image:: https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/MartinPdeS/8fa5a7d93dc020b1f624012220f6ebbd/raw/15873eb6e38185c878026b9474148b8daab96b2e/PyOptik_coverage_badge.json
117
+ .. |coverage| image:: https://raw.githubusercontent.com/MartinPdeS/PyOptik/python-coverage-comment-action-data/badge.svg
118
+ :alt: Unittest coverage
119
+ :target: https://htmlpreview.github.io/?https://github.com/MartinPdeS/PyOptik/blob/python-coverage-comment-action-data/htmlcov/index.html
120
+
@@ -0,0 +1,10 @@
1
+ from .material_class import Material
2
+
3
+ try:
4
+ from ._version import version as __version__ # noqa: F401
5
+
6
+ except ImportError:
7
+ __version__ = "0.0.0"
8
+
9
+
10
+ from .materials import material_list
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.7.16.post0'
16
- __version_tuple__ = version_tuple = (0, 7, 16)
15
+ __version__ = version = '1.0.0.post0'
16
+ __version_tuple__ = version_tuple = (1, 0, 0)
@@ -0,0 +1,60 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "<a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20b.agf\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
6
+ COMMENTS: " "
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.3 2.5
10
+ coefficients: 0 1.12365662 0.00644742752 0.309276848 0.0222284402 0.881511957 107.297751
11
+ - type: tabulated k
12
+ data: |
13
+ 0.300 2.5394E-06
14
+ 0.310 1.2215E-06
15
+ 0.320 5.7257E-07
16
+ 0.334 2.1098E-07
17
+ 0.350 8.0850E-08
18
+ 0.365 3.6587E-08
19
+ 0.370 2.7405E-08
20
+ 0.380 2.0740E-08
21
+ 0.390 1.4987E-08
22
+ 0.400 1.2796E-08
23
+ 0.405 1.2956E-08
24
+ 0.420 1.3436E-08
25
+ 0.436 1.5351E-08
26
+ 0.460 1.4716E-08
27
+ 0.500 1.2784E-08
28
+ 0.546 8.7117E-09
29
+ 0.580 9.2541E-09
30
+ 0.620 9.8924E-09
31
+ 0.660 1.0531E-08
32
+ 0.700 6.6946E-09
33
+ 1.060 1.3523E-08
34
+ 1.530 6.8664E-08
35
+ 1.970 6.3982E-07
36
+ 2.325 2.4209E-06
37
+ 2.500 4.2801E-06
38
+ SPECS:
39
+ n_is_absolute: false
40
+ wavelength_is_vacuum: false
41
+ temperature: 20.0 °C
42
+ thermal_dispersion:
43
+ - type: "Schott formula"
44
+ coefficients: 1.86e-07 1.29e-08 -1.87e-11 5.25e-07 5.46e-10 0.182
45
+ nd: 1.5725
46
+ Vd: 57.55
47
+ glass_code: 573576.319
48
+ glass_status: standard
49
+ density: 3.19 g/cm<sup>3</sup>
50
+ thermal_expansion:
51
+ - temperature_range: -30 70 °C
52
+ coefficient: 7.6e-06 K<sup>-1</sup>
53
+ - temperature_range: 20 300 °C
54
+ coefficient: 8.6e-06 K<sup>-1</sup>
55
+ dPgF: 0.0002
56
+ climatic_resistance: 2.0
57
+ stain_resistance: 1.0
58
+ acid_resistance: 3.3
59
+ alkali_resistance: 1.2
60
+ phosphate_resistance: 2.0
@@ -0,0 +1,60 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "<a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20b.agf\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
6
+ COMMENTS: "step 0.5 available"
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.3 2.5
10
+ coefficients: 0 1.03961212 0.00600069867 0.231792344 0.0200179144 1.01046945 103.560653
11
+ - type: tabulated k
12
+ data: |
13
+ 0.300 2.8607E-06
14
+ 0.310 1.3679E-06
15
+ 0.320 6.6608E-07
16
+ 0.334 2.6415E-07
17
+ 0.350 9.2894E-08
18
+ 0.365 3.4191E-08
19
+ 0.370 2.7405E-08
20
+ 0.380 2.0740E-08
21
+ 0.390 1.3731E-08
22
+ 0.400 1.0227E-08
23
+ 0.405 9.0558E-09
24
+ 0.420 9.3912E-09
25
+ 0.436 1.1147E-08
26
+ 0.460 1.0286E-08
27
+ 0.500 9.5781E-09
28
+ 0.546 6.9658E-09
29
+ 0.580 9.2541E-09
30
+ 0.620 1.1877E-08
31
+ 0.660 1.2643E-08
32
+ 0.700 8.9305E-09
33
+ 1.060 1.0137E-08
34
+ 1.530 9.8390E-08
35
+ 1.970 1.0933E-06
36
+ 2.325 4.2911E-06
37
+ 2.500 8.1300E-06
38
+ SPECS:
39
+ n_is_absolute: false
40
+ wavelength_is_vacuum: false
41
+ temperature: 20.0 °C
42
+ thermal_dispersion:
43
+ - type: "Schott formula"
44
+ coefficients: 1.86e-06 1.31e-08 -1.37e-11 4.34e-07 6.27e-10 0.17
45
+ nd: 1.5168
46
+ Vd: 64.17
47
+ glass_code: 517642.251
48
+ glass_status: standard
49
+ density: 2.51 g/cm<sup>3</sup>
50
+ thermal_expansion:
51
+ - temperature_range: -30 70 °C
52
+ coefficient: 7.1e-06 K<sup>-1</sup>
53
+ - temperature_range: 20 300 °C
54
+ coefficient: 8.3e-06 K<sup>-1</sup>
55
+ dPgF: -0.0009
56
+ climatic_resistance: 1.0
57
+ stain_resistance: 0.0
58
+ acid_resistance: 1.0
59
+ alkali_resistance: 2.3
60
+ phosphate_resistance: 2.3
@@ -0,0 +1,54 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "<a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20b.agf\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
6
+ COMMENTS: "step 0.5 available "
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.37 2.5
10
+ coefficients: 0 1.52481889 0.011254756 0.187085527 0.0588995392 1.42729015 129.141675
11
+ - type: tabulated k
12
+ data: |
13
+ 0.370 3.7910E-06
14
+ 0.380 1.3410E-06
15
+ 0.390 5.9344E-07
16
+ 0.400 3.1635E-07
17
+ 0.405 2.4021E-07
18
+ 0.420 1.2608E-07
19
+ 0.436 9.3274E-08
20
+ 0.460 6.5886E-08
21
+ 0.500 3.8663E-08
22
+ 0.546 2.0982E-08
23
+ 0.580 1.6691E-08
24
+ 0.620 2.3825E-08
25
+ 0.660 2.7490E-08
26
+ 0.700 2.4646E-08
27
+ 1.060 2.0305E-08
28
+ 1.530 1.2330E-07
29
+ 1.970 8.0161E-07
30
+ 2.325 3.4194E-06
31
+ 2.500 5.5159E-06
32
+ SPECS:
33
+ n_is_absolute: false
34
+ wavelength_is_vacuum: false
35
+ temperature: 20.0 °C
36
+ thermal_dispersion:
37
+ - type: "Schott formula"
38
+ coefficients: -2.51e-07 1.07e-08 -2.4e-11 7.85e-07 1.15e-09 0.278
39
+ nd: 1.67271
40
+ Vd: 32.25
41
+ glass_code: 673323.286
42
+ glass_status: standard
43
+ density: 2.858 g/cm<sup>3</sup>
44
+ thermal_expansion:
45
+ - temperature_range: -30 70 °C
46
+ coefficient: 7.94e-06 K<sup>-1</sup>
47
+ - temperature_range: 20 300 °C
48
+ coefficient: 9.21e-06 K<sup>-1</sup>
49
+ dPgF: 0.0088
50
+ climatic_resistance: 1.0
51
+ stain_resistance: 0.0
52
+ acid_resistance: 1.0
53
+ alkali_resistance: 1.0
54
+ phosphate_resistance: 1.0
@@ -0,0 +1,10 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "F. Gan. Optical properties of fluoride glasses: a review. <a href=\"https://doi.org/10.1016/0022-3093(94)00592-3\"><i>J. Non-Cryst. Solids</i> <b>184</b>, 9–20 (1995)</a>"
6
+ COMMENTS: "Room temperature."
7
+ DATA:
8
+ - type: formula 1
9
+ wavelength_range: 0.365 3.50
10
+ coefficients: 0 1.22514 0.08969 1.52898 21.3825
@@ -0,0 +1,14 @@
1
+ from PyOptik.data.default import default_material
2
+
3
+ def build_default_library() -> None:
4
+ """
5
+ Downloads and saves the default materials from the specified URLs.
6
+ """
7
+ from PyOptik.utils import download_yml_file
8
+
9
+ for name, url in default_material.items():
10
+ download_yml_file(url=url, filename=name)
11
+
12
+
13
+ if __name__ == '__main__':
14
+ build_default_library()
@@ -0,0 +1,58 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "<a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20b.agf\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
6
+ COMMENTS: " "
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.31 2.5
10
+ coefficients: 0 1.1273555 0.00720341707 0.124412303 0.0269835916 0.827100531 100.384588
11
+ - type: tabulated k
12
+ data: |
13
+ 0.310 2.2721E-06
14
+ 0.320 8.8363E-07
15
+ 0.334 2.6415E-07
16
+ 0.350 6.8934E-08
17
+ 0.365 3.4191E-08
18
+ 0.370 2.8611E-08
19
+ 0.380 2.0740E-08
20
+ 0.390 1.4987E-08
21
+ 0.400 1.2796E-08
22
+ 0.405 1.2956E-08
23
+ 0.420 1.3436E-08
24
+ 0.436 1.3948E-08
25
+ 0.460 1.4716E-08
26
+ 0.500 1.1180E-08
27
+ 0.546 1.0459E-08
28
+ 0.580 1.1111E-08
29
+ 0.620 9.8924E-09
30
+ 0.660 1.0531E-08
31
+ 0.700 8.9305E-09
32
+ 1.060 2.0305E-08
33
+ 1.530 9.8390E-08
34
+ 1.970 1.4781E-06
35
+ 2.325 5.1298E-06
36
+ 2.500 8.5849E-06
37
+ SPECS:
38
+ n_is_absolute: false
39
+ wavelength_is_vacuum: false
40
+ temperature: 20.0 °C
41
+ thermal_dispersion:
42
+ - type: "Schott formula"
43
+ coefficients: -1.67e-06 8.8e-09 -2.86e-11 5.42e-07 7.81e-10 0.172
44
+ nd: 1.51112
45
+ Vd: 60.41
46
+ glass_code: 511604.253
47
+ glass_status: standard
48
+ density: 2.53 g/cm<sup>3</sup>
49
+ thermal_expansion:
50
+ - temperature_range: -30 70 °C
51
+ coefficient: 8.4e-06 K<sup>-1</sup>
52
+ - temperature_range: 20 300 °C
53
+ coefficient: 9.7e-06 K<sup>-1</sup>
54
+ climatic_resistance: 3.0
55
+ stain_resistance: 0.0
56
+ acid_resistance: 2.0
57
+ alkali_resistance: 1.0
58
+ phosphate_resistance: 2.3
@@ -0,0 +1,15 @@
1
+ default_material = dict(
2
+ ZBLAN='https://refractiveindex.info/database/data-nk/glass/misc/ZBLAN/Gan.yml',
3
+ BK7='https://refractiveindex.info/database/data-nk/glass/schott/N-BK7.yml',
4
+ fused_silica='https://refractiveindex.info/database/data-nk/main/SiO2/Malitson.yml',
5
+ BAK1='https://refractiveindex.info/database/data-nk/glass/schott/N-BAK1.yml',
6
+ SF5='https://refractiveindex.info/database/data-nk/glass/schott/N-SF5.yml',
7
+ water='https://refractiveindex.info/database/data-nk/main/H2O/Daimon-19.0C.yml',
8
+ polystyren='https://refractiveindex.info/database/data-nk/organic/(C8H8)n%20-%20polystyrene/Sultanova.yml',
9
+ lithium_niobate='https://refractiveindex.info/database/data-nk/main/LiNbO3/Zelmon-o.yml',
10
+ germanium='https://refractiveindex.info/database/data-nk/main/Ge/Icenogle.yml',
11
+ silicon='https://refractiveindex.info/database/data-nk/main/Si/Salzberg.yml',
12
+ soda_lime_glass='https://refractiveindex.info/database/data-nk/glass/misc/soda-lime/Rubin-clear.yml',
13
+ crown='https://refractiveindex.info/database/data-nk/glass/schott/K7.yml',
14
+ flint='https://refractiveindex.info/database/data-nk/glass/schott/F2.yml'
15
+ )
@@ -0,0 +1,57 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "<a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20b.agf\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
6
+ COMMENTS: "lead containing glass type "
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.32 2.5
10
+ coefficients: 0 1.34533359 0.00997743871 0.209073176 0.0470450767 0.937357162 111.886764
11
+ - type: tabulated k
12
+ data: |
13
+ 0.334 1.6542E-06
14
+ 0.350 2.7681E-07
15
+ 0.365 9.5613E-08
16
+ 0.370 7.2874E-08
17
+ 0.380 4.5603E-08
18
+ 0.390 2.8886E-08
19
+ 0.400 1.9243E-08
20
+ 0.405 1.6869E-08
21
+ 0.420 1.2087E-08
22
+ 0.436 9.7490E-09
23
+ 0.460 8.8118E-09
24
+ 0.500 4.7818E-09
25
+ 0.546 3.4794E-09
26
+ 0.580 3.6961E-09
27
+ 0.620 3.9510E-09
28
+ 0.660 6.3120E-09
29
+ 0.700 4.4608E-09
30
+ 1.060 6.7549E-09
31
+ 1.530 5.3868E-08
32
+ 1.970 8.3017E-07
33
+ 2.325 2.8000E-06
34
+ 2.500 4.2123E-06
35
+ SPECS:
36
+ n_is_absolute: false
37
+ wavelength_is_vacuum: false
38
+ temperature: 20.0 °C
39
+ thermal_dispersion:
40
+ - type: "Schott formula"
41
+ coefficients: 1.51e-06 1.56e-08 -2.78e-11 9.34e-07 1.04e-09 0.25
42
+ nd: 1.62004
43
+ Vd: 36.37
44
+ glass_code: 620364.360
45
+ glass_status: standard
46
+ density: 3.599 g/cm<sup>3</sup>
47
+ thermal_expansion:
48
+ - temperature_range: -30 70 °C
49
+ coefficient: 8.2e-06 K<sup>-1</sup>
50
+ - temperature_range: 20 300 °C
51
+ coefficient: 9.2e-06 K<sup>-1</sup>
52
+ dPgF: 0.0002
53
+ climatic_resistance: 1.0
54
+ stain_resistance: 0.0
55
+ acid_resistance: 1.0
56
+ alkali_resistance: 2.3
57
+ phosphate_resistance: 1.3
@@ -0,0 +1,8 @@
1
+ # Nomenclature: https://en.wikipedia.org/wiki/Sellmeier_equation
2
+ # Values from : https://opg.optica.org/directpdfaccess/d4c1352d-90ca-4c3e-a7545be751547d7a_26968/ao-22-19-3102.pdf?da=1&id=26968&seq=0&mobile=no
3
+
4
+ REFERENCES: "<a href=\"https://opg.optica.org/directpdfaccess/d4c1352d-90ca-4c3e-a7545be751547d7a_26968/ao-22-19-3102.pdf?da=1&id=26968&seq=0&mobile=no\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
5
+ DATA:
6
+ - type: formula 1
7
+ wavelength_range: 0.37 2.5
8
+ coefficients: 0 0.69325 0.06724 0.39720 0.11714 0.86008 9.7761
@@ -0,0 +1,9 @@
1
+ # Nomenclature: https://en.wikipedia.org/wiki/Sellmeier_equation
2
+ # Values from : https://opg.optica.org/directpdfaccess/d4c1352d-90ca-4c3e-a7545be751547d7a_26968/ao-22-19-3102.pdf?da=1&id=26968&seq=0&mobile=no
3
+
4
+
5
+ REFERENCES: "<a href=\"https://opg.optica.org/directpdfaccess/d4c1352d-90ca-4c3e-a7545be751547d7a_26968/ao-22-19-3102.pdf?da=1&id=26968&seq=0&mobile=no\">SCHOTT Zemax catalog 2017-01-20b</a> (obtained from <a href=\"http://www.schott.com/advanced_optics/english/download/\">http://www.schott.com</a>)<br>See also <a href=\"http://refractiveindex.info/download/data/2017/schott_2017-01-20.pdf\">SCHOTT glass data sheets</a>"
6
+ DATA:
7
+ - type: formula 1
8
+ wavelength_range: 0.37 2.5
9
+ coefficients: 0 0.67744 0.06135 0.40101 0.12030 0.87193 9.8563
@@ -0,0 +1,15 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "1) I. H. Malitson. Interspecimen comparison of the refractive index of fused silica, <a href=\"https://doi.org/10.1364/JOSA.55.001205\"><i>J. Opt. Soc. Am.</i> <b>55</b>, 1205-1208 (1965)</a><br>2) C. Z. Tan. Determination of refractive index of silica glass for infrared wavelengths by IR spectroscopy, <a href=\"https://doi.org/10.1016/S0022-3093(97)00438-9\"><i>J. Non-Cryst. Solids</i> <b>223</b>, 158-163 (1998)</a><br>
6
+ <sup>*</sup> Sellmeier formula is reported in Ref. 1 for the 0.21-3.71 μm wavelength range. Ref. 2 verifies the validity of the formula up to 6.7 μm."
7
+ COMMENTS: "Fused silica, 20 °C"
8
+ DATA:
9
+ - type: formula 1
10
+ wavelength_range: 0.21 6.7
11
+ coefficients: 0 0.6961663 0.0684043 0.4079426 0.1162414 0.8974794 9.896161
12
+ SPECS:
13
+ n_is_absolute: false
14
+ wavelength_is_vacuum: false
15
+ temperature: 20 °C
@@ -0,0 +1,10 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "1) Icenogle et al.. Refractive indexes and temperature coefficients of germanium and silicon <a https://doi.org/10.1364/AO.15.002348\"><i>Appl. Opt.</i> <b>15</b> 2348-2351 (1976)</a><br>2) N. P. Barnes and M. S. Piltch. Temperature-dependent Sellmeier coefficients and nonlinear optics average power limit for germanium <a href=\"https://doi.org/10.1364/JOSA.69.000178\"><i>J. Opt. Soc. Am.</i> <b>69</b> 178-180 (1979)</a><br>*Ref. 2 provides temperature-dependent Sellmeier equations based on data from Ref. 1."
6
+ COMMENTS: "293 K (20 °C)"
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 2.5 12
10
+ coefficients: 8.28156 6.72880 0.44105 0.21307 3870.1
@@ -0,0 +1,10 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "D. E. Zelmon, D. L. Small, and D. Jundt. Infrared corrected Sellmeier coefficients for congruently grown lithium niobate and 5 mol.% magnesium oxide-doped lithium niobate, <a href=\"https://doi.org/10.1364/JOSAB.14.003319\"><i>J. Opt. Soc. Am. B</i> <b>14</b>, 3319-3322 (1997)</a>"
6
+ COMMENTS: "21 °C. Ordinary ray (o). Congruently grown lithium niobate."
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.4 5.0
10
+ coefficients: 0 2.6734 0.01764 1.2290 0.05914 12.614 474.60
@@ -0,0 +1,14 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "N. Sultanova, S. Kasarova and I. Nikolov. Dispersion properties of optical polymers, <a href=\"http://przyrbwn.icm.edu.pl/APP/ABSTR/116/a116-4-42.html\"><i>Acta Physica Polonica A</i> <b>116</b>, 585-587 (2009)</a><br> (fit of the experimental data with the Sellmeier dispersion formula: Mikhail Polyanskiy)"
6
+ COMMENTS: "20 °C"
7
+ DATA:
8
+ - type: formula 2
9
+ wavelength_range: 0.4368 1.052
10
+ coefficients: 0 1.4435 0.020216
11
+ SPECS:
12
+ n_is_absolute: false
13
+ wavelength_is_vacuum: false
14
+ temperature: 20 °C
@@ -0,0 +1,15 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "1) I. H. Malitson. Interspecimen comparison of the refractive index of fused silica, <a href=\"https://doi.org/10.1364/JOSA.55.001205\"><i>J. Opt. Soc. Am.</i> <b>55</b>, 1205-1208 (1965)</a><br>2) C. Z. Tan. Determination of refractive index of silica glass for infrared wavelengths by IR spectroscopy, <a href=\"https://doi.org/10.1016/S0022-3093(97)00438-9\"><i>J. Non-Cryst. Solids</i> <b>223</b>, 158-163 (1998)</a><br>
6
+ <sup>*</sup> Sellmeier formula is reported in Ref. 1 for the 0.21-3.71 μm wavelength range. Ref. 2 verifies the validity of the formula up to 6.7 μm."
7
+ COMMENTS: "Fused silica, 20 °C"
8
+ DATA:
9
+ - type: formula 1
10
+ wavelength_range: 0.21 6.7
11
+ coefficients: 0 0.6961663 0.0684043 0.4079426 0.1162414 0.8974794 9.896161
12
+ SPECS:
13
+ n_is_absolute: false
14
+ wavelength_is_vacuum: false
15
+ temperature: 20 °C
@@ -0,0 +1,10 @@
1
+ # this file is part of refractiveindex.info database
2
+ # refractiveindex.info database is in the public domain
3
+ # copyright and related rights waived via CC0 1.0
4
+
5
+ REFERENCES: "1) C. D. Salzberg and J. J. Villa. Infrared Refractive Indexes of Silicon, Germanium and Modified Selenium Glass, <a href=\"https://doi.org/10.1364/JOSA.47.000244\"><i>J. Opt. Soc. Am.</i>, <b>47</b>, 244-246 (1957)</a><br>2) B. Tatian. Fitting refractive-index data with the Sellmeier dispersion formula, <a href=\"https://doi.org/10.1364/AO.23.004477\"><i>Appl. Opt.</i> <b>23</b>, 4477-4485 (1984)</a><br>*Ref. 2 provides a dispersion formula based on data from Ref. 1"
6
+ COMMENTS: "26 °C, Unknown purity"
7
+ DATA:
8
+ - type: formula 1
9
+ wavelength_range: 1.357 11.04
10
+ coefficients: 0 10.6684293 0.301516485 0.0030434748 1.13475115 1.54133408 1104