eye-patch 1.0.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.
- eye_patch-1.0.0/.copier-answers.yml +13 -0
- eye_patch-1.0.0/.git_archival.txt +3 -0
- eye_patch-1.0.0/.gitattributes +1 -0
- eye_patch-1.0.0/.github/CONTRIBUTING.md +41 -0
- eye_patch-1.0.0/.github/dependabot.yml +11 -0
- eye_patch-1.0.0/.github/release.yml +5 -0
- eye_patch-1.0.0/.github/workflows/cd.yml +56 -0
- eye_patch-1.0.0/.github/workflows/ci.yml +71 -0
- eye_patch-1.0.0/.gitignore +188 -0
- eye_patch-1.0.0/.pre-commit-config.yaml +94 -0
- eye_patch-1.0.0/.readthedocs.yaml +16 -0
- eye_patch-1.0.0/LICENSE +28 -0
- eye_patch-1.0.0/PKG-INFO +60 -0
- eye_patch-1.0.0/README.md +26 -0
- eye_patch-1.0.0/docs/conf.py +64 -0
- eye_patch-1.0.0/docs/index.md +17 -0
- eye_patch-1.0.0/eye_patch/__init__.py +11 -0
- eye_patch-1.0.0/eye_patch/_version.py +24 -0
- eye_patch-1.0.0/eye_patch/_version.pyi +2 -0
- eye_patch-1.0.0/eye_patch/masking.py +1174 -0
- eye_patch-1.0.0/eye_patch/naming.py +40 -0
- eye_patch-1.0.0/eye_patch/pixel_utils.py +101 -0
- eye_patch-1.0.0/eye_patch/py.typed +0 -0
- eye_patch-1.0.0/pyproject.toml +166 -0
- eye_patch-1.0.0/tests/test_masking.py +514 -0
- eye_patch-1.0.0/tests/test_package.py +9 -0
- eye_patch-1.0.0/uv.lock +2074 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
|
|
2
|
+
_commit: 2025.11.21-25-gad4434f
|
|
3
|
+
_src_path: gh:scientific-python/cookie
|
|
4
|
+
backend: hatch
|
|
5
|
+
docs: sphinx
|
|
6
|
+
email: alec.thomson@skao.int
|
|
7
|
+
full_name: Alec Thomson
|
|
8
|
+
license: BSD
|
|
9
|
+
org: flint-crew
|
|
10
|
+
project_name: eye-patch
|
|
11
|
+
project_short_description: The pirate mask.
|
|
12
|
+
url: https://github.com/flint-crew/eye-patch
|
|
13
|
+
vcs: true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.git_archival.txt export-subst
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
See the [Scientific Python Developer Guide][spc-dev-intro] for a detailed
|
|
2
|
+
description of best practices for developing scientific packages.
|
|
3
|
+
|
|
4
|
+
[spc-dev-intro]: https://learn.scientific-python.org/development/
|
|
5
|
+
|
|
6
|
+
# Setting up a development environment manually
|
|
7
|
+
|
|
8
|
+
You can set up a development environment by running:
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
uv sync
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
# Pre-commit
|
|
15
|
+
|
|
16
|
+
You should prepare pre-commit or prek, which will help you by checking that
|
|
17
|
+
commits pass required checks:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
uv tool install pre-commit # or brew install pre-commit on macOS
|
|
21
|
+
pre-commit install # Will install a pre-commit hook into the git repo
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
You can also/alternatively run `pre-commit run` (changes only) or
|
|
25
|
+
`pre-commit run --all-files` to check even without installing the hook.
|
|
26
|
+
|
|
27
|
+
# Testing
|
|
28
|
+
|
|
29
|
+
Use pytest to run the unit checks:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
uv run pytest
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
# Coverage
|
|
36
|
+
|
|
37
|
+
Use pytest-cov to generate coverage reports:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
uv run pytest --cov=eye-patch
|
|
41
|
+
```
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
name: CD
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
release:
|
|
10
|
+
types:
|
|
11
|
+
- published
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
env:
|
|
18
|
+
# Many color libraries just need this to be set to any value, but at least
|
|
19
|
+
# one distinguishes color depth, where "3" -> "256-bit color".
|
|
20
|
+
FORCE_COLOR: 3
|
|
21
|
+
|
|
22
|
+
jobs:
|
|
23
|
+
dist:
|
|
24
|
+
name: Distribution build
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v6
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0
|
|
31
|
+
|
|
32
|
+
- uses: hynek/build-and-inspect-python-package@v2
|
|
33
|
+
|
|
34
|
+
publish:
|
|
35
|
+
needs: [dist]
|
|
36
|
+
name: Publish to PyPI
|
|
37
|
+
environment: pypi
|
|
38
|
+
permissions:
|
|
39
|
+
id-token: write
|
|
40
|
+
attestations: write
|
|
41
|
+
contents: read
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
if: github.event_name == 'release' && github.event.action == 'published'
|
|
44
|
+
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/download-artifact@v8
|
|
47
|
+
with:
|
|
48
|
+
name: Packages
|
|
49
|
+
path: dist
|
|
50
|
+
|
|
51
|
+
- name: Generate artifact attestation for sdist and wheel
|
|
52
|
+
uses: actions/attest-build-provenance@v4
|
|
53
|
+
with:
|
|
54
|
+
subject-path: "dist/*"
|
|
55
|
+
|
|
56
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
6
|
+
push:
|
|
7
|
+
branches:
|
|
8
|
+
- main
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
env:
|
|
15
|
+
# Many color libraries just need this variable to be set to any value.
|
|
16
|
+
# Set it to 3 to support 8-bit color graphics (256 colors per channel)
|
|
17
|
+
# for libraries that care about the value set.
|
|
18
|
+
FORCE_COLOR: 3
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
pre-commit:
|
|
22
|
+
name: Format
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v6
|
|
26
|
+
with:
|
|
27
|
+
fetch-depth: 0
|
|
28
|
+
- uses: actions/setup-python@v6
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.x"
|
|
31
|
+
|
|
32
|
+
- uses: astral-sh/setup-uv@v7
|
|
33
|
+
|
|
34
|
+
- uses: pre-commit/action@v3.0.1
|
|
35
|
+
with:
|
|
36
|
+
extra_args: --hook-stage manual --all-files
|
|
37
|
+
|
|
38
|
+
checks:
|
|
39
|
+
name: Check Python ${{ matrix.python-version }} on ${{ matrix.runs-on }}
|
|
40
|
+
runs-on: ${{ matrix.runs-on }}
|
|
41
|
+
needs: [pre-commit]
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
python-version: ["3.10", "3.12", "3.13", "3.14"]
|
|
46
|
+
runs-on: [ubuntu-latest]
|
|
47
|
+
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@v6
|
|
50
|
+
with:
|
|
51
|
+
fetch-depth: 0
|
|
52
|
+
|
|
53
|
+
- uses: actions/setup-python@v6
|
|
54
|
+
with:
|
|
55
|
+
python-version: ${{ matrix.python-version }}
|
|
56
|
+
allow-prereleases: true
|
|
57
|
+
|
|
58
|
+
- uses: astral-sh/setup-uv@v7
|
|
59
|
+
|
|
60
|
+
- name: Install package
|
|
61
|
+
run: uv sync
|
|
62
|
+
|
|
63
|
+
- name: Test package
|
|
64
|
+
run: >-
|
|
65
|
+
uv run pytest -ra --cov --cov-report=xml --cov-report=term
|
|
66
|
+
--durations=20
|
|
67
|
+
|
|
68
|
+
- name: Upload coverage report
|
|
69
|
+
uses: codecov/codecov-action@v6
|
|
70
|
+
with:
|
|
71
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
@@ -0,0 +1,188 @@
|
|
|
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
|
+
# 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
|
+
|
|
110
|
+
# pdm
|
|
111
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
112
|
+
#pdm.lock
|
|
113
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
114
|
+
# in version control.
|
|
115
|
+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
|
|
116
|
+
.pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
121
|
+
__pypackages__/
|
|
122
|
+
|
|
123
|
+
# Celery stuff
|
|
124
|
+
celerybeat-schedule
|
|
125
|
+
celerybeat.pid
|
|
126
|
+
|
|
127
|
+
# SageMath parsed files
|
|
128
|
+
*.sage.py
|
|
129
|
+
|
|
130
|
+
# Environments
|
|
131
|
+
.env
|
|
132
|
+
.venv
|
|
133
|
+
env/
|
|
134
|
+
venv/
|
|
135
|
+
ENV/
|
|
136
|
+
env.bak/
|
|
137
|
+
venv.bak/
|
|
138
|
+
|
|
139
|
+
# Spyder project settings
|
|
140
|
+
.spyderproject
|
|
141
|
+
.spyproject
|
|
142
|
+
|
|
143
|
+
# Rope project settings
|
|
144
|
+
.ropeproject
|
|
145
|
+
|
|
146
|
+
# mkdocs documentation
|
|
147
|
+
/site
|
|
148
|
+
|
|
149
|
+
# mypy
|
|
150
|
+
.mypy_cache/
|
|
151
|
+
.dmypy.json
|
|
152
|
+
dmypy.json
|
|
153
|
+
|
|
154
|
+
# Pyre type checker
|
|
155
|
+
.pyre/
|
|
156
|
+
|
|
157
|
+
# pytype static type analyzer
|
|
158
|
+
.pytype/
|
|
159
|
+
|
|
160
|
+
# Cython debug symbols
|
|
161
|
+
cython_debug/
|
|
162
|
+
|
|
163
|
+
# PyCharm
|
|
164
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
165
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
166
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
167
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
168
|
+
#.idea/
|
|
169
|
+
|
|
170
|
+
# setuptools_scm
|
|
171
|
+
eye_patch/_version.py
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
# ruff
|
|
175
|
+
.ruff_cache/
|
|
176
|
+
|
|
177
|
+
# OS specific stuff
|
|
178
|
+
.DS_Store
|
|
179
|
+
.DS_Store?
|
|
180
|
+
._*
|
|
181
|
+
.Spotlight-V100
|
|
182
|
+
.Trashes
|
|
183
|
+
ehthumbs.db
|
|
184
|
+
Thumbs.db
|
|
185
|
+
|
|
186
|
+
# Common editor files
|
|
187
|
+
*~
|
|
188
|
+
*.swp
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
ci:
|
|
2
|
+
autoupdate_commit_msg: "chore(deps): update pre-commit hooks"
|
|
3
|
+
autofix_commit_msg: "style: pre-commit fixes"
|
|
4
|
+
autoupdate_schedule: "monthly"
|
|
5
|
+
|
|
6
|
+
exclude: ^.cruft.json|.copier-answers.yml$
|
|
7
|
+
|
|
8
|
+
repos:
|
|
9
|
+
- repo: https://github.com/adamchainz/blacken-docs
|
|
10
|
+
rev: "1.20.0"
|
|
11
|
+
hooks:
|
|
12
|
+
- id: blacken-docs
|
|
13
|
+
additional_dependencies: [black==25.*]
|
|
14
|
+
|
|
15
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
16
|
+
rev: "v6.0.0"
|
|
17
|
+
hooks:
|
|
18
|
+
- id: check-added-large-files
|
|
19
|
+
- id: check-case-conflict
|
|
20
|
+
- id: check-merge-conflict
|
|
21
|
+
- id: check-symlinks
|
|
22
|
+
- id: check-yaml
|
|
23
|
+
- id: debug-statements
|
|
24
|
+
- id: end-of-file-fixer
|
|
25
|
+
- id: mixed-line-ending
|
|
26
|
+
- id: name-tests-test
|
|
27
|
+
args: ["--pytest-test-first"]
|
|
28
|
+
- id: requirements-txt-fixer
|
|
29
|
+
- id: trailing-whitespace
|
|
30
|
+
|
|
31
|
+
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
32
|
+
rev: "v1.10.0"
|
|
33
|
+
hooks:
|
|
34
|
+
- id: rst-backticks
|
|
35
|
+
- id: rst-directive-colons
|
|
36
|
+
- id: rst-inline-touching-normal
|
|
37
|
+
|
|
38
|
+
- repo: https://github.com/rbubley/mirrors-prettier
|
|
39
|
+
rev: "v3.8.3"
|
|
40
|
+
hooks:
|
|
41
|
+
- id: prettier
|
|
42
|
+
types_or: [yaml, markdown, html, css, scss, javascript, json]
|
|
43
|
+
args: [--prose-wrap=always]
|
|
44
|
+
|
|
45
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
46
|
+
rev: "v0.15.12"
|
|
47
|
+
hooks:
|
|
48
|
+
- id: ruff-check
|
|
49
|
+
args: ["--fix", "--show-fixes"]
|
|
50
|
+
- id: ruff-format
|
|
51
|
+
|
|
52
|
+
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
53
|
+
rev: "v2.0.0"
|
|
54
|
+
hooks:
|
|
55
|
+
- id: mypy
|
|
56
|
+
files: eye_patch|tests
|
|
57
|
+
args: ["--ignore-missing-imports"]
|
|
58
|
+
additional_dependencies:
|
|
59
|
+
- numpy
|
|
60
|
+
- capn-crunch
|
|
61
|
+
- pytest-stub
|
|
62
|
+
|
|
63
|
+
- repo: https://github.com/codespell-project/codespell
|
|
64
|
+
rev: "v2.4.2"
|
|
65
|
+
hooks:
|
|
66
|
+
- id: codespell
|
|
67
|
+
additional_dependencies:
|
|
68
|
+
- tomli; python_version<'3.11'
|
|
69
|
+
|
|
70
|
+
- repo: https://github.com/shellcheck-py/shellcheck-py
|
|
71
|
+
rev: "v0.11.0.1"
|
|
72
|
+
hooks:
|
|
73
|
+
- id: shellcheck
|
|
74
|
+
|
|
75
|
+
- repo: local
|
|
76
|
+
hooks:
|
|
77
|
+
- id: disallow-caps
|
|
78
|
+
name: Disallow improper capitalization
|
|
79
|
+
language: pygrep
|
|
80
|
+
entry: PyBind|Numpy|Cmake|CCache|Github|PyTest
|
|
81
|
+
exclude: .pre-commit-config.yaml
|
|
82
|
+
|
|
83
|
+
- repo: https://github.com/abravalheri/validate-pyproject
|
|
84
|
+
rev: "v0.25"
|
|
85
|
+
hooks:
|
|
86
|
+
- id: validate-pyproject
|
|
87
|
+
additional_dependencies: ["validate-pyproject-schema-store[all]"]
|
|
88
|
+
|
|
89
|
+
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
90
|
+
rev: "0.37.2"
|
|
91
|
+
hooks:
|
|
92
|
+
- id: check-dependabot
|
|
93
|
+
- id: check-github-workflows
|
|
94
|
+
- id: check-readthedocs
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Read the Docs configuration file
|
|
2
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
+
|
|
4
|
+
version: 2
|
|
5
|
+
|
|
6
|
+
build:
|
|
7
|
+
os: ubuntu-24.04
|
|
8
|
+
tools:
|
|
9
|
+
python: "3.13"
|
|
10
|
+
commands:
|
|
11
|
+
- asdf plugin add uv
|
|
12
|
+
- asdf install uv latest
|
|
13
|
+
- asdf global uv latest
|
|
14
|
+
- uv sync --group docs
|
|
15
|
+
- uv run python -m sphinx -T -b html -d docs/_build/doctrees -D language=en
|
|
16
|
+
docs $READTHEDOCS_OUTPUT/html
|
eye_patch-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026, flint-crew
|
|
4
|
+
|
|
5
|
+
Redistribution and use in source and binary forms, with or without
|
|
6
|
+
modification, are permitted provided that the following conditions are met:
|
|
7
|
+
|
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
+
list of conditions and the following disclaimer.
|
|
10
|
+
|
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
+
this list of conditions and the following disclaimer in the documentation
|
|
13
|
+
and/or other materials provided with the distribution.
|
|
14
|
+
|
|
15
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
16
|
+
contributors may be used to endorse or promote products derived from
|
|
17
|
+
this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
22
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
23
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
24
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
25
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
26
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
27
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
eye_patch-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eye-patch
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: The pirate mask.
|
|
5
|
+
Project-URL: Homepage, https://github.com/flint-crew/eye-patch
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/flint-crew/eye-patch/issues
|
|
7
|
+
Project-URL: Discussions, https://github.com/flint-crew/eye-patch/discussions
|
|
8
|
+
Project-URL: Changelog, https://github.com/flint-crew/eye-patch/releases
|
|
9
|
+
Author-email: Alec Thomson <alec.thomson@skao.int>, Tim Galvin <tim.galvin@csiro.au>
|
|
10
|
+
License-Expression: BSD-3-Clause
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Classifier: Development Status :: 1 - Planning
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: Science/Research
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
24
|
+
Classifier: Topic :: Scientific/Engineering
|
|
25
|
+
Classifier: Typing :: Typed
|
|
26
|
+
Requires-Python: >=3.11
|
|
27
|
+
Requires-Dist: astropy>=7.2.0
|
|
28
|
+
Requires-Dist: capn-crunch>=1.1.0
|
|
29
|
+
Requires-Dist: numpy>=2.4.3
|
|
30
|
+
Requires-Dist: radio-beam>=0.3.9
|
|
31
|
+
Requires-Dist: reproject>=0.19.0
|
|
32
|
+
Requires-Dist: scipy
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+
# Eye Patch
|
|
36
|
+
|
|
37
|
+
The pirate mask!
|
|
38
|
+
|
|
39
|
+
<img width="256" height="256" alt="image" src="https://github.com/user-attachments/assets/2a8e442c-036b-4d78-8370-180c02588c95" />
|
|
40
|
+
|
|
41
|
+
[![Actions Status][actions-badge]][actions-link]
|
|
42
|
+
[![Documentation Status][rtd-badge]][rtd-link]
|
|
43
|
+
[![PyPI version][pypi-version]][pypi-link]
|
|
44
|
+
[![PyPI platforms][pypi-platforms]][pypi-link]
|
|
45
|
+
[![Coverage][coverage-badge]][coverage-link]
|
|
46
|
+
|
|
47
|
+
<!-- SPHINX-START -->
|
|
48
|
+
|
|
49
|
+
<!-- prettier-ignore-start -->
|
|
50
|
+
[actions-badge]: https://github.com/flint-crew/eye-patch/workflows/CI/badge.svg
|
|
51
|
+
[actions-link]: https://github.com/flint-crew/eye-patch/actions
|
|
52
|
+
[pypi-link]: https://pypi.org/project/eye-patch/
|
|
53
|
+
[pypi-platforms]: https://img.shields.io/pypi/pyversions/eye-patch
|
|
54
|
+
[pypi-version]: https://img.shields.io/pypi/v/eye-patch
|
|
55
|
+
[rtd-badge]: https://readthedocs.org/projects/eye-patch/badge/?version=latest
|
|
56
|
+
[rtd-link]: https://eye-patch.readthedocs.io/en/latest/?badge=latest
|
|
57
|
+
[coverage-badge]: https://codecov.io/github/flint-crew/eye-patch/branch/main/graph/badge.svg
|
|
58
|
+
[coverage-link]: https://codecov.io/github/flint-crew/eye-patch
|
|
59
|
+
|
|
60
|
+
<!-- prettier-ignore-end -->
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Eye Patch
|
|
2
|
+
|
|
3
|
+
The pirate mask!
|
|
4
|
+
|
|
5
|
+
<img width="256" height="256" alt="image" src="https://github.com/user-attachments/assets/2a8e442c-036b-4d78-8370-180c02588c95" />
|
|
6
|
+
|
|
7
|
+
[![Actions Status][actions-badge]][actions-link]
|
|
8
|
+
[![Documentation Status][rtd-badge]][rtd-link]
|
|
9
|
+
[![PyPI version][pypi-version]][pypi-link]
|
|
10
|
+
[![PyPI platforms][pypi-platforms]][pypi-link]
|
|
11
|
+
[![Coverage][coverage-badge]][coverage-link]
|
|
12
|
+
|
|
13
|
+
<!-- SPHINX-START -->
|
|
14
|
+
|
|
15
|
+
<!-- prettier-ignore-start -->
|
|
16
|
+
[actions-badge]: https://github.com/flint-crew/eye-patch/workflows/CI/badge.svg
|
|
17
|
+
[actions-link]: https://github.com/flint-crew/eye-patch/actions
|
|
18
|
+
[pypi-link]: https://pypi.org/project/eye-patch/
|
|
19
|
+
[pypi-platforms]: https://img.shields.io/pypi/pyversions/eye-patch
|
|
20
|
+
[pypi-version]: https://img.shields.io/pypi/v/eye-patch
|
|
21
|
+
[rtd-badge]: https://readthedocs.org/projects/eye-patch/badge/?version=latest
|
|
22
|
+
[rtd-link]: https://eye-patch.readthedocs.io/en/latest/?badge=latest
|
|
23
|
+
[coverage-badge]: https://codecov.io/github/flint-crew/eye-patch/branch/main/graph/badge.svg
|
|
24
|
+
[coverage-link]: https://codecov.io/github/flint-crew/eye-patch
|
|
25
|
+
|
|
26
|
+
<!-- prettier-ignore-end -->
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import importlib.metadata
|
|
4
|
+
from typing import Any
|
|
5
|
+
|
|
6
|
+
project = "eye-patch"
|
|
7
|
+
copyright = "2026, Alec Thomson"
|
|
8
|
+
author = "Alec Thomson"
|
|
9
|
+
version = release = importlib.metadata.version("eye_patch")
|
|
10
|
+
|
|
11
|
+
extensions = [
|
|
12
|
+
"myst_parser",
|
|
13
|
+
"sphinx.ext.autodoc",
|
|
14
|
+
"sphinx.ext.intersphinx",
|
|
15
|
+
"sphinx.ext.mathjax",
|
|
16
|
+
"sphinx.ext.napoleon",
|
|
17
|
+
"sphinx_autodoc_typehints",
|
|
18
|
+
"sphinx_copybutton",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
source_suffix = [".rst", ".md"]
|
|
22
|
+
exclude_patterns = [
|
|
23
|
+
"_build",
|
|
24
|
+
"**.ipynb_checkpoints",
|
|
25
|
+
"Thumbs.db",
|
|
26
|
+
".DS_Store",
|
|
27
|
+
".env",
|
|
28
|
+
".venv",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
html_theme = "furo"
|
|
32
|
+
|
|
33
|
+
html_theme_options: dict[str, Any] = {
|
|
34
|
+
"footer_icons": [
|
|
35
|
+
{
|
|
36
|
+
"name": "GitHub",
|
|
37
|
+
"url": "https://github.com/flint-crew/eye-patch",
|
|
38
|
+
"html": """
|
|
39
|
+
<svg stroke="currentColor" fill="currentColor" stroke-width="0" viewBox="0 0 16 16">
|
|
40
|
+
<path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path>
|
|
41
|
+
</svg>
|
|
42
|
+
""",
|
|
43
|
+
"class": "",
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
"source_repository": "https://github.com/flint-crew/eye-patch",
|
|
47
|
+
"source_branch": "main",
|
|
48
|
+
"source_directory": "docs/",
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
myst_enable_extensions = [
|
|
52
|
+
"colon_fence",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
intersphinx_mapping = {
|
|
56
|
+
"python": ("https://docs.python.org/3", None),
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
nitpick_ignore = [
|
|
60
|
+
("py:class", "_io.StringIO"),
|
|
61
|
+
("py:class", "_io.BytesIO"),
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
always_document_param_types = True
|