BaldrApp 0.1.0__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.
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.2
2
+ Name: BaldrApp
3
+ Version: 0.1.0
4
+ Summary: Simulating Baldr - the Zernike Wavefront Sensor for Asgard
5
+ Home-page: https://github.com/your_username/your_project
6
+ Author: Benjamin Courtney-Barrer
7
+ Author-email: benjamin.courtney-barrer@anu.edu.au
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.12.7
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: altair==5.4.1
15
+ Requires-Dist: astropy==6.1.3
16
+ Requires-Dist: astropy-iers-data==0.2024.9.23.0.31.43
17
+ Requires-Dist: asttokens==2.4.1
18
+ Requires-Dist: attrs==24.2.0
19
+ Requires-Dist: blinker==1.8.2
20
+ Requires-Dist: cachetools==5.5.0
21
+ Requires-Dist: certifi==2024.8.30
22
+ Requires-Dist: charset-normalizer==3.3.2
23
+ Requires-Dist: click==8.1.7
24
+ Requires-Dist: contourpy==1.3.0
25
+ Requires-Dist: cycler==0.12.1
26
+ Requires-Dist: decorator==5.1.1
27
+ Requires-Dist: executing==2.1.0
28
+ Requires-Dist: fonttools==4.54.1
29
+ Requires-Dist: gitdb==4.0.11
30
+ Requires-Dist: GitPython==3.1.43
31
+ Requires-Dist: idna==3.10
32
+ Requires-Dist: ipython==8.28.0
33
+ Requires-Dist: jedi==0.19.1
34
+ Requires-Dist: Jinja2==3.1.4
35
+ Requires-Dist: joblib==1.4.2
36
+ Requires-Dist: jsonschema==4.23.0
37
+ Requires-Dist: jsonschema-specifications==2023.12.1
38
+ Requires-Dist: kiwisolver==1.4.7
39
+ Requires-Dist: llvmlite==0.43.0
40
+ Requires-Dist: markdown-it-py==3.0.0
41
+ Requires-Dist: MarkupSafe==2.1.5
42
+ Requires-Dist: matplotlib==3.9.2
43
+ Requires-Dist: matplotlib-inline==0.1.7
44
+ Requires-Dist: mdurl==0.1.2
45
+ Requires-Dist: narwhals==1.8.3
46
+ Requires-Dist: numpy==2.1.1
47
+ Requires-Dist: packaging==24.1
48
+ Requires-Dist: pandas==2.2.3
49
+ Requires-Dist: parso==0.8.4
50
+ Requires-Dist: pexpect==4.9.0
51
+ Requires-Dist: pillow==10.4.0
52
+ Requires-Dist: poppy==1.1.1
53
+ Requires-Dist: prompt_toolkit==3.0.48
54
+ Requires-Dist: protobuf==5.28.2
55
+ Requires-Dist: ptyprocess==0.7.0
56
+ Requires-Dist: pure_eval==0.2.3
57
+ Requires-Dist: pyarrow==17.0.0
58
+ Requires-Dist: pydeck==0.9.1
59
+ Requires-Dist: pyerfa==2.0.1.4
60
+ Requires-Dist: Pygments==2.18.0
61
+ Requires-Dist: pyparsing==3.1.4
62
+ Requires-Dist: PyQt5==5.15.11
63
+ Requires-Dist: PyQt5-Qt5==5.15.15
64
+ Requires-Dist: PyQt5_sip==12.15.0
65
+ Requires-Dist: pyqtgraph==0.13.7
66
+ Requires-Dist: python-dateutil==2.9.0.post0
67
+ Requires-Dist: pytz==2024.2
68
+ Requires-Dist: PyYAML==6.0.2
69
+ Requires-Dist: referencing==0.35.1
70
+ Requires-Dist: requests==2.32.3
71
+ Requires-Dist: rich==13.8.1
72
+ Requires-Dist: rpds-py==0.20.0
73
+ Requires-Dist: scikit-learn==1.5.2
74
+ Requires-Dist: scipy==1.14.1
75
+ Requires-Dist: six==1.16.0
76
+ Requires-Dist: smmap==5.0.1
77
+ Requires-Dist: stack-data==0.6.3
78
+ Requires-Dist: streamlit==1.38.0
79
+ Requires-Dist: tenacity==8.5.0
80
+ Requires-Dist: threadpoolctl==3.5.0
81
+ Requires-Dist: toml==0.10.2
82
+ Requires-Dist: tornado==6.4.1
83
+ Requires-Dist: traitlets==5.14.3
84
+ Requires-Dist: typing_extensions==4.12.2
85
+ Requires-Dist: tzdata==2024.2
86
+ Requires-Dist: urllib3==2.2.3
87
+ Requires-Dist: watchdog==4.0.2
88
+ Requires-Dist: wcwidth==0.2.13
89
+ Dynamic: author
90
+ Dynamic: author-email
91
+ Dynamic: classifier
92
+ Dynamic: description
93
+ Dynamic: description-content-type
94
+ Dynamic: home-page
95
+ Dynamic: requires-dist
96
+ Dynamic: requires-python
97
+ Dynamic: summary
98
+
99
+ # BaldrApp
100
+
101
+ Simulating Baldr - the Zernike Wavefront Sensor for Asgard
102
+
103
+ Includes
104
+ - a **PyQt** app for end-to-end simulatations and visualization of Baldr operations (closed and open loop). Try:
105
+ >>python apps/baldr_closed_loop_app/closed_loop_pyqtgraph.py
106
+
107
+
108
+ - a **Streamlit** application that simulates a Zernike Wavefront Sensor optical system using Fresnel diffraction propagation to model system mis-alignments. The default setup is for simulating the last (critical) part of the optical train of Baldr. Try:
109
+ >>streamlit run apps/baldr_alignment_app/Baldr_Fresnel_App.py
110
+
111
+ - general packaged tools for simulating ZWFS's. These build upon the python pyZELDA package.
112
+
113
+
114
+ ## Installation
115
+
116
+ 1. Clone the repository:
117
+ ```bash
118
+ git clone https://github.com/courtney-barrer/BaldrApp
119
+
120
+ Depends on a forked version of the pyZELDA package (https://github.com/courtney-barrer/pyZELDA) which is specified in the requirements.txt.
121
+
122
+ if there are path issues after setup try install directly:
123
+
124
+ pip install pyzelda@git+https://github.com/courtney-barrer/pyZELDA.git@b42aaea5c8a47026783a15391df5e058360ea15e
125
+
126
+
127
+
128
+ ## Features
129
+ Key Features:
130
+ 1. User Inputs via Sidebar:
131
+ - Wavelength: Controls the light wavelength in micrometers.
132
+ - Zernike Aberration: Users define Zernike mode and coefficient to simulate optical aberrations.
133
+ - Phasemask Properties: Diameter, phase shift, on-axis/off-axis transmission coefficients.
134
+ - Optical Element Offsets: Users can shift positions of elements like phase mask, lenses, and cold stop.
135
+ - Element Inclusion: Toggle the inclusion/exclusion of key components (phase mask, cold stop).
136
+
137
+ 2. System Propagation and Plot:
138
+ - Calculates wavefront propagation through a multi-element optical system (lenses, phase mask, cold stop).
139
+ - Fresnel diffraction propagation is used to model the interaction of light with optical elements.
140
+ - Applies Zernike aberrations to simulate their effect on intensity measured at the detector.
141
+ - Visualizes the intensity distribution at the detector using a heatmap.
142
+
143
+ 3. Update Button:
144
+ - Plot updates only when the "Update" button is pressed, making the app more efficient.
145
+ - Input values are stored in `st.session_state` to prevent unnecessary re-runs.
146
+
147
+ 4. Plotting the Results:
148
+ - The app bins and displays the resulting intensity distribution at the detector.
149
+ - A heatmap shows how system parameters affect the output.
150
+
@@ -0,0 +1,17 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ requirements.txt
5
+ setup.py
6
+ BaldrApp.egg-info/PKG-INFO
7
+ BaldrApp.egg-info/SOURCES.txt
8
+ BaldrApp.egg-info/dependency_links.txt
9
+ BaldrApp.egg-info/requires.txt
10
+ BaldrApp.egg-info/top_level.txt
11
+ common/DM_basis.py
12
+ common/DM_registration.py
13
+ common/__init__.py
14
+ common/baldr_core.py
15
+ common/phasescreens.py
16
+ common/pupils.py
17
+ common/utilities.py
@@ -0,0 +1,75 @@
1
+ altair==5.4.1
2
+ astropy==6.1.3
3
+ astropy-iers-data==0.2024.9.23.0.31.43
4
+ asttokens==2.4.1
5
+ attrs==24.2.0
6
+ blinker==1.8.2
7
+ cachetools==5.5.0
8
+ certifi==2024.8.30
9
+ charset-normalizer==3.3.2
10
+ click==8.1.7
11
+ contourpy==1.3.0
12
+ cycler==0.12.1
13
+ decorator==5.1.1
14
+ executing==2.1.0
15
+ fonttools==4.54.1
16
+ gitdb==4.0.11
17
+ GitPython==3.1.43
18
+ idna==3.10
19
+ ipython==8.28.0
20
+ jedi==0.19.1
21
+ Jinja2==3.1.4
22
+ joblib==1.4.2
23
+ jsonschema==4.23.0
24
+ jsonschema-specifications==2023.12.1
25
+ kiwisolver==1.4.7
26
+ llvmlite==0.43.0
27
+ markdown-it-py==3.0.0
28
+ MarkupSafe==2.1.5
29
+ matplotlib==3.9.2
30
+ matplotlib-inline==0.1.7
31
+ mdurl==0.1.2
32
+ narwhals==1.8.3
33
+ numpy==2.1.1
34
+ packaging==24.1
35
+ pandas==2.2.3
36
+ parso==0.8.4
37
+ pexpect==4.9.0
38
+ pillow==10.4.0
39
+ poppy==1.1.1
40
+ prompt_toolkit==3.0.48
41
+ protobuf==5.28.2
42
+ ptyprocess==0.7.0
43
+ pure_eval==0.2.3
44
+ pyarrow==17.0.0
45
+ pydeck==0.9.1
46
+ pyerfa==2.0.1.4
47
+ Pygments==2.18.0
48
+ pyparsing==3.1.4
49
+ PyQt5==5.15.11
50
+ PyQt5-Qt5==5.15.15
51
+ PyQt5_sip==12.15.0
52
+ pyqtgraph==0.13.7
53
+ python-dateutil==2.9.0.post0
54
+ pytz==2024.2
55
+ PyYAML==6.0.2
56
+ referencing==0.35.1
57
+ requests==2.32.3
58
+ rich==13.8.1
59
+ rpds-py==0.20.0
60
+ scikit-learn==1.5.2
61
+ scipy==1.14.1
62
+ six==1.16.0
63
+ smmap==5.0.1
64
+ stack-data==0.6.3
65
+ streamlit==1.38.0
66
+ tenacity==8.5.0
67
+ threadpoolctl==3.5.0
68
+ toml==0.10.2
69
+ tornado==6.4.1
70
+ traitlets==5.14.3
71
+ typing_extensions==4.12.2
72
+ tzdata==2024.2
73
+ urllib3==2.2.3
74
+ watchdog==4.0.2
75
+ wcwidth==0.2.13
@@ -0,0 +1 @@
1
+ common
baldrapp-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 courtney-barrer
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ include requirements.txt
@@ -0,0 +1,150 @@
1
+ Metadata-Version: 2.2
2
+ Name: BaldrApp
3
+ Version: 0.1.0
4
+ Summary: Simulating Baldr - the Zernike Wavefront Sensor for Asgard
5
+ Home-page: https://github.com/your_username/your_project
6
+ Author: Benjamin Courtney-Barrer
7
+ Author-email: benjamin.courtney-barrer@anu.edu.au
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.12.7
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: altair==5.4.1
15
+ Requires-Dist: astropy==6.1.3
16
+ Requires-Dist: astropy-iers-data==0.2024.9.23.0.31.43
17
+ Requires-Dist: asttokens==2.4.1
18
+ Requires-Dist: attrs==24.2.0
19
+ Requires-Dist: blinker==1.8.2
20
+ Requires-Dist: cachetools==5.5.0
21
+ Requires-Dist: certifi==2024.8.30
22
+ Requires-Dist: charset-normalizer==3.3.2
23
+ Requires-Dist: click==8.1.7
24
+ Requires-Dist: contourpy==1.3.0
25
+ Requires-Dist: cycler==0.12.1
26
+ Requires-Dist: decorator==5.1.1
27
+ Requires-Dist: executing==2.1.0
28
+ Requires-Dist: fonttools==4.54.1
29
+ Requires-Dist: gitdb==4.0.11
30
+ Requires-Dist: GitPython==3.1.43
31
+ Requires-Dist: idna==3.10
32
+ Requires-Dist: ipython==8.28.0
33
+ Requires-Dist: jedi==0.19.1
34
+ Requires-Dist: Jinja2==3.1.4
35
+ Requires-Dist: joblib==1.4.2
36
+ Requires-Dist: jsonschema==4.23.0
37
+ Requires-Dist: jsonschema-specifications==2023.12.1
38
+ Requires-Dist: kiwisolver==1.4.7
39
+ Requires-Dist: llvmlite==0.43.0
40
+ Requires-Dist: markdown-it-py==3.0.0
41
+ Requires-Dist: MarkupSafe==2.1.5
42
+ Requires-Dist: matplotlib==3.9.2
43
+ Requires-Dist: matplotlib-inline==0.1.7
44
+ Requires-Dist: mdurl==0.1.2
45
+ Requires-Dist: narwhals==1.8.3
46
+ Requires-Dist: numpy==2.1.1
47
+ Requires-Dist: packaging==24.1
48
+ Requires-Dist: pandas==2.2.3
49
+ Requires-Dist: parso==0.8.4
50
+ Requires-Dist: pexpect==4.9.0
51
+ Requires-Dist: pillow==10.4.0
52
+ Requires-Dist: poppy==1.1.1
53
+ Requires-Dist: prompt_toolkit==3.0.48
54
+ Requires-Dist: protobuf==5.28.2
55
+ Requires-Dist: ptyprocess==0.7.0
56
+ Requires-Dist: pure_eval==0.2.3
57
+ Requires-Dist: pyarrow==17.0.0
58
+ Requires-Dist: pydeck==0.9.1
59
+ Requires-Dist: pyerfa==2.0.1.4
60
+ Requires-Dist: Pygments==2.18.0
61
+ Requires-Dist: pyparsing==3.1.4
62
+ Requires-Dist: PyQt5==5.15.11
63
+ Requires-Dist: PyQt5-Qt5==5.15.15
64
+ Requires-Dist: PyQt5_sip==12.15.0
65
+ Requires-Dist: pyqtgraph==0.13.7
66
+ Requires-Dist: python-dateutil==2.9.0.post0
67
+ Requires-Dist: pytz==2024.2
68
+ Requires-Dist: PyYAML==6.0.2
69
+ Requires-Dist: referencing==0.35.1
70
+ Requires-Dist: requests==2.32.3
71
+ Requires-Dist: rich==13.8.1
72
+ Requires-Dist: rpds-py==0.20.0
73
+ Requires-Dist: scikit-learn==1.5.2
74
+ Requires-Dist: scipy==1.14.1
75
+ Requires-Dist: six==1.16.0
76
+ Requires-Dist: smmap==5.0.1
77
+ Requires-Dist: stack-data==0.6.3
78
+ Requires-Dist: streamlit==1.38.0
79
+ Requires-Dist: tenacity==8.5.0
80
+ Requires-Dist: threadpoolctl==3.5.0
81
+ Requires-Dist: toml==0.10.2
82
+ Requires-Dist: tornado==6.4.1
83
+ Requires-Dist: traitlets==5.14.3
84
+ Requires-Dist: typing_extensions==4.12.2
85
+ Requires-Dist: tzdata==2024.2
86
+ Requires-Dist: urllib3==2.2.3
87
+ Requires-Dist: watchdog==4.0.2
88
+ Requires-Dist: wcwidth==0.2.13
89
+ Dynamic: author
90
+ Dynamic: author-email
91
+ Dynamic: classifier
92
+ Dynamic: description
93
+ Dynamic: description-content-type
94
+ Dynamic: home-page
95
+ Dynamic: requires-dist
96
+ Dynamic: requires-python
97
+ Dynamic: summary
98
+
99
+ # BaldrApp
100
+
101
+ Simulating Baldr - the Zernike Wavefront Sensor for Asgard
102
+
103
+ Includes
104
+ - a **PyQt** app for end-to-end simulatations and visualization of Baldr operations (closed and open loop). Try:
105
+ >>python apps/baldr_closed_loop_app/closed_loop_pyqtgraph.py
106
+
107
+
108
+ - a **Streamlit** application that simulates a Zernike Wavefront Sensor optical system using Fresnel diffraction propagation to model system mis-alignments. The default setup is for simulating the last (critical) part of the optical train of Baldr. Try:
109
+ >>streamlit run apps/baldr_alignment_app/Baldr_Fresnel_App.py
110
+
111
+ - general packaged tools for simulating ZWFS's. These build upon the python pyZELDA package.
112
+
113
+
114
+ ## Installation
115
+
116
+ 1. Clone the repository:
117
+ ```bash
118
+ git clone https://github.com/courtney-barrer/BaldrApp
119
+
120
+ Depends on a forked version of the pyZELDA package (https://github.com/courtney-barrer/pyZELDA) which is specified in the requirements.txt.
121
+
122
+ if there are path issues after setup try install directly:
123
+
124
+ pip install pyzelda@git+https://github.com/courtney-barrer/pyZELDA.git@b42aaea5c8a47026783a15391df5e058360ea15e
125
+
126
+
127
+
128
+ ## Features
129
+ Key Features:
130
+ 1. User Inputs via Sidebar:
131
+ - Wavelength: Controls the light wavelength in micrometers.
132
+ - Zernike Aberration: Users define Zernike mode and coefficient to simulate optical aberrations.
133
+ - Phasemask Properties: Diameter, phase shift, on-axis/off-axis transmission coefficients.
134
+ - Optical Element Offsets: Users can shift positions of elements like phase mask, lenses, and cold stop.
135
+ - Element Inclusion: Toggle the inclusion/exclusion of key components (phase mask, cold stop).
136
+
137
+ 2. System Propagation and Plot:
138
+ - Calculates wavefront propagation through a multi-element optical system (lenses, phase mask, cold stop).
139
+ - Fresnel diffraction propagation is used to model the interaction of light with optical elements.
140
+ - Applies Zernike aberrations to simulate their effect on intensity measured at the detector.
141
+ - Visualizes the intensity distribution at the detector using a heatmap.
142
+
143
+ 3. Update Button:
144
+ - Plot updates only when the "Update" button is pressed, making the app more efficient.
145
+ - Input values are stored in `st.session_state` to prevent unnecessary re-runs.
146
+
147
+ 4. Plotting the Results:
148
+ - The app bins and displays the resulting intensity distribution at the detector.
149
+ - A heatmap shows how system parameters affect the output.
150
+
@@ -0,0 +1,52 @@
1
+ # BaldrApp
2
+
3
+ Simulating Baldr - the Zernike Wavefront Sensor for Asgard
4
+
5
+ Includes
6
+ - a **PyQt** app for end-to-end simulatations and visualization of Baldr operations (closed and open loop). Try:
7
+ >>python apps/baldr_closed_loop_app/closed_loop_pyqtgraph.py
8
+
9
+
10
+ - a **Streamlit** application that simulates a Zernike Wavefront Sensor optical system using Fresnel diffraction propagation to model system mis-alignments. The default setup is for simulating the last (critical) part of the optical train of Baldr. Try:
11
+ >>streamlit run apps/baldr_alignment_app/Baldr_Fresnel_App.py
12
+
13
+ - general packaged tools for simulating ZWFS's. These build upon the python pyZELDA package.
14
+
15
+
16
+ ## Installation
17
+
18
+ 1. Clone the repository:
19
+ ```bash
20
+ git clone https://github.com/courtney-barrer/BaldrApp
21
+
22
+ Depends on a forked version of the pyZELDA package (https://github.com/courtney-barrer/pyZELDA) which is specified in the requirements.txt.
23
+
24
+ if there are path issues after setup try install directly:
25
+
26
+ pip install pyzelda@git+https://github.com/courtney-barrer/pyZELDA.git@b42aaea5c8a47026783a15391df5e058360ea15e
27
+
28
+
29
+
30
+ ## Features
31
+ Key Features:
32
+ 1. User Inputs via Sidebar:
33
+ - Wavelength: Controls the light wavelength in micrometers.
34
+ - Zernike Aberration: Users define Zernike mode and coefficient to simulate optical aberrations.
35
+ - Phasemask Properties: Diameter, phase shift, on-axis/off-axis transmission coefficients.
36
+ - Optical Element Offsets: Users can shift positions of elements like phase mask, lenses, and cold stop.
37
+ - Element Inclusion: Toggle the inclusion/exclusion of key components (phase mask, cold stop).
38
+
39
+ 2. System Propagation and Plot:
40
+ - Calculates wavefront propagation through a multi-element optical system (lenses, phase mask, cold stop).
41
+ - Fresnel diffraction propagation is used to model the interaction of light with optical elements.
42
+ - Applies Zernike aberrations to simulate their effect on intensity measured at the detector.
43
+ - Visualizes the intensity distribution at the detector using a heatmap.
44
+
45
+ 3. Update Button:
46
+ - Plot updates only when the "Update" button is pressed, making the app more efficient.
47
+ - Input values are stored in `st.session_state` to prevent unnecessary re-runs.
48
+
49
+ 4. Plotting the Results:
50
+ - The app bins and displays the resulting intensity distribution at the detector.
51
+ - A heatmap shows how system parameters affect the output.
52
+