PyOptik 1.7.1.post0__tar.gz → 1.7.2.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 (164) hide show
  1. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PKG-INFO +5 -5
  2. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/__init__.py +2 -2
  3. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/_version.py +2 -2
  4. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/material/__init__.py +0 -1
  5. pyoptik-1.7.1.post0/PyOptik/material/material.py → pyoptik-1.7.2.post0/PyOptik/material_bank.py +19 -16
  6. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik.egg-info/PKG-INFO +5 -5
  7. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik.egg-info/SOURCES.txt +1 -1
  8. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/README.rst +4 -4
  9. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/sellmeier/plot_bk7.py +2 -2
  10. {pyoptik-1.7.1.post0/docs/source/gallery → pyoptik-1.7.2.post0/docs/examples}/sellmeier/plot_silica.py +2 -2
  11. {pyoptik-1.7.1.post0/docs/source/gallery → pyoptik-1.7.2.post0/docs/examples}/sellmeier/plot_water.py +2 -2
  12. {pyoptik-1.7.1.post0/docs/source/gallery → pyoptik-1.7.2.post0/docs/examples}/tabulated/plot_sf5.py +2 -2
  13. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/tabulated/plot_silver.py +2 -2
  14. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/code.rst +18 -0
  15. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/index.rst +0 -24
  16. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_bk7.ipynb +1 -1
  17. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_bk7.py +2 -2
  18. pyoptik-1.7.2.post0/docs/source/gallery/sellmeier/plot_bk7.py.md5 +1 -0
  19. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_bk7.rst +3 -3
  20. pyoptik-1.7.2.post0/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
  21. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_silica.ipynb +1 -1
  22. {pyoptik-1.7.1.post0/docs/examples → pyoptik-1.7.2.post0/docs/source/gallery}/sellmeier/plot_silica.py +2 -2
  23. pyoptik-1.7.2.post0/docs/source/gallery/sellmeier/plot_silica.py.md5 +1 -0
  24. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_silica.rst +3 -3
  25. pyoptik-1.7.2.post0/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
  26. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_water.ipynb +1 -1
  27. {pyoptik-1.7.1.post0/docs/examples → pyoptik-1.7.2.post0/docs/source/gallery}/sellmeier/plot_water.py +2 -2
  28. pyoptik-1.7.2.post0/docs/source/gallery/sellmeier/plot_water.py.md5 +1 -0
  29. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/plot_water.rst +3 -3
  30. pyoptik-1.7.2.post0/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
  31. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/sg_execution_times.rst +4 -4
  32. pyoptik-1.7.2.post0/docs/source/gallery/tabulated/index.rst +75 -0
  33. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/plot_sf5.ipynb +1 -1
  34. {pyoptik-1.7.1.post0/docs/examples → pyoptik-1.7.2.post0/docs/source/gallery}/tabulated/plot_sf5.py +2 -2
  35. pyoptik-1.7.2.post0/docs/source/gallery/tabulated/plot_sf5.py.md5 +1 -0
  36. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/plot_sf5.rst +3 -3
  37. pyoptik-1.7.2.post0/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
  38. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/plot_silver.ipynb +1 -1
  39. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/plot_silver.py +2 -2
  40. pyoptik-1.7.2.post0/docs/source/gallery/tabulated/plot_silver.py.md5 +1 -0
  41. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/plot_silver.rst +3 -3
  42. pyoptik-1.7.2.post0/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
  43. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/sg_execution_times.rst +3 -3
  44. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_sellmeier_file.ipynb +1 -1
  45. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_sellmeier_file.py +1 -1
  46. pyoptik-1.7.2.post0/docs/source/gallery/utils/create_sellmeier_file.py.md5 +1 -0
  47. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_sellmeier_file.rst +2 -4
  48. pyoptik-1.7.2.post0/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
  49. pyoptik-1.7.2.post0/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
  50. pyoptik-1.7.2.post0/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
  51. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/index.rst +0 -33
  52. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/sg_execution_times.rst +4 -4
  53. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/tests/test_usual_material.py +3 -3
  54. pyoptik-1.7.1.post0/docs/source/gallery/sellmeier/plot_bk7.py.md5 +0 -1
  55. pyoptik-1.7.1.post0/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
  56. pyoptik-1.7.1.post0/docs/source/gallery/sellmeier/plot_silica.py.md5 +0 -1
  57. pyoptik-1.7.1.post0/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
  58. pyoptik-1.7.1.post0/docs/source/gallery/sellmeier/plot_water.py.md5 +0 -1
  59. pyoptik-1.7.1.post0/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
  60. pyoptik-1.7.1.post0/docs/source/gallery/tabulated/index.rst +0 -100
  61. pyoptik-1.7.1.post0/docs/source/gallery/tabulated/plot_sf5.py.md5 +0 -1
  62. pyoptik-1.7.1.post0/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
  63. pyoptik-1.7.1.post0/docs/source/gallery/tabulated/plot_silver.py.md5 +0 -1
  64. pyoptik-1.7.1.post0/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
  65. pyoptik-1.7.1.post0/docs/source/gallery/utils/create_sellmeier_file.py.md5 +0 -1
  66. pyoptik-1.7.1.post0/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
  67. pyoptik-1.7.1.post0/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
  68. pyoptik-1.7.1.post0/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
  69. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.github/dependabot.yml +0 -0
  70. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.github/workflows/deploy_anaconda.yml +0 -0
  71. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.github/workflows/deploy_coverage.yml +0 -0
  72. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.github/workflows/deploy_documentation.yml +0 -0
  73. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.github/workflows/deploy_workflow.yml +0 -0
  74. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.gitignore +0 -0
  75. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/.readthedocs.yml +0 -0
  76. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/LICENSE +0 -0
  77. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/__main__.py +0 -0
  78. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/__init__.py +0 -0
  79. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/BAK1.yml +0 -0
  80. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/BK7.yml +0 -0
  81. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/SF5.yml +0 -0
  82. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
  83. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/__init__.py +0 -0
  84. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/argon.yml +0 -0
  85. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/crown.yml +0 -0
  86. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/default.py +0 -0
  87. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/flint.yml +0 -0
  88. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/fluorine_doped_silica_1%.yml +0 -0
  89. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/fluorine_doped_silica_2%.yml +0 -0
  90. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
  91. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/germanium.yml +0 -0
  92. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
  93. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/polystyren.yml +0 -0
  94. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/silica.yml +0 -0
  95. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/silicon.yml +0 -0
  96. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
  97. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/sellmeier/water.yml +0 -0
  98. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/__init__.py +0 -0
  99. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/aluminium.yml +0 -0
  100. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/calcium.yml +0 -0
  101. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/copper.yml +0 -0
  102. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/default.py +0 -0
  103. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/gold.yml +0 -0
  104. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/iron.yml +0 -0
  105. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/nickel.yml +0 -0
  106. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/silver.yml +0 -0
  107. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/sodium.yml +0 -0
  108. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/data/tabulated/zinc.yml +0 -0
  109. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/directories.py +0 -0
  110. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/material/base_class.py +0 -0
  111. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/material/sellmeier_class.py +0 -0
  112. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/material/tabulated_class.py +0 -0
  113. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/units.py +0 -0
  114. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik/utils.py +0 -0
  115. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik.egg-info/dependency_links.txt +0 -0
  116. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik.egg-info/requires.txt +0 -0
  117. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/PyOptik.egg-info/top_level.txt +0 -0
  118. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/Makefile +0 -0
  119. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/README.rst +0 -0
  120. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/sellmeier/README.rst +0 -0
  121. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/tabulated/README.rst +0 -0
  122. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/utils/README.rst +0 -0
  123. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/utils/create_sellmeier_file.py +0 -0
  124. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/utils/create_tabulated_file.py +0 -0
  125. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/examples/utils/download_yml_file.py +0 -0
  126. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/images/example_bk7.png +0 -0
  127. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/images/logo.png +0 -0
  128. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/make.bat +0 -0
  129. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/_static/default.css +0 -0
  130. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/conf.py +0 -0
  131. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/index.rst +0 -0
  132. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_bk7_001.png +0 -0
  133. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_silica_001.png +0 -0
  134. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_water_001.png +0 -0
  135. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_bk7_thumb.png +0 -0
  136. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_silica_thumb.png +0 -0
  137. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_water_thumb.png +0 -0
  138. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_sf5_001.png +0 -0
  139. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_silver_001.png +0 -0
  140. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_sf5_thumb.png +0 -0
  141. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_silver_thumb.png +0 -0
  142. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_tabulated_file.ipynb +0 -0
  143. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_tabulated_file.py +0 -0
  144. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_tabulated_file.py.md5 +0 -0
  145. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_tabulated_file.rst +0 -0
  146. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/create_tabulated_file_codeobj.pickle +0 -0
  147. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/download_yml_file.ipynb +0 -0
  148. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/download_yml_file.py +0 -0
  149. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/download_yml_file.py.md5 +0 -0
  150. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/download_yml_file.rst +0 -0
  151. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/download_yml_file_codeobj.pickle +0 -0
  152. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/images/sphx_glr_create_tabulated_file_001.png +0 -0
  153. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/images/sphx_glr_download_yml_file_001.png +0 -0
  154. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_create_tabulated_file_thumb.png +0 -0
  155. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_download_yml_file_thumb.png +0 -0
  156. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/index.rst +0 -0
  157. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/docs/source/references.rst +0 -0
  158. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/meta.yaml +0 -0
  159. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/pyproject.toml +0 -0
  160. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/setup.cfg +0 -0
  161. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/tests/__init__.py +0 -0
  162. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/tests/test_sellmeier.py +0 -0
  163. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/tests/test_tabulated.py +0 -0
  164. {pyoptik-1.7.1.post0 → pyoptik-1.7.2.post0}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyOptik
3
- Version: 1.7.1.post0
3
+ Version: 1.7.2.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
@@ -106,10 +106,10 @@ After installing PyOptik, you can easily access material properties:
106
106
 
107
107
  .. code:: python
108
108
 
109
- from PyOptik import Material
109
+ from PyOptik import MaterialBank
110
110
 
111
111
  # Access the refractive index of BK7 glass
112
- bk7 = Material.BK7
112
+ bk7 = MaterialBank.BK7
113
113
  n = bk7.compute_refractive_index(0.55e-6)
114
114
  print(f"Refractive index at 0.55 µm: {n}")
115
115
 
@@ -122,13 +122,13 @@ Here is a quick example demonstrating how to use PyOptik to retrieve and plot th
122
122
  .. code:: python
123
123
 
124
124
  import numpy as np
125
- from PyOptik import Material
125
+ from PyOptik import MaterialBank
126
126
 
127
127
  # Define wavelength range
128
128
  wavelengths = np.linspace(0.3e-6, 2.5e-6, 100)
129
129
 
130
130
  # Retrieve refractive index for BK7 glass
131
- bk7 = Material.BK7
131
+ bk7 = MaterialBank.BK7
132
132
  n_values = bk7.compute_refractive_index(wavelengths)
133
133
 
134
134
  # Plot the results
@@ -6,9 +6,9 @@ except ImportError:
6
6
 
7
7
 
8
8
  from .utils import build_default_library
9
- from .material import Material
9
+ from .material_bank import _MaterialBank
10
10
  from .material import TabulatedMaterial
11
11
  from .material import SellmeierMaterial
12
12
  from .material import base_class
13
13
 
14
- Material = Material()
14
+ MaterialBank = Material = _MaterialBank()
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.7.1.post0'
16
- __version_tuple__ = version_tuple = (1, 7, 1)
15
+ __version__ = version = '1.7.2.post0'
16
+ __version_tuple__ = version_tuple = (1, 7, 2)
@@ -1,4 +1,3 @@
1
1
  from .base_class import BaseMaterial
2
2
  from .sellmeier_class import SellmeierMaterial
3
3
  from .tabulated_class import TabulatedMaterial
4
- from .material import Material
@@ -4,8 +4,13 @@
4
4
  from typing import Union
5
5
  from dataclasses import dataclass
6
6
  from PyOptik.material.sellmeier_class import SellmeierMaterial
7
+ from PyOptik.data.sellmeier import material_list as sellmeier_material_list
8
+ from PyOptik.data.tabulated import material_list as tabulated_material_list
7
9
  from PyOptik.material.tabulated_class import TabulatedMaterial
8
10
  from PyOptik import data
11
+ from PyOptik.utils import download_yml_file, remove_element
12
+ from PyOptik.directories import tabulated_data_path, sellmeier_data_path
13
+
9
14
 
10
15
  class staticproperty(property):
11
16
  """
@@ -17,7 +22,7 @@ class staticproperty(property):
17
22
  return self.fget()
18
23
 
19
24
  @dataclass(unsafe_hash=True)
20
- class Material:
25
+ class _MaterialBank:
21
26
  """
22
27
  A class representing common materials available in the PyOptik library.
23
28
 
@@ -25,21 +30,8 @@ class Material:
25
30
  a dynamic getter method. Materials are categorized into Sellmeier and Tabulated materials.
26
31
  """
27
32
 
28
- all = [
29
- 'silver',
30
- 'gold',
31
- 'aluminium',
32
- 'copper',
33
- 'zinc',
34
- 'iron',
35
- 'argon',
36
- 'water',
37
- 'silicon',
38
- 'BK7',
39
- 'fused_silica',
40
- 'germanium',
41
- 'polystyren'
42
- ]
33
+ all = [*sellmeier_material_list, *tabulated_material_list]
34
+
43
35
 
44
36
  def __getattr__(self, material_name: str) -> Union[SellmeierMaterial, TabulatedMaterial]:
45
37
  """
@@ -67,3 +59,14 @@ class Material:
67
59
  return TabulatedMaterial(material_name)
68
60
 
69
61
  raise FileNotFoundError(f'Material: [{material_name}] could not be found.')
62
+
63
+
64
+ def add_sellmeier_to_bank(self, filename: str, url: str) -> None:
65
+ return download_yml_file(filename=filename, url=url, location=sellmeier_data_path)
66
+
67
+ def add_tabulated_to_bank(self, filename: str, url: str) -> None:
68
+ return download_yml_file(filename=filename, url=url, location=tabulated_data_path)
69
+
70
+ def remove_item_from_bank(self, filename: str, location: str ='any') -> None:
71
+ remove_element(filename=filename, location=location)
72
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyOptik
3
- Version: 1.7.1.post0
3
+ Version: 1.7.2.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
@@ -106,10 +106,10 @@ After installing PyOptik, you can easily access material properties:
106
106
 
107
107
  .. code:: python
108
108
 
109
- from PyOptik import Material
109
+ from PyOptik import MaterialBank
110
110
 
111
111
  # Access the refractive index of BK7 glass
112
- bk7 = Material.BK7
112
+ bk7 = MaterialBank.BK7
113
113
  n = bk7.compute_refractive_index(0.55e-6)
114
114
  print(f"Refractive index at 0.55 µm: {n}")
115
115
 
@@ -122,13 +122,13 @@ Here is a quick example demonstrating how to use PyOptik to retrieve and plot th
122
122
  .. code:: python
123
123
 
124
124
  import numpy as np
125
- from PyOptik import Material
125
+ from PyOptik import MaterialBank
126
126
 
127
127
  # Define wavelength range
128
128
  wavelengths = np.linspace(0.3e-6, 2.5e-6, 100)
129
129
 
130
130
  # Retrieve refractive index for BK7 glass
131
- bk7 = Material.BK7
131
+ bk7 = MaterialBank.BK7
132
132
  n_values = bk7.compute_refractive_index(wavelengths)
133
133
 
134
134
  # Plot the results
@@ -13,6 +13,7 @@ PyOptik/__init__.py
13
13
  PyOptik/__main__.py
14
14
  PyOptik/_version.py
15
15
  PyOptik/directories.py
16
+ PyOptik/material_bank.py
16
17
  PyOptik/units.py
17
18
  PyOptik/utils.py
18
19
  PyOptik.egg-info/PKG-INFO
@@ -53,7 +54,6 @@ PyOptik/data/tabulated/sodium.yml
53
54
  PyOptik/data/tabulated/zinc.yml
54
55
  PyOptik/material/__init__.py
55
56
  PyOptik/material/base_class.py
56
- PyOptik/material/material.py
57
57
  PyOptik/material/sellmeier_class.py
58
58
  PyOptik/material/tabulated_class.py
59
59
  docs/Makefile
@@ -47,10 +47,10 @@ After installing PyOptik, you can easily access material properties:
47
47
 
48
48
  .. code:: python
49
49
 
50
- from PyOptik import Material
50
+ from PyOptik import MaterialBank
51
51
 
52
52
  # Access the refractive index of BK7 glass
53
- bk7 = Material.BK7
53
+ bk7 = MaterialBank.BK7
54
54
  n = bk7.compute_refractive_index(0.55e-6)
55
55
  print(f"Refractive index at 0.55 µm: {n}")
56
56
 
@@ -63,13 +63,13 @@ Here is a quick example demonstrating how to use PyOptik to retrieve and plot th
63
63
  .. code:: python
64
64
 
65
65
  import numpy as np
66
- from PyOptik import Material
66
+ from PyOptik import MaterialBank
67
67
 
68
68
  # Define wavelength range
69
69
  wavelengths = np.linspace(0.3e-6, 2.5e-6, 100)
70
70
 
71
71
  # Retrieve refractive index for BK7 glass
72
- bk7 = Material.BK7
72
+ bk7 = MaterialBank.BK7
73
73
  n_values = bk7.compute_refractive_index(wavelengths)
74
74
 
75
75
  # Plot the results
@@ -7,11 +7,11 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
  from PyOptik.units import nanometer
12
12
 
13
13
  # Initialize the material with the Sellmeier model
14
- material = Material.BK7
14
+ material = MaterialBank.BK7
15
15
 
16
16
  # Calculate refractive index at specific wavelengths
17
17
  RI = material.compute_refractive_index(wavelength=[1310, 1550] * nanometer)
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.fused_silica
13
+ material = MaterialBank.fused_silica
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.water
13
+ material = MaterialBank.water
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[800e-9, 900e-9])
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.SF5
13
+ material = MaterialBank.SF5
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.silver
13
+ material = MaterialBank.silver
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -12,8 +12,26 @@ Class Documentation
12
12
 
13
13
  Below, you will find detailed, automatically generated documentation for significant classes and functions in the `PyOptik` library. These descriptions are intended to help you understand how each class and function fits into the overall framework, and how to utilize them effectively in your projects.
14
14
 
15
+
16
+
17
+ MaterialBank
18
+ ------------
19
+
20
+ .. _material_bank:
21
+
22
+ The `MaterialBank` class extends the `Material` base class to handle materials defined by the Sellmeier equation. It allows for precise modeling of refractive indices using parameters from the Sellmeier formula, which is essential for optical design and simulation.
23
+
24
+ .. autoclass:: PyOptik._MaterialBank
25
+ :members:
26
+ :member-order: bysource
27
+ :show-inheritance:
28
+ :undoc-members:
29
+
30
+
31
+
15
32
  .. _sellmeier_material:
16
33
 
34
+
17
35
  SellmeierMaterial
18
36
  -----------------
19
37
 
@@ -17,30 +17,6 @@ Usage
17
17
 
18
18
  To run these examples, make sure you have installed all required dependencies as outlined in the main `PyOptik` README. Navigate to this folder and execute the Python scripts as follows:
19
19
 
20
- .. .. code-block:: python
21
-
22
- .. import numpy
23
- .. from PyOptik import Material
24
- .. from PyOptik.units import nanometer, micrometer
25
-
26
- .. material = Material.BK7
27
-
28
- .. RI = material.compute_refractive_index(wavelength=[1310, 1550] * nanometer)
29
-
30
- .. material.plot(
31
- .. wavelength=numpy.linspace(300, 1500, 300) * nanometer
32
- .. )
33
-
34
-
35
- .. Each example is designed to be educational, guiding you through the usage of the `SellmeierMaterial` class for different practical cases.
36
-
37
- .. Further Information
38
- .. -------------------
39
-
40
- .. For more details on the `SellmeierMaterial` class, refer to the comprehensive source code documentation available at the following link:
41
-
42
-
43
-
44
20
 
45
21
 
46
22
  .. raw:: html
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "outputs": [],
17
17
  "source": [
18
- "import numpy\nfrom PyOptik import Material\nfrom PyOptik.units import nanometer\n\n# Initialize the material with the Sellmeier model\nmaterial = Material.BK7\n\n# Calculate refractive index at specific wavelengths\nRI = material.compute_refractive_index(wavelength=[1310, 1550] * nanometer)\n\n# Display calculated refractive indices at sample wavelengths\nmaterial.plot(\n wavelength=numpy.linspace(300, 1500, 300) * nanometer\n)"
18
+ "import numpy\nfrom PyOptik import MaterialBank\nfrom PyOptik.units import nanometer\n\n# Initialize the material with the Sellmeier model\nmaterial = MaterialBank.BK7\n\n# Calculate refractive index at specific wavelengths\nRI = material.compute_refractive_index(wavelength=[1310, 1550] * nanometer)\n\n# Display calculated refractive indices at sample wavelengths\nmaterial.plot(\n wavelength=numpy.linspace(300, 1500, 300) * nanometer\n)"
19
19
  ]
20
20
  }
21
21
  ],
@@ -7,11 +7,11 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
  from PyOptik.units import nanometer
12
12
 
13
13
  # Initialize the material with the Sellmeier model
14
- material = Material.BK7
14
+ material = MaterialBank.BK7
15
15
 
16
16
  # Calculate refractive index at specific wavelengths
17
17
  RI = material.compute_refractive_index(wavelength=[1310, 1550] * nanometer)
@@ -0,0 +1 @@
1
+ 92dec173da197d638e3a55b9abd6a6ff
@@ -40,11 +40,11 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
40
40
 
41
41
 
42
42
  import numpy
43
- from PyOptik import Material
43
+ from PyOptik import MaterialBank
44
44
  from PyOptik.units import nanometer
45
45
 
46
46
  # Initialize the material with the Sellmeier model
47
- material = Material.BK7
47
+ material = MaterialBank.BK7
48
48
 
49
49
  # Calculate refractive index at specific wavelengths
50
50
  RI = material.compute_refractive_index(wavelength=[1310, 1550] * nanometer)
@@ -56,7 +56,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
56
56
 
57
57
  .. rst-class:: sphx-glr-timing
58
58
 
59
- **Total running time of the script:** (0 minutes 0.137 seconds)
59
+ **Total running time of the script:** (0 minutes 0.115 seconds)
60
60
 
61
61
 
62
62
  .. _sphx_glr_download_gallery_sellmeier_plot_bk7.py:
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "outputs": [],
17
17
  "source": [
18
- "import numpy\nfrom PyOptik import Material\n\n# Initialize the material with the Sellmeier model\nmaterial = Material.fused_silica\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(500e-9, 1500e-9, 300)\n)"
18
+ "import numpy\nfrom PyOptik import MaterialBank\n\n# Initialize the material with the Sellmeier model\nmaterial = MaterialBank.fused_silica\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(500e-9, 1500e-9, 300)\n)"
19
19
  ]
20
20
  }
21
21
  ],
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.fused_silica
13
+ material = MaterialBank.fused_silica
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -0,0 +1 @@
1
+ a4913319cfa72de1f014df0f8629196c
@@ -40,10 +40,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
40
40
 
41
41
 
42
42
  import numpy
43
- from PyOptik import Material
43
+ from PyOptik import MaterialBank
44
44
 
45
45
  # Initialize the material with the Sellmeier model
46
- material = Material.fused_silica
46
+ material = MaterialBank.fused_silica
47
47
 
48
48
  # Calculate refractive index at specific wavelengths
49
49
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -56,7 +56,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
56
56
 
57
57
  .. rst-class:: sphx-glr-timing
58
58
 
59
- **Total running time of the script:** (0 minutes 0.118 seconds)
59
+ **Total running time of the script:** (0 minutes 0.109 seconds)
60
60
 
61
61
 
62
62
  .. _sphx_glr_download_gallery_sellmeier_plot_silica.py:
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "outputs": [],
17
17
  "source": [
18
- "import numpy\nfrom PyOptik import Material\n\n# Initialize the material with the Sellmeier model\nmaterial = Material.water\n\n# Calculate refractive index at specific wavelengths\nRI = material.compute_refractive_index(wavelength=[800e-9, 900e-9])\n\n# Display calculated refractive indices at sample wavelengths\nmaterial.plot(\n wavelength=numpy.linspace(300e-9, 1000e-9, 300)\n)"
18
+ "import numpy\nfrom PyOptik import MaterialBank\n\n# Initialize the material with the Sellmeier model\nmaterial = MaterialBank.water\n\n# Calculate refractive index at specific wavelengths\nRI = material.compute_refractive_index(wavelength=[800e-9, 900e-9])\n\n# Display calculated refractive indices at sample wavelengths\nmaterial.plot(\n wavelength=numpy.linspace(300e-9, 1000e-9, 300)\n)"
19
19
  ]
20
20
  }
21
21
  ],
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.water
13
+ material = MaterialBank.water
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[800e-9, 900e-9])
@@ -0,0 +1 @@
1
+ a41254e7354f9f378ee221b27120d35a
@@ -40,10 +40,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
40
40
 
41
41
 
42
42
  import numpy
43
- from PyOptik import Material
43
+ from PyOptik import MaterialBank
44
44
 
45
45
  # Initialize the material with the Sellmeier model
46
- material = Material.water
46
+ material = MaterialBank.water
47
47
 
48
48
  # Calculate refractive index at specific wavelengths
49
49
  RI = material.compute_refractive_index(wavelength=[800e-9, 900e-9])
@@ -57,7 +57,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
57
57
 
58
58
  .. rst-class:: sphx-glr-timing
59
59
 
60
- **Total running time of the script:** (0 minutes 0.165 seconds)
60
+ **Total running time of the script:** (0 minutes 0.134 seconds)
61
61
 
62
62
 
63
63
  .. _sphx_glr_download_gallery_sellmeier_plot_water.py:
@@ -6,12 +6,12 @@
6
6
 
7
7
  Computation times
8
8
  =================
9
- **00:00.419** total execution time for **gallery_sellmeier** files:
9
+ **00:00.358** 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.165 | 0.0 MB |
12
+ | :ref:`sphx_glr_gallery_sellmeier_plot_water.py` (``plot_water.py``) | 00:00.134 | 0.0 MB |
13
13
  +-----------------------------------------------------------------------+-----------+--------+
14
- | :ref:`sphx_glr_gallery_sellmeier_plot_bk7.py` (``plot_bk7.py``) | 00:00.137 | 0.0 MB |
14
+ | :ref:`sphx_glr_gallery_sellmeier_plot_bk7.py` (``plot_bk7.py``) | 00:00.115 | 0.0 MB |
15
15
  +-----------------------------------------------------------------------+-----------+--------+
16
- | :ref:`sphx_glr_gallery_sellmeier_plot_silica.py` (``plot_silica.py``) | 00:00.118 | 0.0 MB |
16
+ | :ref:`sphx_glr_gallery_sellmeier_plot_silica.py` (``plot_silica.py``) | 00:00.109 | 0.0 MB |
17
17
  +-----------------------------------------------------------------------+-----------+--------+
@@ -0,0 +1,75 @@
1
+ :orphan:
2
+
3
+ Examples: Tabulated Material
4
+ ============================
5
+
6
+ This folder contains examples demonstrating how to use the `TabulatedMaterial` class from the PyOptik library.
7
+ These examples illustrate the practical applications of working with tabulated refractive index and absorption data, which is useful for analyzing materials based on empirical measurements.
8
+
9
+ Contents
10
+ --------
11
+
12
+ - **Basic Tabulated Material Usage**: Shows how to create an instance of the `TabulatedMaterial` class and access the refractive index and absorption values.
13
+ - **Interpolating Refractive Index**: Demonstrates how to interpolate the refractive index and absorption values for a given range of wavelengths.
14
+ - **Visualization Example**: Provides an example of plotting the refractive index and absorption over a range of wavelengths using the `plot` method.
15
+
16
+
17
+
18
+
19
+ .. raw:: html
20
+
21
+ <div class="sphx-glr-thumbnails">
22
+
23
+
24
+ .. raw:: html
25
+
26
+ <div class="sphx-glr-thumbcontainer" tooltip="This module demonstrates the usage of the PyOptik library to calculate and plot the refractive ...">
27
+
28
+ .. only:: html
29
+
30
+ .. image:: /gallery/tabulated/images/thumb/sphx_glr_plot_sf5_thumb.png
31
+ :alt:
32
+
33
+ :ref:`sphx_glr_gallery_tabulated_plot_sf5.py`
34
+
35
+ .. raw:: html
36
+
37
+ <div class="sphx-glr-thumbnail-title">Plot the Refractive Index of Optical Material: SF5</div>
38
+ </div>
39
+
40
+
41
+ .. raw:: html
42
+
43
+ <div class="sphx-glr-thumbcontainer" tooltip="This module demonstrates the usage of the PyOptik library to calculate and plot the refractive ...">
44
+
45
+ .. only:: html
46
+
47
+ .. image:: /gallery/tabulated/images/thumb/sphx_glr_plot_silver_thumb.png
48
+ :alt:
49
+
50
+ :ref:`sphx_glr_gallery_tabulated_plot_silver.py`
51
+
52
+ .. raw:: html
53
+
54
+ <div class="sphx-glr-thumbnail-title">Plot the Refractive Index of Optical Material: Silver</div>
55
+ </div>
56
+
57
+
58
+ .. raw:: html
59
+
60
+ </div>
61
+
62
+
63
+ .. toctree::
64
+ :hidden:
65
+
66
+ /gallery/tabulated/plot_sf5
67
+ /gallery/tabulated/plot_silver
68
+
69
+
70
+
71
+ .. only:: html
72
+
73
+ .. rst-class:: sphx-glr-signature
74
+
75
+ `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "outputs": [],
17
17
  "source": [
18
- "import numpy\nfrom PyOptik import Material\n\n# Initialize the material with the Sellmeier model\nmaterial = Material.SF5\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(400e-9, 1500e-9, 300)\n)"
18
+ "import numpy\nfrom PyOptik import MaterialBank\n\n# Initialize the material with the Sellmeier model\nmaterial = MaterialBank.SF5\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(400e-9, 1500e-9, 300)\n)"
19
19
  ]
20
20
  }
21
21
  ],
@@ -7,10 +7,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
7
7
  """
8
8
 
9
9
  import numpy
10
- from PyOptik import Material
10
+ from PyOptik import MaterialBank
11
11
 
12
12
  # Initialize the material with the Sellmeier model
13
- material = Material.SF5
13
+ material = MaterialBank.SF5
14
14
 
15
15
  # Calculate refractive index at specific wavelengths
16
16
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -0,0 +1 @@
1
+ bdbbb5d73c59cf13ff35c8e79857f021
@@ -40,10 +40,10 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
40
40
 
41
41
 
42
42
  import numpy
43
- from PyOptik import Material
43
+ from PyOptik import MaterialBank
44
44
 
45
45
  # Initialize the material with the Sellmeier model
46
- material = Material.SF5
46
+ material = MaterialBank.SF5
47
47
 
48
48
  # Calculate refractive index at specific wavelengths
49
49
  RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
@@ -56,7 +56,7 @@ This module demonstrates the usage of the PyOptik library to calculate and plot
56
56
 
57
57
  .. rst-class:: sphx-glr-timing
58
58
 
59
- **Total running time of the script:** (0 minutes 0.151 seconds)
59
+ **Total running time of the script:** (0 minutes 0.125 seconds)
60
60
 
61
61
 
62
62
  .. _sphx_glr_download_gallery_tabulated_plot_sf5.py: