quicklook-package 1.2__tar.gz → 1.4__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.
- quicklook_package-1.4/.github/workflows/build-and-test.yml +73 -0
- quicklook_package-1.4/.github/workflows/release.yml +37 -0
- quicklook_package-1.4/.gitignore +160 -0
- quicklook_package-1.4/.pre-commit-config.yaml +16 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/LICENSE +0 -0
- quicklook_package-1.4/MANIFEST.in +1 -0
- {quicklook_package-1.2/quicklook_package.egg-info → quicklook_package-1.4}/PKG-INFO +17 -7
- {quicklook_package-1.2 → quicklook_package-1.4}/README.md +0 -0
- quicklook_package-1.4/README_DEV.md +59 -0
- quicklook_package-1.4/notebook/examples.ipynb +1552 -0
- quicklook_package-1.4/pyproject.toml +92 -0
- quicklook_package-1.4/pytest.ini +21 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook/__init__.py +0 -0
- quicklook_package-1.4/quicklook/compat.py +42 -0
- quicklook_package-1.4/quicklook/data/TOIs.csv +7242 -0
- quicklook_package-1.4/quicklook/data/simbad_obj_types.csv +186 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook/gls.py +16 -49
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook/measure.py +4 -13
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook/plot.py +35 -77
- quicklook_package-1.4/quicklook/science.mplstyle +66 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook/tql.py +111 -142
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook/utils.py +20 -36
- {quicklook_package-1.2 → quicklook_package-1.4/quicklook_package.egg-info}/PKG-INFO +17 -7
- quicklook_package-1.4/quicklook_package.egg-info/SOURCES.txt +35 -0
- quicklook_package-1.4/quicklook_package.egg-info/requires.txt +25 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/scripts/ql +9 -15
- quicklook_package-1.4/tests/TOI5071_s46_pdcsap_sc.png +0 -0
- quicklook_package-1.4/tests/TOI5071_s46_pdcsap_sc_tls.h5 +0 -0
- quicklook_package-1.4/tests/conftest.py +54 -0
- quicklook_package-1.4/tests/test_import.py +56 -0
- quicklook_package-1.4/tests/test_notebooks.py +99 -0
- quicklook_package-1.4/tests/test_tql.py +607 -0
- quicklook_package-1.4/tox.ini +47 -0
- quicklook_package-1.2/pyproject.toml +0 -49
- quicklook_package-1.2/quicklook_package.egg-info/SOURCES.txt +0 -18
- quicklook_package-1.2/quicklook_package.egg-info/requires.txt +0 -11
- quicklook_package-1.2/setup.py +0 -22
- quicklook_package-1.2/tests/test_tql.py +0 -39
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook_package.egg-info/dependency_links.txt +0 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/quicklook_package.egg-info/top_level.txt +0 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/scripts/read_tls +0 -0
- {quicklook_package-1.2 → quicklook_package-1.4}/setup.cfg +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ${{ matrix.os }}
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
os: [ubuntu-latest, macos-13]
|
|
15
|
+
#python-version: ["3.8", "3.9", "3.10", "3.11"]
|
|
16
|
+
#tox-env: ["py38", "py39", "py310", "py311"] # without dot
|
|
17
|
+
python-version: ["3.10"]
|
|
18
|
+
tox-env: ["py10"] # update also `envlist` in tox.ini
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v3
|
|
22
|
+
with:
|
|
23
|
+
fetch-depth: 0
|
|
24
|
+
|
|
25
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
26
|
+
uses: actions/setup-python@v4
|
|
27
|
+
with:
|
|
28
|
+
python-version: ${{ matrix.python-version }}
|
|
29
|
+
|
|
30
|
+
- name: Cache pip packages
|
|
31
|
+
uses: actions/cache@v3
|
|
32
|
+
with:
|
|
33
|
+
path: ~/.cache/pip
|
|
34
|
+
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
|
|
35
|
+
restore-keys: |
|
|
36
|
+
${{ runner.os }}-pip-
|
|
37
|
+
|
|
38
|
+
- name: Cache tox virtualenvs
|
|
39
|
+
uses: actions/cache@v3
|
|
40
|
+
with:
|
|
41
|
+
path: .tox
|
|
42
|
+
key: ${{ runner.os }}-tox-${{ hashFiles('pyproject.toml') }}
|
|
43
|
+
restore-keys: |
|
|
44
|
+
${{ runner.os }}-tox-
|
|
45
|
+
|
|
46
|
+
- name: Cache Lightkurve data
|
|
47
|
+
uses: actions/cache@v3
|
|
48
|
+
with:
|
|
49
|
+
path: ~/.lightkurve/cache/mastDownload
|
|
50
|
+
key: ${{ runner.os }}-lightkurve-${{ hashFiles('pyproject.toml') }}
|
|
51
|
+
restore-keys: |
|
|
52
|
+
${{ runner.os }}-lightkurve-
|
|
53
|
+
|
|
54
|
+
- name: Remove corrupted FITS (if any)
|
|
55
|
+
run: |
|
|
56
|
+
find ~/.lightkurve/cache/mastDownload -type f -name "*.fits" -size -1M -delete || true
|
|
57
|
+
|
|
58
|
+
- name: Install dependencies
|
|
59
|
+
run: |
|
|
60
|
+
python -m pip install --upgrade pip
|
|
61
|
+
pip install -e ".[dev,notebooks]"
|
|
62
|
+
|
|
63
|
+
- name: Run regular tests
|
|
64
|
+
run: tox -e ${{ matrix.tox-env }}
|
|
65
|
+
|
|
66
|
+
#- name: Run notebook tests
|
|
67
|
+
# run: tox -e notebook
|
|
68
|
+
#- name: Run linting
|
|
69
|
+
# run: tox -e lint
|
|
70
|
+
#- name: Check code formatting
|
|
71
|
+
# run: tox -e format
|
|
72
|
+
#- name: Run type checks
|
|
73
|
+
# run: tox -e type
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch: #optional manual run
|
|
5
|
+
release:
|
|
6
|
+
types: [published]
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v3
|
|
13
|
+
with:
|
|
14
|
+
fetch-depth: 0
|
|
15
|
+
|
|
16
|
+
- name: Set up Python
|
|
17
|
+
uses: actions/setup-python@v4
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.10"
|
|
20
|
+
|
|
21
|
+
- name: Install build tools
|
|
22
|
+
run: pip install --upgrade build twine
|
|
23
|
+
|
|
24
|
+
- name: Clean old builds
|
|
25
|
+
run: rm -rf dist/*
|
|
26
|
+
|
|
27
|
+
- name: Build package
|
|
28
|
+
run: python -m build --sdist --wheel
|
|
29
|
+
|
|
30
|
+
- name: Verify distributions
|
|
31
|
+
run: twine check dist/*
|
|
32
|
+
|
|
33
|
+
- name: Publish to PyPI
|
|
34
|
+
run: twine upload dist/*
|
|
35
|
+
env:
|
|
36
|
+
TWINE_USERNAME: "__token__"
|
|
37
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,160 @@
|
|
|
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/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
repos:
|
|
2
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
+
rev: v6.0.0
|
|
4
|
+
hooks:
|
|
5
|
+
- id: check-yaml
|
|
6
|
+
- id: end-of-file-fixer
|
|
7
|
+
- id: trailing-whitespace
|
|
8
|
+
- repo: https://github.com/psf/black
|
|
9
|
+
rev: 25.9.0
|
|
10
|
+
hooks:
|
|
11
|
+
- id: black
|
|
12
|
+
language_version: python3.10
|
|
13
|
+
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
14
|
+
rev: v0.13.1
|
|
15
|
+
hooks:
|
|
16
|
+
- id: ruff
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include quicklook/data/*.csv
|
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: quicklook-package
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Quicklook lightcurve plot generator
|
|
5
|
-
Home-page: https://github.com/jpdeleon/quicklook
|
|
3
|
+
Version: 1.4
|
|
6
4
|
Author-email: jpdeleon <jpdeleon.bsap@gmail.com>
|
|
7
5
|
Project-URL: Homepage, https://github.com/jpdeleon/quicklook
|
|
8
6
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
10
7
|
Classifier: Operating System :: POSIX :: Linux
|
|
11
8
|
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
12
9
|
Requires-Python: >=3.8
|
|
13
10
|
Description-Content-Type: text/markdown
|
|
14
11
|
License-File: LICENSE
|
|
15
|
-
Requires-Dist: pre-commit==3.4.0
|
|
16
12
|
Requires-Dist: matplotlib
|
|
17
13
|
Requires-Dist: lightkurve==2.5
|
|
18
14
|
Requires-Dist: numpy==1.23
|
|
19
15
|
Requires-Dist: transitleastsquares==1.32
|
|
20
16
|
Requires-Dist: wotan==1.10
|
|
21
|
-
Requires-Dist: aesthetic==0.6
|
|
22
17
|
Requires-Dist: flammkuchen==1.0.3
|
|
23
18
|
Requires-Dist: reproject==0.12.0
|
|
24
19
|
Requires-Dist: astroplan==0.9
|
|
25
20
|
Requires-Dist: loguru
|
|
21
|
+
Requires-Dist: importlib_resources>=5.0.0
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest; extra == "dev"
|
|
24
|
+
Requires-Dist: pytest-benchmark; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest-xdist; extra == "dev"
|
|
26
|
+
Requires-Dist: black; extra == "dev"
|
|
27
|
+
Requires-Dist: mypy; extra == "dev"
|
|
28
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
29
|
+
Requires-Dist: tox; extra == "dev"
|
|
30
|
+
Requires-Dist: ruff; extra == "dev"
|
|
31
|
+
Provides-Extra: notebooks
|
|
32
|
+
Requires-Dist: ipykernel; extra == "notebooks"
|
|
33
|
+
Requires-Dist: jupyter; extra == "notebooks"
|
|
34
|
+
Requires-Dist: nbconvert; extra == "notebooks"
|
|
35
|
+
Dynamic: license-file
|
|
26
36
|
|
|
27
37
|
# QuickLook
|
|
28
38
|
`quicklook` is a Python program that runs a simple pipeline to search for transit signal in TESS (and Kepler soon) light curves. This program can be run in a jupyter notebook or from the terminal using the `ql` script.
|
|
File without changes
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
## Development & Testing
|
|
2
|
+
|
|
3
|
+
- **Install dev tools**:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
pip install -e ".[dev,notebooks]"
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
- **Initialize pre-commit**:
|
|
10
|
+
```bash
|
|
11
|
+
pre-commit install
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
- **Run tests**:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
tox
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- **Run only notebooks tests**:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pytest -v -m notebook
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
- **Run linting, typing, and formatting**:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
tox -e lint
|
|
30
|
+
tox -e type
|
|
31
|
+
tox -e black
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
- **Benchmark performance** (locally, not in CI):
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pytest --benchmark-only
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
import os
|
|
43
|
+
import pytest
|
|
44
|
+
import pytest_benchmark
|
|
45
|
+
|
|
46
|
+
@pytest.mark.skipif(os.getenv("CI") == "true", reason="Skip performance tests in CI")
|
|
47
|
+
@pytest.mark.benchmark
|
|
48
|
+
def test_tql_runtime(benchmark, planet_inputs):
|
|
49
|
+
def run_ql():
|
|
50
|
+
ql = TessQuickLook(**planet_inputs)
|
|
51
|
+
fig = ql.plot_tql()
|
|
52
|
+
benchmark(run_ql)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- **Re-install tox**:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
tox -r
|
|
59
|
+
```
|