PyOptik 1.8.2.post0__tar.gz → 1.8.3.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 (180) hide show
  1. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PKG-INFO +2 -2
  2. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/_version.py +2 -2
  3. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/material/base_class.py +2 -1
  4. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/material_bank.py +3 -2
  5. pyoptik-1.8.3.post0/PyOptik/units.py +61 -0
  6. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik.egg-info/PKG-INFO +2 -2
  7. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/README.rst +1 -1
  8. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/tabulated/plot_silver.py +1 -1
  9. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/utils/create_sellmeier_file.py +4 -4
  10. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/utils/create_tabulated_file.py +3 -4
  11. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/utils/download_yml_file.py +2 -2
  12. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_bk7.py +1 -0
  13. pyoptik-1.8.3.post0/docs/source/gallery/sellmeier/plot_bk7.py.md5 +1 -0
  14. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_bk7.rst +2 -3
  15. pyoptik-1.8.3.post0/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
  16. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_silica.py +1 -0
  17. pyoptik-1.8.3.post0/docs/source/gallery/sellmeier/plot_silica.py.md5 +1 -0
  18. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_silica.rst +2 -3
  19. pyoptik-1.8.3.post0/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
  20. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_water.py +1 -0
  21. pyoptik-1.8.3.post0/docs/source/gallery/sellmeier/plot_water.py.md5 +1 -0
  22. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_water.rst +2 -3
  23. pyoptik-1.8.3.post0/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
  24. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/sg_execution_times.rst +4 -4
  25. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/plot_sf5.py +1 -0
  26. pyoptik-1.8.3.post0/docs/source/gallery/tabulated/plot_sf5.py.md5 +1 -0
  27. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/plot_sf5.rst +2 -3
  28. pyoptik-1.8.3.post0/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
  29. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/plot_silver.ipynb +1 -1
  30. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/plot_silver.py +2 -1
  31. pyoptik-1.8.3.post0/docs/source/gallery/tabulated/plot_silver.py.md5 +1 -0
  32. pyoptik-1.8.3.post0/docs/source/gallery/tabulated/plot_silver.rst +112 -0
  33. pyoptik-1.8.3.post0/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
  34. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/sg_execution_times.rst +3 -3
  35. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/build_library.ipynb +8 -1
  36. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/build_library.py +1 -0
  37. pyoptik-1.8.3.post0/docs/source/gallery/utils/build_library.py.md5 +1 -0
  38. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/build_library.rst +17 -38
  39. pyoptik-1.8.3.post0/docs/source/gallery/utils/build_library_codeobj.pickle +0 -0
  40. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/create_sellmeier_file.ipynb +1 -1
  41. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/create_sellmeier_file.py +5 -4
  42. pyoptik-1.8.3.post0/docs/source/gallery/utils/create_sellmeier_file.py.md5 +1 -0
  43. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/create_sellmeier_file.rst +6 -8
  44. pyoptik-1.8.3.post0/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
  45. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/create_tabulated_file.ipynb +1 -1
  46. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/create_tabulated_file.py +4 -4
  47. pyoptik-1.8.3.post0/docs/source/gallery/utils/create_tabulated_file.py.md5 +1 -0
  48. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/create_tabulated_file.rst +5 -8
  49. pyoptik-1.8.3.post0/docs/source/gallery/utils/create_tabulated_file_codeobj.pickle +0 -0
  50. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/download_yml_file.ipynb +1 -1
  51. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/download_yml_file.py +3 -2
  52. pyoptik-1.8.3.post0/docs/source/gallery/utils/download_yml_file.py.md5 +1 -0
  53. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/download_yml_file.rst +4 -5
  54. pyoptik-1.8.3.post0/docs/source/gallery/utils/download_yml_file_codeobj.pickle +0 -0
  55. pyoptik-1.8.3.post0/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
  56. pyoptik-1.8.3.post0/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
  57. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/sg_execution_times.rst +5 -5
  58. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/tests/test_utils.py +11 -0
  59. pyoptik-1.8.2.post0/PyOptik/units.py +0 -9
  60. pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_bk7.py.md5 +0 -1
  61. pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_bk7_codeobj.pickle +0 -0
  62. pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_silica.py.md5 +0 -1
  63. pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_silica_codeobj.pickle +0 -0
  64. pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_water.py.md5 +0 -1
  65. pyoptik-1.8.2.post0/docs/source/gallery/sellmeier/plot_water_codeobj.pickle +0 -0
  66. pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_sf5.py.md5 +0 -1
  67. pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_sf5_codeobj.pickle +0 -0
  68. pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_silver.py.md5 +0 -1
  69. pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_silver.rst +0 -85
  70. pyoptik-1.8.2.post0/docs/source/gallery/tabulated/plot_silver_codeobj.pickle +0 -0
  71. pyoptik-1.8.2.post0/docs/source/gallery/utils/build_library.py.md5 +0 -1
  72. pyoptik-1.8.2.post0/docs/source/gallery/utils/build_library_codeobj.pickle +0 -0
  73. pyoptik-1.8.2.post0/docs/source/gallery/utils/create_sellmeier_file.py.md5 +0 -1
  74. pyoptik-1.8.2.post0/docs/source/gallery/utils/create_sellmeier_file_codeobj.pickle +0 -0
  75. pyoptik-1.8.2.post0/docs/source/gallery/utils/create_tabulated_file.py.md5 +0 -1
  76. pyoptik-1.8.2.post0/docs/source/gallery/utils/create_tabulated_file_codeobj.pickle +0 -0
  77. pyoptik-1.8.2.post0/docs/source/gallery/utils/download_yml_file.py.md5 +0 -1
  78. pyoptik-1.8.2.post0/docs/source/gallery/utils/download_yml_file_codeobj.pickle +0 -0
  79. pyoptik-1.8.2.post0/docs/source/gallery/utils/images/sphx_glr_create_sellmeier_file_001.png +0 -0
  80. pyoptik-1.8.2.post0/docs/source/gallery/utils/images/thumb/sphx_glr_create_sellmeier_file_thumb.png +0 -0
  81. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.github/dependabot.yml +0 -0
  82. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.github/workflows/deploy_anaconda.yml +0 -0
  83. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.github/workflows/deploy_coverage.yml +0 -0
  84. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.github/workflows/deploy_documentation.yml +0 -0
  85. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.github/workflows/deploy_workflow.yml +0 -0
  86. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.gitignore +0 -0
  87. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/.readthedocs.yml +0 -0
  88. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/LICENSE +0 -0
  89. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/__init__.py +0 -0
  90. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/__main__.py +0 -0
  91. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/__init__.py +0 -0
  92. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/classics.yml +0 -0
  93. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/glasses.yml +0 -0
  94. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/metals.yml +0 -0
  95. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/minimal.yml +0 -0
  96. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/organics.yml +0 -0
  97. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/others.yml +0 -0
  98. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/plastics.yml +0 -0
  99. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/BAK1.yml +0 -0
  100. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/BK7.yml +0 -0
  101. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/SF5.yml +0 -0
  102. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
  103. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/air.yml +0 -0
  104. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/argon.yml +0 -0
  105. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/crown.yml +0 -0
  106. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/flint.yml +0 -0
  107. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
  108. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/germanium.yml +0 -0
  109. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
  110. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/polystyren.yml +0 -0
  111. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/silicon.yml +0 -0
  112. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
  113. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/sellmeier/water.yml +0 -0
  114. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/aluminium.yml +0 -0
  115. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/calcium.yml +0 -0
  116. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/copper.yml +0 -0
  117. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/gold.yml +0 -0
  118. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/iron.yml +0 -0
  119. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/nickel.yml +0 -0
  120. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/silver.yml +0 -0
  121. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/sodium.yml +0 -0
  122. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/data/tabulated/zinc.yml +0 -0
  123. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/directories.py +0 -0
  124. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/material/__init__.py +0 -0
  125. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/material/sellmeier_class.py +0 -0
  126. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/material/tabulated_class.py +0 -0
  127. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik/utils.py +0 -0
  128. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik.egg-info/SOURCES.txt +0 -0
  129. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik.egg-info/dependency_links.txt +0 -0
  130. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik.egg-info/requires.txt +0 -0
  131. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/PyOptik.egg-info/top_level.txt +0 -0
  132. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/development/dev_0.py +0 -0
  133. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/Makefile +0 -0
  134. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/README.rst +0 -0
  135. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/sellmeier/README.rst +0 -0
  136. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/sellmeier/plot_bk7.py +0 -0
  137. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/sellmeier/plot_silica.py +0 -0
  138. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/sellmeier/plot_water.py +0 -0
  139. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/tabulated/README.rst +0 -0
  140. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/tabulated/plot_sf5.py +0 -0
  141. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/utils/README.rst +0 -0
  142. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/examples/utils/build_library.py +0 -0
  143. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/images/example_bk7.png +0 -0
  144. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/images/logo.png +0 -0
  145. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/make.bat +0 -0
  146. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/_static/default.css +0 -0
  147. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/code.rst +0 -0
  148. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/conf.py +0 -0
  149. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/index.rst +0 -0
  150. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_bk7_001.png +0 -0
  151. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_silica_001.png +0 -0
  152. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/images/sphx_glr_plot_water_001.png +0 -0
  153. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_bk7_thumb.png +0 -0
  154. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_silica_thumb.png +0 -0
  155. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/images/thumb/sphx_glr_plot_water_thumb.png +0 -0
  156. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/index.rst +0 -0
  157. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_bk7.ipynb +0 -0
  158. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_silica.ipynb +0 -0
  159. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/sellmeier/plot_water.ipynb +0 -0
  160. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_sf5_001.png +0 -0
  161. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/images/sphx_glr_plot_silver_001.png +0 -0
  162. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_sf5_thumb.png +0 -0
  163. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/images/thumb/sphx_glr_plot_silver_thumb.png +0 -0
  164. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/index.rst +0 -0
  165. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/tabulated/plot_sf5.ipynb +0 -0
  166. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/images/sphx_glr_create_tabulated_file_001.png +0 -0
  167. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/images/sphx_glr_download_yml_file_001.png +0 -0
  168. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_build_library_thumb.png +0 -0
  169. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_create_tabulated_file_thumb.png +0 -0
  170. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/images/thumb/sphx_glr_download_yml_file_thumb.png +0 -0
  171. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/gallery/utils/index.rst +0 -0
  172. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/index.rst +0 -0
  173. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/docs/source/references.rst +0 -0
  174. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/meta.yaml +0 -0
  175. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/pyproject.toml +0 -0
  176. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/setup.cfg +0 -0
  177. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/tests/__init__.py +0 -0
  178. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/tests/test_sellmeier.py +0 -0
  179. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.post0}/tests/test_tabulated.py +0 -0
  180. {pyoptik-1.8.2.post0 → pyoptik-1.8.3.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.2.post0
3
+ Version: 1.8.3.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
@@ -66,7 +66,7 @@ PyOptik is a Python tool designed to import refractive indexes and extinction co
66
66
 
67
67
  .. list-table::
68
68
  :widths: 10 25 25
69
- :header-rows: 1
69
+ :header-rows: 0
70
70
 
71
71
  * - Meta
72
72
  - |python|
@@ -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.2.post0'
16
- __version_tuple__ = version_tuple = (1, 8, 2)
15
+ __version__ = version = '1.8.3.post0'
16
+ __version_tuple__ = version_tuple = (1, 8, 3)
@@ -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
- if not isinstance(wavelength, Quantity):
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.2.post0
3
+ Version: 1.8.3.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
@@ -66,7 +66,7 @@ PyOptik is a Python tool designed to import refractive indexes and extinction co
66
66
 
67
67
  .. list-table::
68
68
  :widths: 10 25 25
69
- :header-rows: 1
69
+ :header-rows: 0
70
70
 
71
71
  * - Meta
72
72
  - |python|
@@ -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: 1
10
+ :header-rows: 0
11
11
 
12
12
  * - Meta
13
13
  - |python|
@@ -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-10, 0.17]
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 = SellmeierMaterial(filename)
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 TabulatedMaterial
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 = TabulatedMaterial(filename)
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 SellmeierMaterial
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 = SellmeierMaterial('example_download')
21
+ m = MaterialBank.get('example_download')
22
22
 
23
23
  m.plot()
@@ -6,6 +6,7 @@ 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
11
12
  from PyOptik.units import nanometer
@@ -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 8-22
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.115 seconds)
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:
@@ -6,6 +6,7 @@ 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
11
12
 
@@ -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 8-22
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.109 seconds)
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:
@@ -6,6 +6,7 @@ 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
11
12
 
@@ -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 8-23
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.134 seconds)
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:
@@ -6,12 +6,12 @@
6
6
 
7
7
  Computation times
8
8
  =================
9
- **00:00.358** total execution time for **gallery_sellmeier** files:
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.134 | 0.0 MB |
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.115 | 0.0 MB |
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.109 | 0.0 MB |
16
+ | :ref:`sphx_glr_gallery_sellmeier_plot_silica.py` (``plot_silica.py``) | 00:00.110 | 0.0 MB |
17
17
  +-----------------------------------------------------------------------+-----------+--------+
@@ -6,6 +6,7 @@ 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
11
12
 
@@ -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 8-22
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.125 seconds)
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
@@ -0,0 +1,112 @@
1
+
2
+ .. DO NOT EDIT.
3
+ .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY.
4
+ .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE:
5
+ .. "gallery/tabulated/plot_silver.py"
6
+ .. LINE NUMBERS ARE GIVEN BELOW.
7
+
8
+ .. only:: html
9
+
10
+ .. note::
11
+ :class: sphx-glr-download-link-note
12
+
13
+ :ref:`Go to the end <sphx_glr_download_gallery_tabulated_plot_silver.py>`
14
+ to download the full example code
15
+
16
+ .. rst-class:: sphx-glr-example-title
17
+
18
+ .. _sphx_glr_gallery_tabulated_plot_silver.py:
19
+
20
+
21
+ Plot the Refractive Index of Optical Material: Silver
22
+ =====================================================
23
+
24
+ This module demonstrates the usage of the PyOptik library to calculate and plot the refractive index of the optical material silver over a specified range of wavelengths.
25
+
26
+ .. GENERATED FROM PYTHON SOURCE LINES 10-24
27
+
28
+
29
+
30
+ .. image-sg:: /gallery/tabulated/images/sphx_glr_plot_silver_001.png
31
+ :alt: Refractive Index and Absorption vs. Wavelength [silver]
32
+ :srcset: /gallery/tabulated/images/sphx_glr_plot_silver_001.png
33
+ :class: sphx-glr-single-img
34
+
35
+
36
+ .. rst-class:: sphx-glr-script-out
37
+
38
+ .. code-block:: none
39
+
40
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/silver.yml
41
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/aluminium.yml
42
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/gold.yml
43
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/calcium.yml
44
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/copper.yml
45
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/iron.yml
46
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/sodium.yml
47
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/nickel.yml
48
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/zinc.yml
49
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/chromium.yml
50
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/titanium.yml
51
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/tungsten.yml
52
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/lead.yml
53
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/bismuth.yml
54
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/magnesium.yml
55
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/paladium.yml
56
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/rhodium.yml
57
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/vanadium.yml
58
+ File downloaded and saved to /Users/martinpdes/Desktop/GitProject/PyOptik/PyOptik/data/tabulated/tantalum.yml
59
+
60
+
61
+
62
+
63
+
64
+
65
+ |
66
+
67
+ .. code-block:: python3
68
+
69
+ import numpy
70
+ from PyOptik import MaterialBank
71
+ MaterialBank.build_library('metals')
72
+
73
+ # Initialize the material with the Sellmeier model
74
+ material = MaterialBank.silver
75
+
76
+ # Calculate refractive index at specific wavelengths
77
+ RI = material.compute_refractive_index(wavelength=[1310e-9, 1550e-9])
78
+
79
+ # Display calculated refractive indices at sample wavelengths
80
+ material.plot(
81
+ wavelength=numpy.linspace(300e-9, 1500e-9, 300)
82
+ )
83
+
84
+
85
+ .. rst-class:: sphx-glr-timing
86
+
87
+ **Total running time of the script:** (0 minutes 11.563 seconds)
88
+
89
+
90
+ .. _sphx_glr_download_gallery_tabulated_plot_silver.py:
91
+
92
+ .. only:: html
93
+
94
+ .. container:: sphx-glr-footer sphx-glr-footer-example
95
+
96
+
97
+
98
+
99
+ .. container:: sphx-glr-download sphx-glr-download-python
100
+
101
+ :download:`Download Python source code: plot_silver.py <plot_silver.py>`
102
+
103
+ .. container:: sphx-glr-download sphx-glr-download-jupyter
104
+
105
+ :download:`Download Jupyter notebook: plot_silver.ipynb <plot_silver.ipynb>`
106
+
107
+
108
+ .. only:: html
109
+
110
+ .. rst-class:: sphx-glr-signature
111
+
112
+ `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_
@@ -6,10 +6,10 @@
6
6
 
7
7
  Computation times
8
8
  =================
9
- **00:00.273** total execution time for **gallery_tabulated** files:
9
+ **00:11.690** total execution time for **gallery_tabulated** files:
10
10
 
11
11
  +-----------------------------------------------------------------------+-----------+--------+
12
- | :ref:`sphx_glr_gallery_tabulated_plot_silver.py` (``plot_silver.py``) | 00:00.148 | 0.0 MB |
12
+ | :ref:`sphx_glr_gallery_tabulated_plot_silver.py` (``plot_silver.py``) | 00:11.563 | 0.0 MB |
13
13
  +-----------------------------------------------------------------------+-----------+--------+
14
- | :ref:`sphx_glr_gallery_tabulated_plot_sf5.py` (``plot_sf5.py``) | 00:00.125 | 0.0 MB |
14
+ | :ref:`sphx_glr_gallery_tabulated_plot_sf5.py` (``plot_sf5.py``) | 00:00.126 | 0.0 MB |
15
15
  +-----------------------------------------------------------------------+-----------+--------+
@@ -7,6 +7,13 @@
7
7
  "\n# Building database and Printing Materials\n\nThis example demonstrates how to build a material library using the `build_library` function\nfrom the PyOptik package and how to print out the available materials using the `MaterialBank` class.\n\nWe will first build the `others` material library, removing any previously downloaded files,\nand then print out all the available materials in the `MaterialBank`.\n\nThe available libraries are:\n- 'classics'\n- 'glasses'\n- 'metals'\n- 'organics'\n- 'others'\n- 'all' (to download all libraries)\n"
8
8
  ]
9
9
  },
10
+ {
11
+ "cell_type": "markdown",
12
+ "metadata": {},
13
+ "source": [
14
+ "Import necessary modules\n\n"
15
+ ]
16
+ },
10
17
  {
11
18
  "cell_type": "code",
12
19
  "execution_count": null,
@@ -15,7 +22,7 @@
15
22
  },
16
23
  "outputs": [],
17
24
  "source": [
18
- "# Import necessary modules\nfrom PyOptik import MaterialBank\n\n# Build the 'others' material library and remove previously downloaded files\nMaterialBank.build_library('glasses', remove_previous=True)\n\n# Print all the available materials (Sellmeier and Tabulated)\nMaterialBank.print_materials()"
25
+ "from PyOptik import MaterialBank\n\n# Build the 'others' material library and remove previously downloaded files\nMaterialBank.build_library('glasses', remove_previous=True)\n\n# Print all the available materials (Sellmeier and Tabulated)\nMaterialBank.print_materials()"
19
26
  ]
20
27
  }
21
28
  ],
@@ -19,6 +19,7 @@ The available libraries are:
19
19
 
20
20
  """
21
21
 
22
+ # %%
22
23
  # Import necessary modules
23
24
  from PyOptik import MaterialBank
24
25
 
@@ -0,0 +1 @@
1
+ 2eb6578c4290b9e3f2469709b19e7c5c