spohnbook 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.
- spohnbook-0.0.1/.github/workflows/publish-to-pypi.yml +50 -0
- spohnbook-0.0.1/.github/workflows/release-please.yml +23 -0
- spohnbook-0.0.1/.github/workflows/tests.yml +116 -0
- spohnbook-0.0.1/.gitignore +229 -0
- spohnbook-0.0.1/.pre-commit-config.yaml +28 -0
- spohnbook-0.0.1/.readthedocs.yaml +25 -0
- spohnbook-0.0.1/CHANGELOG.md +29 -0
- spohnbook-0.0.1/CITATION.cff +22 -0
- spohnbook-0.0.1/LICENSE +21 -0
- spohnbook-0.0.1/PKG-INFO +87 -0
- spohnbook-0.0.1/README.md +23 -0
- spohnbook-0.0.1/docs/_data/handbook.yaml +455 -0
- spohnbook-0.0.1/docs/build_map.py +58 -0
- spohnbook-0.0.1/docs/citing.md +55 -0
- spohnbook-0.0.1/docs/conf.py +40 -0
- spohnbook-0.0.1/docs/contributing.md +118 -0
- spohnbook-0.0.1/docs/conventions/figures/conventions-figure-manifest.json +68 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-color-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-color-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-color-dark.svg +1285 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-color-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-color-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-color-light.svg +1285 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-geometry-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-geometry-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-geometry-dark.svg +722 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-geometry-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-geometry-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-geometry-light.svg +722 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-measurement-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-measurement-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-measurement-dark.svg +95 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-measurement-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-measurement-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-measurement-light.svg +95 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pipeline-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pipeline-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pipeline-dark.svg +105 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pipeline-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pipeline-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pipeline-light.svg +105 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pixels-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pixels-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pixels-dark.svg +776 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pixels-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pixels-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-pixels-light.svg +776 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-roadmap-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-roadmap-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-roadmap-dark.svg +95 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-roadmap-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-roadmap-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-roadmap-light.svg +95 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-time-dark.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-time-dark.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-time-dark.svg +1086 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-time-light.pdf +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-time-light.png +0 -0
- spohnbook-0.0.1/docs/conventions/figures/hwo-conventions-time-light.svg +1086 -0
- spohnbook-0.0.1/docs/conventions/figures/source/measurement.d2 +14 -0
- spohnbook-0.0.1/docs/conventions/figures/source/pipeline.d2 +11 -0
- spohnbook-0.0.1/docs/conventions/figures/source/roadmap.d2 +13 -0
- spohnbook-0.0.1/docs/conventions/figures-and-color.md +179 -0
- spohnbook-0.0.1/docs/conventions/figures.md +196 -0
- spohnbook-0.0.1/docs/conventions/geometry-time.md +221 -0
- spohnbook-0.0.1/docs/conventions/index.md +171 -0
- spohnbook-0.0.1/docs/conventions/inference-records.md +257 -0
- spohnbook-0.0.1/docs/conventions/optics-images.md +178 -0
- spohnbook-0.0.1/docs/conventions/radiometry-detectors.md +229 -0
- spohnbook-0.0.1/docs/evidence/index.md +57 -0
- spohnbook-0.0.1/docs/evidence/limitations.md +186 -0
- spohnbook-0.0.1/docs/evidence/reproducing.md +112 -0
- spohnbook-0.0.1/docs/examples/exposure-time-and-contrast.md +504 -0
- spohnbook-0.0.1/docs/examples/fit-and-forecast.md +377 -0
- spohnbook-0.0.1/docs/examples/index.md +24 -0
- spohnbook-0.0.1/docs/examples/orbit-astrometry.md +289 -0
- spohnbook-0.0.1/docs/examples/photon-to-electron-reference.md +190 -0
- spohnbook-0.0.1/docs/examples/psf-and-speckles.md +355 -0
- spohnbook-0.0.1/docs/examples/scene-to-detection.md +616 -0
- spohnbook-0.0.1/docs/figures/figure-manifest.json +14 -0
- spohnbook-0.0.1/docs/figures/library-graph-dark.png +0 -0
- spohnbook-0.0.1/docs/figures/library-graph-dark.svg +102 -0
- spohnbook-0.0.1/docs/figures/library-graph-light.png +0 -0
- spohnbook-0.0.1/docs/figures/library-graph-light.svg +102 -0
- spohnbook-0.0.1/docs/figures/release-flow-dark.png +0 -0
- spohnbook-0.0.1/docs/figures/release-flow-dark.svg +102 -0
- spohnbook-0.0.1/docs/figures/release-flow-light.png +0 -0
- spohnbook-0.0.1/docs/figures/release-flow-light.svg +102 -0
- spohnbook-0.0.1/docs/figures/source/release-flow.d2 +37 -0
- spohnbook-0.0.1/docs/handbook.py +566 -0
- spohnbook-0.0.1/docs/index.md +91 -0
- spohnbook-0.0.1/docs/library-conventions.md +236 -0
- spohnbook-0.0.1/docs/map.md +50 -0
- spohnbook-0.0.1/docs/profiles/decisions.md +135 -0
- spohnbook-0.0.1/docs/profiles/index.md +51 -0
- spohnbook-0.0.1/docs/references.md +51 -0
- spohnbook-0.0.1/docs/releases.md +129 -0
- spohnbook-0.0.1/docs/start-here.md +69 -0
- spohnbook-0.0.1/libraries.yaml +190 -0
- spohnbook-0.0.1/pyproject.toml +80 -0
- spohnbook-0.0.1/requirements-docs.txt +3836 -0
- spohnbook-0.0.1/src/spohnbook/__init__.py +9 -0
- spohnbook-0.0.1/src/spohnbook/_version.py +24 -0
- spohnbook-0.0.1/tests/conftest.py +11 -0
- spohnbook-0.0.1/tests/test_build_manifest.py +194 -0
- spohnbook-0.0.1/tests/test_handbook.py +601 -0
- spohnbook-0.0.1/tests/test_internal_refs_guard.py +31 -0
- spohnbook-0.0.1/tests/test_package.py +6 -0
- spohnbook-0.0.1/tests/test_radiometry_boundary.py +134 -0
- spohnbook-0.0.1/tests/test_release_bundle.py +82 -0
- spohnbook-0.0.1/tools/build_conventions_figures.py +562 -0
- spohnbook-0.0.1/tools/build_map_figures.py +158 -0
- spohnbook-0.0.1/tools/check_internal_refs.py +76 -0
- spohnbook-0.0.1/tools/make_release_bundle.py +141 -0
- spohnbook-0.0.1/tools/record_build.py +380 -0
- spohnbook-0.0.1/tools/reproduce_limitations.py +118 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on: push
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build:
|
|
7
|
+
name: Build distribution
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v6
|
|
12
|
+
- name: Set up Python
|
|
13
|
+
uses: actions/setup-python@v6
|
|
14
|
+
with:
|
|
15
|
+
python-version: "3.x"
|
|
16
|
+
- name: Install pypa/build
|
|
17
|
+
run: >-
|
|
18
|
+
python3 -m
|
|
19
|
+
pip install
|
|
20
|
+
build
|
|
21
|
+
--user
|
|
22
|
+
- name: Build a binary wheel and a source tarball
|
|
23
|
+
run: python3 -m build
|
|
24
|
+
- name: Store the distribution packages
|
|
25
|
+
uses: actions/upload-artifact@v7
|
|
26
|
+
with:
|
|
27
|
+
name: python-package-distributions
|
|
28
|
+
path: dist/
|
|
29
|
+
|
|
30
|
+
publish-to-pypi:
|
|
31
|
+
name: >-
|
|
32
|
+
Publish Python distribution to PyPI
|
|
33
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
34
|
+
needs:
|
|
35
|
+
- build
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
environment:
|
|
38
|
+
name: pypi
|
|
39
|
+
url: https://pypi.org/p/spohnbook
|
|
40
|
+
permissions:
|
|
41
|
+
id-token: write
|
|
42
|
+
|
|
43
|
+
steps:
|
|
44
|
+
- name: Download all the dists
|
|
45
|
+
uses: actions/download-artifact@v8
|
|
46
|
+
with:
|
|
47
|
+
name: python-package-distributions
|
|
48
|
+
path: dist/
|
|
49
|
+
- name: Publish distribution to PyPI
|
|
50
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
on:
|
|
2
|
+
push:
|
|
3
|
+
branches:
|
|
4
|
+
- main
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
pull-requests: write
|
|
10
|
+
|
|
11
|
+
name: release-please
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
release-please:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- uses: googleapis/release-please-action@v5
|
|
18
|
+
with:
|
|
19
|
+
# Personal access token stored as an action secret; the default
|
|
20
|
+
# GITHUB_TOKEN cannot be used because tags it pushes do not
|
|
21
|
+
# trigger the publish-to-pypi workflow.
|
|
22
|
+
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
|
23
|
+
release-type: simple
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
schedule:
|
|
9
|
+
# Weekly, so the compatibility job notices new dependency releases.
|
|
10
|
+
- cron: "0 6 * * 1"
|
|
11
|
+
workflow_dispatch:
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
locked:
|
|
15
|
+
name: Locked build (requirements-docs.txt)
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
defaults:
|
|
18
|
+
run:
|
|
19
|
+
shell: bash
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Install uv
|
|
26
|
+
uses: astral-sh/setup-uv@v7
|
|
27
|
+
|
|
28
|
+
- name: Install the locked environment
|
|
29
|
+
run: |
|
|
30
|
+
uv venv .venv --python 3.12
|
|
31
|
+
uv pip sync --python .venv/bin/python requirements-docs.txt
|
|
32
|
+
uv pip install --python .venv/bin/python --no-deps -e .
|
|
33
|
+
mkdir -p docs/_evidence
|
|
34
|
+
|
|
35
|
+
- name: Run tests and record the evidence ledger
|
|
36
|
+
run: >-
|
|
37
|
+
.venv/bin/python -m pytest tests -v --tb=short
|
|
38
|
+
--vv-evidence docs/_evidence/ledger.json 2>&1 | tee docs/_evidence/pytest.log
|
|
39
|
+
|
|
40
|
+
- name: Record the build manifest
|
|
41
|
+
if: always()
|
|
42
|
+
run: >-
|
|
43
|
+
.venv/bin/python tools/record_build.py --resolution locked
|
|
44
|
+
--ledger docs/_evidence/ledger.json --fetch-inputs
|
|
45
|
+
--output docs/_evidence/build-manifest.json
|
|
46
|
+
--command "pytest tests --vv-evidence; sphinx -W --keep-going -D nb_execution_mode=force"
|
|
47
|
+
|
|
48
|
+
- name: Build the documentation, executing every example
|
|
49
|
+
if: always()
|
|
50
|
+
run: >-
|
|
51
|
+
.venv/bin/python -m sphinx -W --keep-going -D nb_execution_mode=force
|
|
52
|
+
-b html docs docs/_build/html 2>&1 | tee docs/_evidence/sphinx.log
|
|
53
|
+
|
|
54
|
+
- name: Check that every published page and anchor still resolves
|
|
55
|
+
if: always()
|
|
56
|
+
run: >-
|
|
57
|
+
SPOHNBOOK_HTML_DIR=docs/_build/html
|
|
58
|
+
.venv/bin/python -m pytest tests/test_handbook.py -v -k rendered
|
|
59
|
+
|
|
60
|
+
- name: Upload the rendered site, logs, ledger, manifest and lock
|
|
61
|
+
if: always()
|
|
62
|
+
uses: actions/upload-artifact@v7
|
|
63
|
+
with:
|
|
64
|
+
name: locked-build
|
|
65
|
+
path: |
|
|
66
|
+
docs/_build/html
|
|
67
|
+
docs/_evidence
|
|
68
|
+
requirements-docs.txt
|
|
69
|
+
|
|
70
|
+
compatibility:
|
|
71
|
+
name: Compatibility build (latest PyPI releases)
|
|
72
|
+
runs-on: ubuntu-latest
|
|
73
|
+
defaults:
|
|
74
|
+
run:
|
|
75
|
+
shell: bash
|
|
76
|
+
steps:
|
|
77
|
+
- uses: actions/checkout@v6
|
|
78
|
+
with:
|
|
79
|
+
fetch-depth: 0
|
|
80
|
+
|
|
81
|
+
- name: Install uv
|
|
82
|
+
uses: astral-sh/setup-uv@v7
|
|
83
|
+
|
|
84
|
+
- name: Install the newest releases of every dependency
|
|
85
|
+
run: |
|
|
86
|
+
uv venv .venv --python 3.12
|
|
87
|
+
uv pip install --python .venv/bin/python -e ".[test,docs]"
|
|
88
|
+
mkdir -p docs/_evidence
|
|
89
|
+
|
|
90
|
+
- name: Run tests and record the evidence ledger
|
|
91
|
+
run: >-
|
|
92
|
+
.venv/bin/python -m pytest tests -v --tb=short
|
|
93
|
+
--vv-evidence docs/_evidence/ledger.json 2>&1 | tee docs/_evidence/pytest.log
|
|
94
|
+
|
|
95
|
+
- name: Record the build manifest, listing every difference from the lock
|
|
96
|
+
if: always()
|
|
97
|
+
run: >-
|
|
98
|
+
.venv/bin/python tools/record_build.py --resolution latest
|
|
99
|
+
--ledger docs/_evidence/ledger.json --fetch-inputs
|
|
100
|
+
--output docs/_evidence/build-manifest.json
|
|
101
|
+
--command "pytest tests --vv-evidence; sphinx -W --keep-going -D nb_execution_mode=force"
|
|
102
|
+
|
|
103
|
+
- name: Build the documentation, executing every example
|
|
104
|
+
if: always()
|
|
105
|
+
run: >-
|
|
106
|
+
.venv/bin/python -m sphinx -W --keep-going -D nb_execution_mode=force
|
|
107
|
+
-b html docs docs/_build/html 2>&1 | tee docs/_evidence/sphinx.log
|
|
108
|
+
|
|
109
|
+
- name: Upload the rendered site, logs, ledger and manifest
|
|
110
|
+
if: always()
|
|
111
|
+
uses: actions/upload-artifact@v7
|
|
112
|
+
with:
|
|
113
|
+
name: compatibility-build
|
|
114
|
+
path: |
|
|
115
|
+
docs/_build/html
|
|
116
|
+
docs/_evidence
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
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
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
# poetry.lock
|
|
109
|
+
# poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
# pdm.lock
|
|
116
|
+
# pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
# pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# Redis
|
|
135
|
+
*.rdb
|
|
136
|
+
*.aof
|
|
137
|
+
*.pid
|
|
138
|
+
|
|
139
|
+
# RabbitMQ
|
|
140
|
+
mnesia/
|
|
141
|
+
rabbitmq/
|
|
142
|
+
rabbitmq-data/
|
|
143
|
+
|
|
144
|
+
# ActiveMQ
|
|
145
|
+
activemq-data/
|
|
146
|
+
|
|
147
|
+
# SageMath parsed files
|
|
148
|
+
*.sage.py
|
|
149
|
+
|
|
150
|
+
# Environments
|
|
151
|
+
.env
|
|
152
|
+
.envrc
|
|
153
|
+
.venv
|
|
154
|
+
env/
|
|
155
|
+
venv/
|
|
156
|
+
ENV/
|
|
157
|
+
env.bak/
|
|
158
|
+
venv.bak/
|
|
159
|
+
|
|
160
|
+
# Spyder project settings
|
|
161
|
+
.spyderproject
|
|
162
|
+
.spyproject
|
|
163
|
+
|
|
164
|
+
# Rope project settings
|
|
165
|
+
.ropeproject
|
|
166
|
+
|
|
167
|
+
# mkdocs documentation
|
|
168
|
+
/site
|
|
169
|
+
|
|
170
|
+
# mypy
|
|
171
|
+
.mypy_cache/
|
|
172
|
+
.dmypy.json
|
|
173
|
+
dmypy.json
|
|
174
|
+
|
|
175
|
+
# Pyre type checker
|
|
176
|
+
.pyre/
|
|
177
|
+
|
|
178
|
+
# pytype static type analyzer
|
|
179
|
+
.pytype/
|
|
180
|
+
|
|
181
|
+
# Cython debug symbols
|
|
182
|
+
cython_debug/
|
|
183
|
+
|
|
184
|
+
# PyCharm
|
|
185
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
186
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
188
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
189
|
+
# .idea/
|
|
190
|
+
|
|
191
|
+
# Abstra
|
|
192
|
+
# Abstra is an AI-powered process automation framework.
|
|
193
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
194
|
+
# Learn more at https://abstra.io/docs
|
|
195
|
+
.abstra/
|
|
196
|
+
|
|
197
|
+
# Visual Studio Code
|
|
198
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
199
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
200
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
201
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
202
|
+
# .vscode/
|
|
203
|
+
# Temporary file for partial code execution
|
|
204
|
+
tempCodeRunnerFile.py
|
|
205
|
+
|
|
206
|
+
# Ruff stuff:
|
|
207
|
+
.ruff_cache/
|
|
208
|
+
|
|
209
|
+
# PyPI configuration file
|
|
210
|
+
.pypirc
|
|
211
|
+
|
|
212
|
+
# Marimo
|
|
213
|
+
marimo/_static/
|
|
214
|
+
marimo/_lsp/
|
|
215
|
+
__marimo__/
|
|
216
|
+
|
|
217
|
+
# Streamlit
|
|
218
|
+
.streamlit/secrets.toml
|
|
219
|
+
|
|
220
|
+
# hatch-vcs generated version file
|
|
221
|
+
*_version.py
|
|
222
|
+
|
|
223
|
+
# uv lockfile (not committed for this library; see comment above)
|
|
224
|
+
uv.lock
|
|
225
|
+
|
|
226
|
+
# Generated at documentation build time
|
|
227
|
+
docs/_generated/
|
|
228
|
+
docs/_evidence/
|
|
229
|
+
dist-bundle/
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: local
|
|
3
|
+
hooks:
|
|
4
|
+
- id: no-internal-refs
|
|
5
|
+
name: no internal research references
|
|
6
|
+
entry: python3 tools/check_internal_refs.py
|
|
7
|
+
language: system
|
|
8
|
+
types: [text]
|
|
9
|
+
exclude: ^(CHANGELOG\.md|tools/check_internal_refs\.py)$
|
|
10
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
11
|
+
rev: "v6.0.0"
|
|
12
|
+
hooks:
|
|
13
|
+
- id: trailing-whitespace
|
|
14
|
+
- id: name-tests-test
|
|
15
|
+
args: [--pytest-test-first]
|
|
16
|
+
- id: end-of-file-fixer
|
|
17
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
18
|
+
rev: v0.15.2
|
|
19
|
+
hooks:
|
|
20
|
+
- id: ruff-check
|
|
21
|
+
args: [--fix]
|
|
22
|
+
- id: ruff-format
|
|
23
|
+
- repo: https://github.com/compilerla/conventional-pre-commit
|
|
24
|
+
rev: v4.3.0
|
|
25
|
+
hooks:
|
|
26
|
+
- id: conventional-pre-commit
|
|
27
|
+
stages: [commit-msg]
|
|
28
|
+
args: []
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Required
|
|
2
|
+
version: 2
|
|
3
|
+
|
|
4
|
+
build:
|
|
5
|
+
os: ubuntu-22.04
|
|
6
|
+
tools:
|
|
7
|
+
python: "3.12"
|
|
8
|
+
jobs:
|
|
9
|
+
# Record the evidence the rendered case states are computed from. A failing
|
|
10
|
+
# test is recorded in the ledger and shown on the evidence page, so it does
|
|
11
|
+
# not stop the site from building.
|
|
12
|
+
pre_build:
|
|
13
|
+
- mkdir -p docs/_evidence
|
|
14
|
+
- python -m pytest tests --vv-evidence docs/_evidence/ledger.json || echo "tests failed; the ledger records it"
|
|
15
|
+
- python tools/record_build.py --resolution locked --ledger docs/_evidence/ledger.json --fetch-inputs --output docs/_evidence/build-manifest.json --command "readthedocs pre_build" || echo "the manifest is incomplete"
|
|
16
|
+
|
|
17
|
+
python:
|
|
18
|
+
install:
|
|
19
|
+
# Every edition builds with the dependency lock recorded at its tag.
|
|
20
|
+
- requirements: requirements-docs.txt
|
|
21
|
+
- method: pip
|
|
22
|
+
path: .
|
|
23
|
+
|
|
24
|
+
sphinx:
|
|
25
|
+
configuration: docs/conf.py
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.0.1 (2026-09-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **book:** add citation metadata, release policy and the bundle tool ([8c6f5a0](https://github.com/CoreySpohn/spohnbook/commit/8c6f5a06315f02c7364603b598fd18116e22a37f))
|
|
9
|
+
* **book:** add the photon-to-electron reference case ([06a4bc7](https://github.com/CoreySpohn/spohnbook/commit/06a4bc7f22808e318aca8f61b6cb06a549570a2f))
|
|
10
|
+
* **book:** add the scope, reading routes, contributing and citing pages ([98ce52e](https://github.com/CoreySpohn/spohnbook/commit/98ce52ecd83dd08e5358b889b8da110d83d3fb41))
|
|
11
|
+
* **book:** add the source catalog, profiles and computed evidence ([4f0ede7](https://github.com/CoreySpohn/spohnbook/commit/4f0ede702428ab61fedf6e4fb1c41ba964495a54))
|
|
12
|
+
* **book:** cite sources, move findings out and unify decision register ([0330fd1](https://github.com/CoreySpohn/spohnbook/commit/0330fd10b02f3a9dc9b329a57b8cd02bfb914136))
|
|
13
|
+
* **book:** make the book citable, grounded and reproducible ([7e9ba00](https://github.com/CoreySpohn/spohnbook/commit/7e9ba000dfd860c7358a66f913458a1fc06b6c9e))
|
|
14
|
+
* **book:** state each example's scope and evidence before its code ([9ea5f15](https://github.com/CoreySpohn/spohnbook/commit/9ea5f1513d85349d293806aa1ae2a7efd64b7efd))
|
|
15
|
+
* **docs:** publish the conventions handbook as its first public edition ([3810018](https://github.com/CoreySpohn/spohnbook/commit/38100186e278f972725793f793d2ea2a463ee3df))
|
|
16
|
+
* scaffold the spohnbook documentation umbrella with the library map and a first assembled example ([2fbde73](https://github.com/CoreySpohn/spohnbook/commit/2fbde735927ef03b74025c5a454cec088567c23e))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **book:** mark evidence stale across commits and record input bytes ([503bb16](https://github.com/CoreySpohn/spohnbook/commit/503bb16176fc58f23ab049aa070e0f4702b3e7e2))
|
|
22
|
+
* **book:** repair the profile link in the reference case scope table ([8749324](https://github.com/CoreySpohn/spohnbook/commit/8749324c657c8abf1240c2de068f789780006339))
|
|
23
|
+
* **docs:** use second-level headings in the generated map table ([89e593f](https://github.com/CoreySpohn/spohnbook/commit/89e593fb3420a4c4f9c0e9c8c4c94edb0a5d56e3))
|
|
24
|
+
* **map:** align dependency lists with the computed registry ([5891eef](https://github.com/CoreySpohn/spohnbook/commit/5891eeff755eb93856be64c7bc2229abb9731910))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Miscellaneous Chores
|
|
28
|
+
|
|
29
|
+
* release 0.0.1 ([96683fd](https://github.com/CoreySpohn/spohnbook/commit/96683fd5afc0840b63c1809e81202ebc15178d39))
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: >-
|
|
3
|
+
Cite the edition (version and tag) you used. A development build is not an
|
|
4
|
+
edition; cite its commit and state that it is a draft. No DOI has been minted.
|
|
5
|
+
title: "The Spohn Book"
|
|
6
|
+
abstract: >-
|
|
7
|
+
The map, shared conventions and assembled examples of a suite of JAX
|
|
8
|
+
libraries for exoplanet direct imaging. Draft editions: conventions marked
|
|
9
|
+
pending or proposed are not adopted.
|
|
10
|
+
type: software
|
|
11
|
+
authors:
|
|
12
|
+
- family-names: Spohn
|
|
13
|
+
given-names: Corey
|
|
14
|
+
license: MIT
|
|
15
|
+
repository-code: "https://github.com/CoreySpohn/spohnbook"
|
|
16
|
+
url: "https://spohnbook.readthedocs.io"
|
|
17
|
+
keywords:
|
|
18
|
+
- exoplanets
|
|
19
|
+
- direct imaging
|
|
20
|
+
- coronagraphy
|
|
21
|
+
- conventions
|
|
22
|
+
- Habitable Worlds Observatory
|
spohnbook-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.
|
spohnbook-0.0.1/PKG-INFO
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: spohnbook
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: The map, shared conventions and assembled examples of a suite of JAX libraries for exoplanet direct imaging
|
|
5
|
+
Project-URL: Repository, https://github.com/CoreySpohn/spohnbook
|
|
6
|
+
Project-URL: Documentation, https://spohnbook.readthedocs.io
|
|
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
|
+
Provides-Extra: dev
|
|
37
|
+
Requires-Dist: pre-commit; extra == 'dev'
|
|
38
|
+
Provides-Extra: docs
|
|
39
|
+
Requires-Dist: coronagraphoto; extra == 'docs'
|
|
40
|
+
Requires-Dist: coronalyze; extra == 'docs'
|
|
41
|
+
Requires-Dist: eyepiece; extra == 'docs'
|
|
42
|
+
Requires-Dist: hwostyle; extra == 'docs'
|
|
43
|
+
Requires-Dist: hwoutils; extra == 'docs'
|
|
44
|
+
Requires-Dist: jaxedith; extra == 'docs'
|
|
45
|
+
Requires-Dist: myst-nb; extra == 'docs'
|
|
46
|
+
Requires-Dist: optixstuff; extra == 'docs'
|
|
47
|
+
Requires-Dist: orbix; extra == 'docs'
|
|
48
|
+
Requires-Dist: photomancy; extra == 'docs'
|
|
49
|
+
Requires-Dist: physicaloptix; extra == 'docs'
|
|
50
|
+
Requires-Dist: pyyaml; extra == 'docs'
|
|
51
|
+
Requires-Dist: skyscapes; extra == 'docs'
|
|
52
|
+
Requires-Dist: sphinx-book-theme; extra == 'docs'
|
|
53
|
+
Requires-Dist: tiptilt; extra == 'docs'
|
|
54
|
+
Requires-Dist: yippy; extra == 'docs'
|
|
55
|
+
Provides-Extra: test
|
|
56
|
+
Requires-Dist: hwoutils; extra == 'test'
|
|
57
|
+
Requires-Dist: ineedvalidation; extra == 'test'
|
|
58
|
+
Requires-Dist: jax; extra == 'test'
|
|
59
|
+
Requires-Dist: numpy; extra == 'test'
|
|
60
|
+
Requires-Dist: optixstuff; extra == 'test'
|
|
61
|
+
Requires-Dist: pytest; extra == 'test'
|
|
62
|
+
Requires-Dist: pyyaml; extra == 'test'
|
|
63
|
+
Description-Content-Type: text/markdown
|
|
64
|
+
|
|
65
|
+
# The Spohn Book
|
|
66
|
+
|
|
67
|
+
`spohnbook`: the map of a suite of JAX libraries for exoplanet direct imaging, the
|
|
68
|
+
scientific conventions they share, and examples assembled across them.
|
|
69
|
+
|
|
70
|
+
The libraries cover orbits, astrophysical scenes, optics and coronagraphs,
|
|
71
|
+
exposure times, image simulation, post-processing and detection, Bayesian
|
|
72
|
+
inference, observation planning and observing campaigns. Each one is developed
|
|
73
|
+
and released on its own. This repository is where they are laid out together:
|
|
74
|
+
which library owns what, the units, signs, frames, time scales and measurement
|
|
75
|
+
conventions every boundary between them must satisfy, and worked examples that
|
|
76
|
+
run through several of them at once.
|
|
77
|
+
|
|
78
|
+
Documentation: https://spohnbook.readthedocs.io
|
|
79
|
+
|
|
80
|
+
## Status
|
|
81
|
+
|
|
82
|
+
Pre-alpha. The documentation site is the product; the package on PyPI carries
|
|
83
|
+
no code.
|
|
84
|
+
|
|
85
|
+
## License
|
|
86
|
+
|
|
87
|
+
MIT
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# The Spohn Book
|
|
2
|
+
|
|
3
|
+
`spohnbook`: the map of a suite of JAX libraries for exoplanet direct imaging, the
|
|
4
|
+
scientific conventions they share, and examples assembled across them.
|
|
5
|
+
|
|
6
|
+
The libraries cover orbits, astrophysical scenes, optics and coronagraphs,
|
|
7
|
+
exposure times, image simulation, post-processing and detection, Bayesian
|
|
8
|
+
inference, observation planning and observing campaigns. Each one is developed
|
|
9
|
+
and released on its own. This repository is where they are laid out together:
|
|
10
|
+
which library owns what, the units, signs, frames, time scales and measurement
|
|
11
|
+
conventions every boundary between them must satisfy, and worked examples that
|
|
12
|
+
run through several of them at once.
|
|
13
|
+
|
|
14
|
+
Documentation: https://spohnbook.readthedocs.io
|
|
15
|
+
|
|
16
|
+
## Status
|
|
17
|
+
|
|
18
|
+
Pre-alpha. The documentation site is the product; the package on PyPI carries
|
|
19
|
+
no code.
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
MIT
|