optixstuff 0.0.1__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.
- optixstuff-0.0.1/.gitignore +166 -0
- optixstuff-0.0.1/CHANGELOG.md +14 -0
- optixstuff-0.0.1/LICENSE +21 -0
- optixstuff-0.0.1/PKG-INFO +136 -0
- optixstuff-0.0.1/README.md +79 -0
- optixstuff-0.0.1/pyproject.toml +63 -0
- optixstuff-0.0.1/src/optixstuff/__init__.py +43 -0
- optixstuff-0.0.1/src/optixstuff/_version.py +24 -0
- optixstuff-0.0.1/src/optixstuff/coronagraph.py +193 -0
- optixstuff-0.0.1/src/optixstuff/detector.py +324 -0
- optixstuff-0.0.1/src/optixstuff/optical_elements.py +132 -0
- optixstuff-0.0.1/src/optixstuff/optical_path.py +47 -0
- optixstuff-0.0.1/src/optixstuff/primary.py +58 -0
- optixstuff-0.0.1/src/optixstuff/yippy_coronagraph.py +167 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
113
|
+
__pypackages__/
|
|
114
|
+
|
|
115
|
+
# Celery stuff
|
|
116
|
+
celerybeat-schedule
|
|
117
|
+
celerybeat.pid
|
|
118
|
+
|
|
119
|
+
# SageMath parsed files
|
|
120
|
+
*.sage.py
|
|
121
|
+
|
|
122
|
+
# Environments
|
|
123
|
+
.env
|
|
124
|
+
.venv
|
|
125
|
+
env/
|
|
126
|
+
venv/
|
|
127
|
+
ENV/
|
|
128
|
+
env.bak/
|
|
129
|
+
venv.bak/
|
|
130
|
+
|
|
131
|
+
# Spyder project settings
|
|
132
|
+
.spyderproject
|
|
133
|
+
.spyproject
|
|
134
|
+
|
|
135
|
+
# Rope project settings
|
|
136
|
+
.ropeproject
|
|
137
|
+
|
|
138
|
+
# mkdocs documentation
|
|
139
|
+
/site
|
|
140
|
+
|
|
141
|
+
# mypy
|
|
142
|
+
.mypy_cache/
|
|
143
|
+
.dmypy.json
|
|
144
|
+
dmypy.json
|
|
145
|
+
|
|
146
|
+
# Pyre type checker
|
|
147
|
+
.pyre/
|
|
148
|
+
|
|
149
|
+
# pytype static type analyzer
|
|
150
|
+
.pytype/
|
|
151
|
+
|
|
152
|
+
# Cython debug symbols
|
|
153
|
+
cython_debug/
|
|
154
|
+
|
|
155
|
+
# PyCharm
|
|
156
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
157
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
158
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
159
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
160
|
+
#.idea/
|
|
161
|
+
*_version.py
|
|
162
|
+
.DS_Store
|
|
163
|
+
input/
|
|
164
|
+
output/
|
|
165
|
+
scripts/
|
|
166
|
+
*.png
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.0.1 (2026-04-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* implement wavelength-dependent throughput elements and YippyCoronagraph integration ([a273eac](https://github.com/CoreySpohn/optixstuff/commit/a273eac61a97bbff00aee9e147f9b2736ac5e71a))
|
|
9
|
+
* initial package scaffold ([909ab74](https://github.com/CoreySpohn/optixstuff/commit/909ab747971deca8c62570620b693361f55d3419))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Miscellaneous Chores
|
|
13
|
+
|
|
14
|
+
* release 0.0.1 ([610191e](https://github.com/CoreySpohn/optixstuff/commit/610191ec673ba90d8380aa60fa2a45592cc14334))
|
optixstuff-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Corey Spohn
|
|
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,136 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: optixstuff
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Hardware abstractions for the HWO direct imaging simulation suite
|
|
5
|
+
Project-URL: Homepage, https://github.com/CoreySpohn/optixstuff
|
|
6
|
+
Project-URL: Issues, https://github.com/CoreySpohn/optixstuff/issues
|
|
7
|
+
Author-email: Corey Spohn <corey.a.spohn@nasa.gov>
|
|
8
|
+
License: MIT License
|
|
9
|
+
|
|
10
|
+
Copyright (c) 2026 Corey Spohn
|
|
11
|
+
|
|
12
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
13
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
14
|
+
in the Software without restriction, including without limitation the rights
|
|
15
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
16
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
17
|
+
furnished to do so, subject to the following conditions:
|
|
18
|
+
|
|
19
|
+
The above copyright notice and this permission notice shall be included in all
|
|
20
|
+
copies or substantial portions of the Software.
|
|
21
|
+
|
|
22
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
23
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
24
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
25
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
26
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
28
|
+
SOFTWARE.
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
|
31
|
+
Classifier: Intended Audience :: Science/Research
|
|
32
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
33
|
+
Classifier: Programming Language :: Python :: 3
|
|
34
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
35
|
+
Requires-Python: >=3.11
|
|
36
|
+
Requires-Dist: equinox>=0.12.0
|
|
37
|
+
Requires-Dist: interpax
|
|
38
|
+
Requires-Dist: jax>=0.4.1
|
|
39
|
+
Requires-Dist: jaxlib>=0.4.1
|
|
40
|
+
Requires-Dist: yippy
|
|
41
|
+
Provides-Extra: dev
|
|
42
|
+
Requires-Dist: pre-commit; extra == 'dev'
|
|
43
|
+
Provides-Extra: docs
|
|
44
|
+
Requires-Dist: ipython; extra == 'docs'
|
|
45
|
+
Requires-Dist: matplotlib; extra == 'docs'
|
|
46
|
+
Requires-Dist: myst-nb; extra == 'docs'
|
|
47
|
+
Requires-Dist: sphinx; extra == 'docs'
|
|
48
|
+
Requires-Dist: sphinx-autoapi; extra == 'docs'
|
|
49
|
+
Requires-Dist: sphinx-autodoc-typehints; extra == 'docs'
|
|
50
|
+
Requires-Dist: sphinx-book-theme; extra == 'docs'
|
|
51
|
+
Provides-Extra: test
|
|
52
|
+
Requires-Dist: hypothesis; extra == 'test'
|
|
53
|
+
Requires-Dist: nox; extra == 'test'
|
|
54
|
+
Requires-Dist: pytest; extra == 'test'
|
|
55
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
56
|
+
Description-Content-Type: text/markdown
|
|
57
|
+
|
|
58
|
+
# optixstuff
|
|
59
|
+
|
|
60
|
+
Flux-level optical system abstractions for the HWO direct imaging simulation suite.
|
|
61
|
+
|
|
62
|
+
## What optixstuff is
|
|
63
|
+
|
|
64
|
+
`optixstuff` is the **radiometric hardware layer** for HWO simulations. It operates on
|
|
65
|
+
**flux** — photon rates, throughput fractions, and detector-level noise — providing the
|
|
66
|
+
shared interfaces that simulation tools and exposure time calculators build on top of.
|
|
67
|
+
|
|
68
|
+
The same `OpticalPath` object drives both scalar ETC calculations (`jaxEDITH`) and full
|
|
69
|
+
2D image generation (`coronagraphoto`), ensuring that the hardware model is consistent
|
|
70
|
+
across all downstream science products.
|
|
71
|
+
|
|
72
|
+
## What optixstuff is *not*
|
|
73
|
+
|
|
74
|
+
`optixstuff` does not model diffraction, wavefront propagation, or E-field interference.
|
|
75
|
+
That level of physical optics belongs to tools like [dLux](https://github.com/LouisDesdoigts/dLux)
|
|
76
|
+
and [HCIPy](https://github.com/ehpor/hcipy), which generate PSFs from first principles.
|
|
77
|
+
|
|
78
|
+
`optixstuff` and these wavefront tools are **complementary**: dLux/HCIPy compute the PSFs,
|
|
79
|
+
which are delivered as yield input packages (YIPs). `optixstuff` consumes those PSFs as
|
|
80
|
+
flux patterns (via [yippy](https://github.com/CoreySpohn/yippy)) and composes them with
|
|
81
|
+
the rest of the observatory — throughput chain, detector QE, noise — to produce
|
|
82
|
+
science-level outputs.
|
|
83
|
+
|
|
84
|
+
## Architecture
|
|
85
|
+
|
|
86
|
+
Built on [JAX](https://github.com/google/jax) and
|
|
87
|
+
[Equinox](https://github.com/patrick-kidger/equinox), `optixstuff` provides:
|
|
88
|
+
|
|
89
|
+
- **Abstract interfaces** — `AbstractPrimary`, `AbstractOpticalElement`,
|
|
90
|
+
`AbstractCoronagraph`, `AbstractDetector`
|
|
91
|
+
- **Concrete implementations** — `SimplePrimary`, `ConstantThroughputElement`,
|
|
92
|
+
`SimpleDetector`
|
|
93
|
+
- **Container** — `OpticalPath`, a composable hardware configuration passed to all
|
|
94
|
+
simulators
|
|
95
|
+
|
|
96
|
+
Every abstract method accepts three fidelity axes — **wavelength**, **position**, and
|
|
97
|
+
**time** — with defaults so that simple implementations can ignore unused axes while
|
|
98
|
+
future high-fidelity models (wavelength-dependent coatings, position-dependent vignetting,
|
|
99
|
+
time-dependent detector degradation) can use them without breaking the interface.
|
|
100
|
+
|
|
101
|
+
### Ecosystem position
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
┌───────────────────────────┐
|
|
105
|
+
│ Physical optics │
|
|
106
|
+
│ (dLux, HCIPy, PROPER) │
|
|
107
|
+
│ E-fields → PSFs │
|
|
108
|
+
└──────────┬────────────────┘
|
|
109
|
+
│ YIP
|
|
110
|
+
┌──────────▼────────────────┐
|
|
111
|
+
│ yippy │
|
|
112
|
+
│ PSF interpolation │
|
|
113
|
+
└──────────┬────────────────┘
|
|
114
|
+
│ flux patterns
|
|
115
|
+
┌──────────────────────▼────────────────────────┐
|
|
116
|
+
│ optixstuff │
|
|
117
|
+
│ Telescope • Coronagraph • Detector • OpticalPath │
|
|
118
|
+
│ Throughput chains • QE • Noise rates │
|
|
119
|
+
└────────┬──────────────────────┬───────────────┘
|
|
120
|
+
│ │
|
|
121
|
+
┌──────────▼──────────┐ ┌────────▼───────────────┐
|
|
122
|
+
│ jaxEDITH │ │ coronagraphoto │
|
|
123
|
+
│ Scalar count rates │ │ 2D image simulation │
|
|
124
|
+
│ Exposure times │ │ Multi-epoch scenes │
|
|
125
|
+
└─────────────────────┘ └────────────────────────┘
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Installation
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
pip install optixstuff
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Status
|
|
135
|
+
|
|
136
|
+
This package is in early development (pre-v0.1.0).
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# optixstuff
|
|
2
|
+
|
|
3
|
+
Flux-level optical system abstractions for the HWO direct imaging simulation suite.
|
|
4
|
+
|
|
5
|
+
## What optixstuff is
|
|
6
|
+
|
|
7
|
+
`optixstuff` is the **radiometric hardware layer** for HWO simulations. It operates on
|
|
8
|
+
**flux** — photon rates, throughput fractions, and detector-level noise — providing the
|
|
9
|
+
shared interfaces that simulation tools and exposure time calculators build on top of.
|
|
10
|
+
|
|
11
|
+
The same `OpticalPath` object drives both scalar ETC calculations (`jaxEDITH`) and full
|
|
12
|
+
2D image generation (`coronagraphoto`), ensuring that the hardware model is consistent
|
|
13
|
+
across all downstream science products.
|
|
14
|
+
|
|
15
|
+
## What optixstuff is *not*
|
|
16
|
+
|
|
17
|
+
`optixstuff` does not model diffraction, wavefront propagation, or E-field interference.
|
|
18
|
+
That level of physical optics belongs to tools like [dLux](https://github.com/LouisDesdoigts/dLux)
|
|
19
|
+
and [HCIPy](https://github.com/ehpor/hcipy), which generate PSFs from first principles.
|
|
20
|
+
|
|
21
|
+
`optixstuff` and these wavefront tools are **complementary**: dLux/HCIPy compute the PSFs,
|
|
22
|
+
which are delivered as yield input packages (YIPs). `optixstuff` consumes those PSFs as
|
|
23
|
+
flux patterns (via [yippy](https://github.com/CoreySpohn/yippy)) and composes them with
|
|
24
|
+
the rest of the observatory — throughput chain, detector QE, noise — to produce
|
|
25
|
+
science-level outputs.
|
|
26
|
+
|
|
27
|
+
## Architecture
|
|
28
|
+
|
|
29
|
+
Built on [JAX](https://github.com/google/jax) and
|
|
30
|
+
[Equinox](https://github.com/patrick-kidger/equinox), `optixstuff` provides:
|
|
31
|
+
|
|
32
|
+
- **Abstract interfaces** — `AbstractPrimary`, `AbstractOpticalElement`,
|
|
33
|
+
`AbstractCoronagraph`, `AbstractDetector`
|
|
34
|
+
- **Concrete implementations** — `SimplePrimary`, `ConstantThroughputElement`,
|
|
35
|
+
`SimpleDetector`
|
|
36
|
+
- **Container** — `OpticalPath`, a composable hardware configuration passed to all
|
|
37
|
+
simulators
|
|
38
|
+
|
|
39
|
+
Every abstract method accepts three fidelity axes — **wavelength**, **position**, and
|
|
40
|
+
**time** — with defaults so that simple implementations can ignore unused axes while
|
|
41
|
+
future high-fidelity models (wavelength-dependent coatings, position-dependent vignetting,
|
|
42
|
+
time-dependent detector degradation) can use them without breaking the interface.
|
|
43
|
+
|
|
44
|
+
### Ecosystem position
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
┌───────────────────────────┐
|
|
48
|
+
│ Physical optics │
|
|
49
|
+
│ (dLux, HCIPy, PROPER) │
|
|
50
|
+
│ E-fields → PSFs │
|
|
51
|
+
└──────────┬────────────────┘
|
|
52
|
+
│ YIP
|
|
53
|
+
┌──────────▼────────────────┐
|
|
54
|
+
│ yippy │
|
|
55
|
+
│ PSF interpolation │
|
|
56
|
+
└──────────┬────────────────┘
|
|
57
|
+
│ flux patterns
|
|
58
|
+
┌──────────────────────▼────────────────────────┐
|
|
59
|
+
│ optixstuff │
|
|
60
|
+
│ Telescope • Coronagraph • Detector • OpticalPath │
|
|
61
|
+
│ Throughput chains • QE • Noise rates │
|
|
62
|
+
└────────┬──────────────────────┬───────────────┘
|
|
63
|
+
│ │
|
|
64
|
+
┌──────────▼──────────┐ ┌────────▼───────────────┐
|
|
65
|
+
│ jaxEDITH │ │ coronagraphoto │
|
|
66
|
+
│ Scalar count rates │ │ 2D image simulation │
|
|
67
|
+
│ Exposure times │ │ Multi-epoch scenes │
|
|
68
|
+
└─────────────────────┘ └────────────────────────┘
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Installation
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
pip install optixstuff
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Status
|
|
78
|
+
|
|
79
|
+
This package is in early development (pre-v0.1.0).
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ['hatchling', "hatch-fancy-pypi-readme", "hatch-vcs"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "optixstuff"
|
|
7
|
+
description = "Hardware abstractions for the HWO direct imaging simulation suite"
|
|
8
|
+
authors = [{ name = "Corey Spohn", email = "corey.a.spohn@nasa.gov" }]
|
|
9
|
+
dynamic = ['readme', 'version']
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = { file = "LICENSE" }
|
|
12
|
+
classifiers = [
|
|
13
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
14
|
+
"Intended Audience :: Science/Research",
|
|
15
|
+
"License :: OSI Approved :: MIT License",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Topic :: Scientific/Engineering :: Astronomy",
|
|
18
|
+
]
|
|
19
|
+
dependencies = ["equinox>=0.12.0", "interpax", "jax>=0.4.1", "jaxlib>=0.4.1", "yippy"]
|
|
20
|
+
|
|
21
|
+
[project.optional-dependencies]
|
|
22
|
+
dev = ["pre-commit"]
|
|
23
|
+
docs = [
|
|
24
|
+
"sphinx",
|
|
25
|
+
"myst-nb",
|
|
26
|
+
"sphinx-book-theme",
|
|
27
|
+
"sphinx-autoapi",
|
|
28
|
+
"sphinx_autodoc_typehints",
|
|
29
|
+
"ipython",
|
|
30
|
+
"matplotlib",
|
|
31
|
+
]
|
|
32
|
+
test = ["nox", "pytest", "hypothesis", "pytest-cov"]
|
|
33
|
+
|
|
34
|
+
[project.urls]
|
|
35
|
+
Homepage = "https://github.com/CoreySpohn/optixstuff"
|
|
36
|
+
Issues = "https://github.com/CoreySpohn/optixstuff/issues"
|
|
37
|
+
|
|
38
|
+
[tool.hatch.version]
|
|
39
|
+
source = "vcs"
|
|
40
|
+
|
|
41
|
+
[tool.hatch.build.hooks.vcs]
|
|
42
|
+
version-file = "src/optixstuff/_version.py"
|
|
43
|
+
|
|
44
|
+
[tool.hatch.metadata.hooks.fancy-pypi-readme]
|
|
45
|
+
content-type = "text/markdown"
|
|
46
|
+
|
|
47
|
+
[[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]]
|
|
48
|
+
path = "README.md"
|
|
49
|
+
|
|
50
|
+
[tool.ruff.lint]
|
|
51
|
+
select = ["B", "D", "E", "F", "I", "UP", "RUF"]
|
|
52
|
+
|
|
53
|
+
[tool.ruff.lint.pydocstyle]
|
|
54
|
+
convention = "google"
|
|
55
|
+
|
|
56
|
+
[tool.ruff.lint.per-file-ignores]
|
|
57
|
+
"tests/**" = ["D"]
|
|
58
|
+
|
|
59
|
+
[tool.hatch.build.targets.wheel]
|
|
60
|
+
packages = ["src/optixstuff"]
|
|
61
|
+
|
|
62
|
+
[tool.hatch.build.targets.sdist]
|
|
63
|
+
exclude = ["/scripts", "/docs", "/tests", "/.github"]
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""optixstuff -- Hardware abstractions for the HWO simulation suite."""
|
|
2
|
+
|
|
3
|
+
from optixstuff._version import __version__
|
|
4
|
+
from optixstuff.coronagraph import AbstractCoronagraph, AbstractScalarOnlyCoronagraph
|
|
5
|
+
from optixstuff.detector import (
|
|
6
|
+
AbstractDetector,
|
|
7
|
+
Detector,
|
|
8
|
+
SimpleDetector,
|
|
9
|
+
simulate_cic,
|
|
10
|
+
simulate_dark_current,
|
|
11
|
+
simulate_read_noise,
|
|
12
|
+
)
|
|
13
|
+
from optixstuff.optical_elements import (
|
|
14
|
+
AbstractOpticalElement,
|
|
15
|
+
AbstractUniformElement,
|
|
16
|
+
ConstantThroughputElement,
|
|
17
|
+
LinearThroughputElement,
|
|
18
|
+
OpticalFilter,
|
|
19
|
+
)
|
|
20
|
+
from optixstuff.optical_path import OpticalPath
|
|
21
|
+
from optixstuff.primary import AbstractPrimary, SimplePrimary
|
|
22
|
+
from optixstuff.yippy_coronagraph import YippyCoronagraph
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"AbstractCoronagraph",
|
|
26
|
+
"AbstractDetector",
|
|
27
|
+
"AbstractOpticalElement",
|
|
28
|
+
"AbstractPrimary",
|
|
29
|
+
"AbstractScalarOnlyCoronagraph",
|
|
30
|
+
"AbstractUniformElement",
|
|
31
|
+
"ConstantThroughputElement",
|
|
32
|
+
"Detector",
|
|
33
|
+
"LinearThroughputElement",
|
|
34
|
+
"OpticalFilter",
|
|
35
|
+
"OpticalPath",
|
|
36
|
+
"SimpleDetector",
|
|
37
|
+
"SimplePrimary",
|
|
38
|
+
"YippyCoronagraph",
|
|
39
|
+
"__version__",
|
|
40
|
+
"simulate_cic",
|
|
41
|
+
"simulate_dark_current",
|
|
42
|
+
"simulate_read_noise",
|
|
43
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# file generated by vcs-versioning
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
__all__ = [
|
|
6
|
+
"__version__",
|
|
7
|
+
"__version_tuple__",
|
|
8
|
+
"version",
|
|
9
|
+
"version_tuple",
|
|
10
|
+
"__commit_id__",
|
|
11
|
+
"commit_id",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
version: str
|
|
15
|
+
__version__: str
|
|
16
|
+
__version_tuple__: tuple[int | str, ...]
|
|
17
|
+
version_tuple: tuple[int | str, ...]
|
|
18
|
+
commit_id: str | None
|
|
19
|
+
__commit_id__: str | None
|
|
20
|
+
|
|
21
|
+
__version__ = version = '0.0.1'
|
|
22
|
+
__version_tuple__ = version_tuple = (0, 0, 1)
|
|
23
|
+
|
|
24
|
+
__commit_id__ = commit_id = None
|