PyOptik 1.1.0.post0__tar.gz → 1.1.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.
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/.coverage +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PKG-INFO +1 -1
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/__init__.py +2 -1
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/_version.py +2 -2
- pyoptik-1.1.2.post0/PyOptik/material.py +70 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik.egg-info/PKG-INFO +1 -1
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik.egg-info/SOURCES.txt +3 -1
- pyoptik-1.1.2.post0/tests/test_extra.py +12 -0
- pyoptik-1.1.2.post0/tests/test_usual_material.py +17 -0
- pyoptik-1.1.0.post0/PyOptik/material.py +0 -2
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/.github/dependabot.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/.github/workflows/coverage.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/.github/workflows/deploy_workflow.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/.gitignore +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/.readthedocs.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/LICENSE +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/base_class.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/__init__.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/BAK1.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/BK7.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/SF5.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/__init__.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/argon.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/crown.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/default.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/flint.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/fluorine_doped_silica_1%.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/fluorine_doped_silica_2%.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/germanium.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/polystyren.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/silica.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/silicon.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/test.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/water.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/__init__.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/aluminium.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/calcium.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/copper.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/default.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/gold.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/iron.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/nickel.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/silver.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/sodium.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/test.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/tabulated/zinc.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/test.yml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/directories.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/download.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/sellmeier_class.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/tabulated_class.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/utils.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik.egg-info/dependency_links.txt +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik.egg-info/requires.txt +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik.egg-info/top_level.txt +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/README.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/developments/testing.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/Makefile +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/deprecated/experiment_material.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/examples/README.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/examples/measurements_tio2.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/examples/measurements_water.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/examples/sellmeier_bk7.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/examples/sellmeier_sf5.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/examples/sellmeier_silica.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/images/logo.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/make.bat +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/_static/default.css +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/code.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/conf.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/add_material.ipynb +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/add_material.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/add_material.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/add_material_codeobj.pickle +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/get_values.ipynb +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/get_values.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/get_values.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/get_values_codeobj.pickle +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/images/sphx_glr_plot_sellmeier_0_001.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/images/sphx_glr_plot_sellmeier_1_001.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/images/thumb/sphx_glr_add_material_thumb.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/images/thumb/sphx_glr_get_values_thumb.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/images/thumb/sphx_glr_plot_sellmeier_0_thumb.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/images/thumb/sphx_glr_plot_sellmeier_1_thumb.png +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/index.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_0.ipynb +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_0.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_0.py.md5 +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_0.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_0_codeobj.pickle +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_1.ipynb +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_1.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_1.py.md5 +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_1.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_1_codeobj.pickle +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/sg_execution_times.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/index.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/references.rst +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/pyproject.toml +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/setup.cfg +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/tests/__init__.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/tests/test_sellmeier.py +0 -0
- {pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/tests/test_tabulated.py +0 -0
|
Binary file
|
|
@@ -12,5 +12,5 @@ __version__: str
|
|
|
12
12
|
__version_tuple__: VERSION_TUPLE
|
|
13
13
|
version_tuple: VERSION_TUPLE
|
|
14
14
|
|
|
15
|
-
__version__ = version = '1.1.
|
|
16
|
-
__version_tuple__ = version_tuple = (1, 1,
|
|
15
|
+
__version__ = version = '1.1.2.post0'
|
|
16
|
+
__version_tuple__ = version_tuple = (1, 1, 2)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
from PyOptik.sellmeier_class import SellmeierMaterial
|
|
2
|
+
from PyOptik.tabulated_class import TabulatedMaterial
|
|
3
|
+
|
|
4
|
+
class staticproperty(property):
|
|
5
|
+
def __get__(self, owner_self, owner_cls):
|
|
6
|
+
return self.fget()
|
|
7
|
+
|
|
8
|
+
class UsualMaterial:
|
|
9
|
+
all = [
|
|
10
|
+
'silver',
|
|
11
|
+
'gold',
|
|
12
|
+
'aluminium',
|
|
13
|
+
'copper',
|
|
14
|
+
'zinc',
|
|
15
|
+
'iron',
|
|
16
|
+
'argon',
|
|
17
|
+
'water',
|
|
18
|
+
'silicon',
|
|
19
|
+
'BK7',
|
|
20
|
+
'fused_silica',
|
|
21
|
+
'germanium',
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
@staticproperty
|
|
25
|
+
def silver():
|
|
26
|
+
return TabulatedMaterial('silver')
|
|
27
|
+
|
|
28
|
+
@staticproperty
|
|
29
|
+
def gold():
|
|
30
|
+
return TabulatedMaterial('gold')
|
|
31
|
+
|
|
32
|
+
@staticproperty
|
|
33
|
+
def aluminium():
|
|
34
|
+
return TabulatedMaterial('aluminium')
|
|
35
|
+
|
|
36
|
+
@staticproperty
|
|
37
|
+
def copper():
|
|
38
|
+
return TabulatedMaterial('copper')
|
|
39
|
+
|
|
40
|
+
@staticproperty
|
|
41
|
+
def zinc():
|
|
42
|
+
return TabulatedMaterial('zinc')
|
|
43
|
+
|
|
44
|
+
@staticproperty
|
|
45
|
+
def iron():
|
|
46
|
+
return TabulatedMaterial('iron')
|
|
47
|
+
|
|
48
|
+
@staticproperty
|
|
49
|
+
def argon():
|
|
50
|
+
return SellmeierMaterial('argon')
|
|
51
|
+
|
|
52
|
+
@staticproperty
|
|
53
|
+
def water():
|
|
54
|
+
return SellmeierMaterial('water')
|
|
55
|
+
|
|
56
|
+
@staticproperty
|
|
57
|
+
def silicon():
|
|
58
|
+
return SellmeierMaterial('silicon')
|
|
59
|
+
|
|
60
|
+
@staticproperty
|
|
61
|
+
def BK7():
|
|
62
|
+
return SellmeierMaterial('BK7')
|
|
63
|
+
|
|
64
|
+
@staticproperty
|
|
65
|
+
def fused_silica():
|
|
66
|
+
return SellmeierMaterial('fused_silica')
|
|
67
|
+
|
|
68
|
+
@staticproperty
|
|
69
|
+
def germanium():
|
|
70
|
+
return SellmeierMaterial('germanium')
|
|
@@ -98,5 +98,7 @@ docs/source/gallery/images/thumb/sphx_glr_get_values_thumb.png
|
|
|
98
98
|
docs/source/gallery/images/thumb/sphx_glr_plot_sellmeier_0_thumb.png
|
|
99
99
|
docs/source/gallery/images/thumb/sphx_glr_plot_sellmeier_1_thumb.png
|
|
100
100
|
tests/__init__.py
|
|
101
|
+
tests/test_extra.py
|
|
101
102
|
tests/test_sellmeier.py
|
|
102
|
-
tests/test_tabulated.py
|
|
103
|
+
tests/test_tabulated.py
|
|
104
|
+
tests/test_usual_material.py
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
import pytest
|
|
5
|
+
from unittest.mock import patch
|
|
6
|
+
from PyOptik.utils import build_default_library
|
|
7
|
+
|
|
8
|
+
def test_build_default_library():
|
|
9
|
+
build_default_library()
|
|
10
|
+
|
|
11
|
+
if __name__ == "__main__":
|
|
12
|
+
pytest.main([__file__])
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
from PyOptik import UsualMaterial
|
|
3
|
+
from PyOptik.material import SellmeierMaterial, TabulatedMaterial
|
|
4
|
+
|
|
5
|
+
@pytest.mark.parametrize('material_name', UsualMaterial.all, ids=lambda name: f'Test {name}')
|
|
6
|
+
def test_usual_material(material_name):
|
|
7
|
+
"""
|
|
8
|
+
Test each usual material defined in UsualMaterial to ensure that it can be instantiated without errors.
|
|
9
|
+
"""
|
|
10
|
+
material_instance = getattr(UsualMaterial, material_name)
|
|
11
|
+
|
|
12
|
+
print(material_instance.__class__)
|
|
13
|
+
|
|
14
|
+
assert isinstance(material_instance, (SellmeierMaterial, TabulatedMaterial)), f"{material_name} instantiation failed."
|
|
15
|
+
|
|
16
|
+
if __name__ == "__main__":
|
|
17
|
+
pytest.main([__file__])
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/fluorine_doped_silica_1%.yml
RENAMED
|
File without changes
|
{pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/PyOptik/data/sellmeier/fluorine_doped_silica_2%.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_0_codeobj.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyoptik-1.1.0.post0 → pyoptik-1.1.2.post0}/docs/source/gallery/plot_sellmeier_1_codeobj.pickle
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|