lcviz 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lcviz-0.1.0/.bandit.yaml +2 -0
- lcviz-0.1.0/.flake8 +4 -0
- lcviz-0.1.0/.github/workflows/ci_cron_weekly.yml +50 -0
- lcviz-0.1.0/.github/workflows/ci_workflows.yml +93 -0
- lcviz-0.1.0/.github/workflows/publish.yml +52 -0
- lcviz-0.1.0/.gitignore +72 -0
- lcviz-0.1.0/.readthedocs.yaml +29 -0
- lcviz-0.1.0/CHANGES.rst +5 -0
- lcviz-0.1.0/CODE_OF_CONDUCT.md +54 -0
- lcviz-0.1.0/CONTRIBUTING.md +5 -0
- lcviz-0.1.0/LICENSE.rst +29 -0
- lcviz-0.1.0/MANIFEST.in +14 -0
- lcviz-0.1.0/PKG-INFO +130 -0
- lcviz-0.1.0/README.rst +71 -0
- lcviz-0.1.0/conftest.py +21 -0
- lcviz-0.1.0/docs/Makefile +133 -0
- lcviz-0.1.0/docs/conf.py +387 -0
- lcviz-0.1.0/docs/index.rst +38 -0
- lcviz-0.1.0/docs/installation.rst +128 -0
- lcviz-0.1.0/docs/logos/lcviz.ico +0 -0
- lcviz-0.1.0/docs/logos/lcviz.svg +65 -0
- lcviz-0.1.0/docs/logos/lcviz_icon.svg +54 -0
- lcviz-0.1.0/docs/make.bat +117 -0
- lcviz-0.1.0/docs/plugins.rst +297 -0
- lcviz-0.1.0/docs/reference/api.rst +33 -0
- lcviz-0.1.0/docs/reference/api_plugins.rst +31 -0
- lcviz-0.1.0/lcviz/__init__.py +23 -0
- lcviz-0.1.0/lcviz/components/__init__.py +0 -0
- lcviz-0.1.0/lcviz/components/plugin_ephemeris_select.vue +50 -0
- lcviz-0.1.0/lcviz/conftest.py +54 -0
- lcviz-0.1.0/lcviz/data/HAT-P-11_Kepler_Q0_snippet.fits +13 -0
- lcviz-0.1.0/lcviz/data/README.rst +9 -0
- lcviz-0.1.0/lcviz/events.py +29 -0
- lcviz-0.1.0/lcviz/helper.py +166 -0
- lcviz-0.1.0/lcviz/lcviz_style.vue +7 -0
- lcviz-0.1.0/lcviz/marks.py +49 -0
- lcviz-0.1.0/lcviz/parsers.py +58 -0
- lcviz-0.1.0/lcviz/plugins/__init__.py +10 -0
- lcviz-0.1.0/lcviz/plugins/binning/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/binning/binning.py +266 -0
- lcviz-0.1.0/lcviz/plugins/binning/binning.vue +95 -0
- lcviz-0.1.0/lcviz/plugins/coords_info/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/coords_info/coords_info.py +140 -0
- lcviz-0.1.0/lcviz/plugins/ephemeris/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/ephemeris/ephemeris.py +545 -0
- lcviz-0.1.0/lcviz/plugins/ephemeris/ephemeris.vue +162 -0
- lcviz-0.1.0/lcviz/plugins/export_plot/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/export_plot/export_plot.py +11 -0
- lcviz-0.1.0/lcviz/plugins/flatten/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/flatten/flatten.py +238 -0
- lcviz-0.1.0/lcviz/plugins/flatten/flatten.vue +182 -0
- lcviz-0.1.0/lcviz/plugins/frequency_analysis/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/frequency_analysis/frequency_analysis.py +192 -0
- lcviz-0.1.0/lcviz/plugins/frequency_analysis/frequency_analysis.vue +110 -0
- lcviz-0.1.0/lcviz/plugins/markers/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/markers/markers.py +23 -0
- lcviz-0.1.0/lcviz/plugins/metadata_viewer/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/metadata_viewer/metadata_viewer.py +11 -0
- lcviz-0.1.0/lcviz/plugins/plot_options/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/plot_options/plot_options.py +23 -0
- lcviz-0.1.0/lcviz/plugins/subset_plugin/__init__.py +1 -0
- lcviz-0.1.0/lcviz/plugins/subset_plugin/subset_plugin.py +12 -0
- lcviz-0.1.0/lcviz/state.py +60 -0
- lcviz-0.1.0/lcviz/template_mixin.py +145 -0
- lcviz-0.1.0/lcviz/tests/__init__.py +4 -0
- lcviz-0.1.0/lcviz/tests/test_parser.py +110 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_binning.py +67 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_ephemeris.py +72 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_flatten.py +100 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_frequency_analysis.py +55 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_markers.py +117 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_metadata.py +10 -0
- lcviz-0.1.0/lcviz/tests/test_plugin_plot_options.py +14 -0
- lcviz-0.1.0/lcviz/tests/test_translator.py +86 -0
- lcviz-0.1.0/lcviz/tests/test_viewers.py +19 -0
- lcviz-0.1.0/lcviz/tools.py +5 -0
- lcviz-0.1.0/lcviz/utils.py +223 -0
- lcviz-0.1.0/lcviz/version.py +16 -0
- lcviz-0.1.0/lcviz/viewers.py +230 -0
- lcviz-0.1.0/lcviz.egg-info/PKG-INFO +130 -0
- lcviz-0.1.0/lcviz.egg-info/SOURCES.txt +90 -0
- lcviz-0.1.0/lcviz.egg-info/dependency_links.txt +1 -0
- lcviz-0.1.0/lcviz.egg-info/not-zip-safe +1 -0
- lcviz-0.1.0/lcviz.egg-info/requires.txt +13 -0
- lcviz-0.1.0/lcviz.egg-info/top_level.txt +1 -0
- lcviz-0.1.0/notebooks/ConfigHelperHelper.ipynb +224 -0
- lcviz-0.1.0/notebooks/LCvizExample.ipynb +161 -0
- lcviz-0.1.0/pyproject.toml +136 -0
- lcviz-0.1.0/requirements.txt +1 -0
- lcviz-0.1.0/setup.cfg +4 -0
- lcviz-0.1.0/setup.py +34 -0
- lcviz-0.1.0/tox.ini +98 -0
lcviz-0.1.0/.bandit.yaml
ADDED
lcviz-0.1.0/.flake8
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# GitHub Actions workflow that runs on a cron schedule.
|
|
2
|
+
name: Cron Scheduled CI Tests
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
schedule:
|
|
7
|
+
# run at 9am UTC on Mondays
|
|
8
|
+
- cron: '0 9 * * 1'
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
# The linkcheck job tests that the links in the docs point to real places
|
|
15
|
+
# The if statement is to prevent cron from running on forks.
|
|
16
|
+
linkcheck:
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
if: github.repository == 'spacetelescope/lcviz'
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v3
|
|
21
|
+
- name: Set up Python to build docs with sphinx
|
|
22
|
+
uses: actions/setup-python@v4
|
|
23
|
+
with:
|
|
24
|
+
python-version: '3.10'
|
|
25
|
+
- name: Install base dependencies
|
|
26
|
+
run: |
|
|
27
|
+
python -m pip install --upgrade pip
|
|
28
|
+
python -m pip install tox
|
|
29
|
+
- name: Check links in docs using tox
|
|
30
|
+
run: tox -e linkcheck
|
|
31
|
+
|
|
32
|
+
ci_cron_tests:
|
|
33
|
+
name: Python 3.10 with latest dev versions of key dependencies
|
|
34
|
+
runs-on: ubuntu-latest
|
|
35
|
+
if: github.repository == 'spacetelescope/lcviz'
|
|
36
|
+
steps:
|
|
37
|
+
- name: Checkout code
|
|
38
|
+
uses: actions/checkout@v3
|
|
39
|
+
with:
|
|
40
|
+
fetch-depth: 0
|
|
41
|
+
- name: Set up python
|
|
42
|
+
uses: actions/setup-python@v4
|
|
43
|
+
with:
|
|
44
|
+
python-version: '3.10'
|
|
45
|
+
- name: Install base dependencies
|
|
46
|
+
run: |
|
|
47
|
+
python -m pip install --upgrade pip
|
|
48
|
+
python -m pip install tox
|
|
49
|
+
- name: Test with tox
|
|
50
|
+
run: tox -e py310-test-devdeps
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
- 'v*'
|
|
8
|
+
tags:
|
|
9
|
+
- 'v*'
|
|
10
|
+
pull_request:
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
# Github Actions supports ubuntu, windows, and macos virtual environments:
|
|
21
|
+
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
|
|
22
|
+
ci_tests:
|
|
23
|
+
name: ${{ matrix.name }}
|
|
24
|
+
runs-on: ${{ matrix.os }}
|
|
25
|
+
continue-on-error: ${{ matrix.allow_failure }}
|
|
26
|
+
strategy:
|
|
27
|
+
matrix:
|
|
28
|
+
include:
|
|
29
|
+
- name: Code style checks
|
|
30
|
+
os: ubuntu-latest
|
|
31
|
+
python: 3.x
|
|
32
|
+
toxenv: codestyle
|
|
33
|
+
allow_failure: false
|
|
34
|
+
|
|
35
|
+
- name: PEP 517
|
|
36
|
+
os: ubuntu-latest
|
|
37
|
+
python: 3.x
|
|
38
|
+
toxenv: pep517
|
|
39
|
+
allow_failure: false
|
|
40
|
+
|
|
41
|
+
- name: Security audit
|
|
42
|
+
os: ubuntu-latest
|
|
43
|
+
python: 3.x
|
|
44
|
+
toxenv: securityaudit
|
|
45
|
+
allow_failure: false
|
|
46
|
+
|
|
47
|
+
- name: Python 3.10 with coverage checking, all deps, and remote data
|
|
48
|
+
os: ubuntu-latest
|
|
49
|
+
python: '3.10'
|
|
50
|
+
toxenv: py310-test-alldeps-cov
|
|
51
|
+
toxposargs: --remote-data
|
|
52
|
+
allow_failure: false
|
|
53
|
+
|
|
54
|
+
- name: OS X - Python 3.9
|
|
55
|
+
os: macos-latest
|
|
56
|
+
python: 3.9
|
|
57
|
+
toxenv: py39-test
|
|
58
|
+
allow_failure: false
|
|
59
|
+
|
|
60
|
+
- name: Windows - Python 3.9
|
|
61
|
+
os: windows-latest
|
|
62
|
+
python: 3.9
|
|
63
|
+
toxenv: py39-test
|
|
64
|
+
allow_failure: false
|
|
65
|
+
|
|
66
|
+
# This also runs on cron but we want to make sure new changes
|
|
67
|
+
# won't break this job at the PR stage.
|
|
68
|
+
- name: Python 3.11 with latest dev versions of key dependencies, and remote data
|
|
69
|
+
os: ubuntu-latest
|
|
70
|
+
python: '3.11'
|
|
71
|
+
toxenv: py311-test-devdeps
|
|
72
|
+
toxposargs: --remote-data --run-slow
|
|
73
|
+
allow_failure: true
|
|
74
|
+
|
|
75
|
+
steps:
|
|
76
|
+
- name: Checkout code
|
|
77
|
+
uses: actions/checkout@v3
|
|
78
|
+
with:
|
|
79
|
+
fetch-depth: 0
|
|
80
|
+
- name: Set up python ${{ matrix.python }} on ${{ matrix.os }}
|
|
81
|
+
uses: actions/setup-python@v4
|
|
82
|
+
with:
|
|
83
|
+
python-version: ${{ matrix.python }}
|
|
84
|
+
- name: Install base dependencies
|
|
85
|
+
run: python -m pip install --upgrade pip tox
|
|
86
|
+
- name: Test/run with tox
|
|
87
|
+
run: tox -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
|
|
88
|
+
- name: Upload coverage to codecov
|
|
89
|
+
if: "contains(matrix.toxenv, '-cov')"
|
|
90
|
+
uses: codecov/codecov-action@v3
|
|
91
|
+
with:
|
|
92
|
+
file: ./coverage.xml
|
|
93
|
+
verbose: true
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
# NOTE: PR trigger is to ensure changes do not break packaging.
|
|
5
|
+
pull_request:
|
|
6
|
+
release:
|
|
7
|
+
types: [released]
|
|
8
|
+
|
|
9
|
+
concurrency:
|
|
10
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
+
cancel-in-progress: true
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build-n-publish:
|
|
15
|
+
name: Build and publish Python 🐍 distributions 📦 to PyPI
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
permissions:
|
|
18
|
+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
|
|
19
|
+
if: github.repository == 'spacetelescope/lcviz'
|
|
20
|
+
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
|
|
26
|
+
- uses: actions/setup-python@v4
|
|
27
|
+
with:
|
|
28
|
+
python-version: 3.9
|
|
29
|
+
|
|
30
|
+
- name: Install python-build and twine
|
|
31
|
+
run: python -m pip install build "twine>=3.3"
|
|
32
|
+
|
|
33
|
+
- name: Build package
|
|
34
|
+
run: python -m build --sdist --wheel .
|
|
35
|
+
|
|
36
|
+
- name: List result
|
|
37
|
+
run: ls -l dist
|
|
38
|
+
|
|
39
|
+
- name: Check dist
|
|
40
|
+
run: python -m twine check --strict dist/*
|
|
41
|
+
|
|
42
|
+
- name: Test package
|
|
43
|
+
run: |
|
|
44
|
+
cd ..
|
|
45
|
+
python -m venv testenv
|
|
46
|
+
testenv/bin/pip install pytest pytest-astropy pytest-tornasync lcviz/dist/*.whl
|
|
47
|
+
testenv/bin/python -c "import lcviz; lcviz.test(remote_data=True)"
|
|
48
|
+
|
|
49
|
+
# NOTE: Do not run this part for PR testing.
|
|
50
|
+
- name: Publish distribution 📦 to PyPI
|
|
51
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
52
|
+
if: github.event_name != 'pull_request'
|
lcviz-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Compiled files
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*.a
|
|
4
|
+
*.o
|
|
5
|
+
*.so
|
|
6
|
+
__pycache__
|
|
7
|
+
|
|
8
|
+
# Ignore .c files by default to avoid including generated code. If you want to
|
|
9
|
+
# add a non-generated .c extension, use `git add -f filename.c`.
|
|
10
|
+
*.c
|
|
11
|
+
|
|
12
|
+
# Other generated files
|
|
13
|
+
*/version.py
|
|
14
|
+
*/cython_version.py
|
|
15
|
+
htmlcov
|
|
16
|
+
.coverage
|
|
17
|
+
MANIFEST
|
|
18
|
+
.ipynb_checkpoints
|
|
19
|
+
notebooks/*.fits
|
|
20
|
+
|
|
21
|
+
# Sphinx
|
|
22
|
+
docs/api
|
|
23
|
+
docs/_build
|
|
24
|
+
|
|
25
|
+
# Eclipse editor project files
|
|
26
|
+
.project
|
|
27
|
+
.pydevproject
|
|
28
|
+
.settings
|
|
29
|
+
|
|
30
|
+
# Pycharm editor project files
|
|
31
|
+
.idea
|
|
32
|
+
|
|
33
|
+
# Floobits project files
|
|
34
|
+
.floo
|
|
35
|
+
.flooignore
|
|
36
|
+
|
|
37
|
+
# Packages/installer info
|
|
38
|
+
*.egg
|
|
39
|
+
*.egg-info
|
|
40
|
+
dist
|
|
41
|
+
build
|
|
42
|
+
eggs
|
|
43
|
+
parts
|
|
44
|
+
bin
|
|
45
|
+
var
|
|
46
|
+
sdist
|
|
47
|
+
develop-eggs
|
|
48
|
+
.installed.cfg
|
|
49
|
+
distribute-*.tar.gz
|
|
50
|
+
|
|
51
|
+
# Other
|
|
52
|
+
.cache
|
|
53
|
+
.tox
|
|
54
|
+
.*.sw[op]
|
|
55
|
+
*~
|
|
56
|
+
._*
|
|
57
|
+
.project
|
|
58
|
+
.pydevproject
|
|
59
|
+
.settings
|
|
60
|
+
pip-wheel-metadata
|
|
61
|
+
.vscode
|
|
62
|
+
.pytest_cache
|
|
63
|
+
.tmp
|
|
64
|
+
.eggs
|
|
65
|
+
.python-version
|
|
66
|
+
|
|
67
|
+
# Mac OSX
|
|
68
|
+
.DS_Store
|
|
69
|
+
|
|
70
|
+
# Environments
|
|
71
|
+
/env*
|
|
72
|
+
/*venv
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
|
|
3
|
+
build:
|
|
4
|
+
os: ubuntu-22.04
|
|
5
|
+
apt_packages:
|
|
6
|
+
- graphviz
|
|
7
|
+
tools:
|
|
8
|
+
python: "3.11"
|
|
9
|
+
jobs:
|
|
10
|
+
post_checkout:
|
|
11
|
+
# Use `git log` to check if the latest commit contains "skip rtd" or "rtd skip",
|
|
12
|
+
# in that case exit the command with 183 to skip the build
|
|
13
|
+
- MSG=`git --no-pager log --pretty="tformat:%s -- %b" -1`; case $MSG in *"skip rtd"*|*"rtd skip"*) exit 183;; *);; esac
|
|
14
|
+
|
|
15
|
+
sphinx:
|
|
16
|
+
builder: html
|
|
17
|
+
configuration: docs/conf.py
|
|
18
|
+
fail_on_warning: true
|
|
19
|
+
|
|
20
|
+
python:
|
|
21
|
+
install:
|
|
22
|
+
- method: pip
|
|
23
|
+
path: .
|
|
24
|
+
extra_requirements:
|
|
25
|
+
- docs
|
|
26
|
+
|
|
27
|
+
# Build zipped HTML
|
|
28
|
+
formats:
|
|
29
|
+
- htmlzip
|
lcviz-0.1.0/CHANGES.rst
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Spacetelescope Open Source Code of Conduct
|
|
2
|
+
|
|
3
|
+
We expect all "spacetelescope" organization projects to adopt a code of conduct
|
|
4
|
+
that ensures a productive, respectful environment for all open source
|
|
5
|
+
contributors and participants. We are committed to providing a strong and
|
|
6
|
+
enforced code of conduct and expect everyone in our community to follow these
|
|
7
|
+
guidelines when interacting with others in all forums. Our goal is to keep ours
|
|
8
|
+
a positive, inclusive, successful, and growing community. The community of
|
|
9
|
+
participants in open source Astronomy projects is made up of members from
|
|
10
|
+
around the globe with a diverse set of skills, personalities, and experiences.
|
|
11
|
+
It is through these differences that our community experiences success and
|
|
12
|
+
continued growth.
|
|
13
|
+
|
|
14
|
+
As members of the community:
|
|
15
|
+
|
|
16
|
+
- We pledge to treat all people with respect and provide a harassment-
|
|
17
|
+
and bullying-free environment, regardless of sex, sexual orientation and/or
|
|
18
|
+
gender identity, disability, physical appearance, body size, race,
|
|
19
|
+
nationality, ethnicity, and religion. In particular, sexual language and
|
|
20
|
+
imagery, sexist, racist, or otherwise exclusionary jokes are not appropriate.
|
|
21
|
+
- We pledge to respect the work of others by recognizing acknowledgment/citation
|
|
22
|
+
requests of original authors. As authors, we pledge to be explicit about how
|
|
23
|
+
we want our own work to be cited or acknowledged.
|
|
24
|
+
- We pledge to welcome those interested in joining the community, and realize
|
|
25
|
+
that including people with a variety of opinions and backgrounds will only
|
|
26
|
+
serve to enrich our community. In particular, discussions relating to
|
|
27
|
+
pros/cons of various technologies, programming languages, and so on are
|
|
28
|
+
welcome, but these should be done with respect, taking proactive measure to
|
|
29
|
+
ensure that all participants are heard and feel confident that they can
|
|
30
|
+
freely express their opinions.
|
|
31
|
+
- We pledge to welcome questions and answer them respectfully, paying
|
|
32
|
+
particular attention to those new to the community. We pledge to provide
|
|
33
|
+
respectful criticisms and feedback in forums, especially in discussion
|
|
34
|
+
threads resulting from code contributions.
|
|
35
|
+
- We pledge to be conscientious of the perceptions of the wider community and
|
|
36
|
+
to respond to criticism respectfully. We will strive to model behaviors that
|
|
37
|
+
encourage productive debate and disagreement, both within our community and
|
|
38
|
+
where we are criticized. We will treat those outside our community with the
|
|
39
|
+
same respect as people within our community.
|
|
40
|
+
- We pledge to help the entire community follow the code of conduct, and to not
|
|
41
|
+
remain silent when we see violations of the code of conduct. We will take
|
|
42
|
+
action when members of our community violate this code such as such as
|
|
43
|
+
contacting conduct@stsci.edu (all emails sent to this address will be
|
|
44
|
+
treated with the strictest confidence) or talking privately with the person.
|
|
45
|
+
|
|
46
|
+
This code of conduct applies to all community situations online and offline,
|
|
47
|
+
including mailing lists, forums, social media, conferences, meetings,
|
|
48
|
+
associated social events, and one-to-one interactions.
|
|
49
|
+
|
|
50
|
+
Parts of this code of conduct have been adapted from the Astropy and NumFOCUS
|
|
51
|
+
codes of conduct:
|
|
52
|
+
|
|
53
|
+
- https://www.astropy.org/code_of_conduct.html
|
|
54
|
+
- https://www.numfocus.org/about/code-of-conduct/
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
Please open a new issue or new pull request for bugs, feedback, or new features you would like to see. If there is an issue you would like to work on, please leave a comment and we will be happy to assist. New contributions and contributors are very welcome!
|
|
2
|
+
|
|
3
|
+
New to github or open source projects? If you are unsure about where to start or haven't used github before, please feel free to contact the package maintainers.
|
|
4
|
+
|
|
5
|
+
Feedback and feature requests? Is there something missing you would like to see? Please open an issue or send an email to the maintainers. This package follows the Spacetelescope [Code of Conduct](CODE_OF_CONDUCT.md) strives to provide a welcoming community to all of our users and contributors.
|
lcviz-0.1.0/LICENSE.rst
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
BSD 3-Clause License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023, Association of Universities for Research in Astronomy.
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
Redistribution and use in source and binary forms, with or without
|
|
7
|
+
modification, are permitted provided that the following conditions are met:
|
|
8
|
+
|
|
9
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
10
|
+
list of conditions and the following disclaimer.
|
|
11
|
+
|
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
13
|
+
this list of conditions and the following disclaimer in the documentation
|
|
14
|
+
and/or other materials provided with the distribution.
|
|
15
|
+
|
|
16
|
+
* Neither the name of the copyright holder nor the names of its
|
|
17
|
+
contributors may be used to endorse or promote products derived from
|
|
18
|
+
this software without specific prior written permission.
|
|
19
|
+
|
|
20
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
21
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
22
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
23
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
24
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
25
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
26
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
27
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
28
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
29
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
lcviz-0.1.0/MANIFEST.in
ADDED
lcviz-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: lcviz
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Jdaviz-based light curve analysis and visualization tool
|
|
5
|
+
Author-email: JDADF Developers <kconroy@stsci.edu>
|
|
6
|
+
License: BSD 3-Clause License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2023, Association of Universities for Research in Astronomy.
|
|
9
|
+
All rights reserved.
|
|
10
|
+
|
|
11
|
+
Redistribution and use in source and binary forms, with or without
|
|
12
|
+
modification, are permitted provided that the following conditions are met:
|
|
13
|
+
|
|
14
|
+
* Redistributions of source code must retain the above copyright notice, this
|
|
15
|
+
list of conditions and the following disclaimer.
|
|
16
|
+
|
|
17
|
+
* Redistributions in binary form must reproduce the above copyright notice,
|
|
18
|
+
this list of conditions and the following disclaimer in the documentation
|
|
19
|
+
and/or other materials provided with the distribution.
|
|
20
|
+
|
|
21
|
+
* Neither the name of the copyright holder nor the names of its
|
|
22
|
+
contributors may be used to endorse or promote products derived from
|
|
23
|
+
this software without specific prior written permission.
|
|
24
|
+
|
|
25
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
26
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
27
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
28
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
29
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
30
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
31
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
32
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
33
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
34
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
35
|
+
|
|
36
|
+
Project-URL: Homepage, https://github.com/spacetelescope/lcviz
|
|
37
|
+
Keywords: astronomy,astrophysics
|
|
38
|
+
Classifier: Intended Audience :: Science/Research
|
|
39
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
40
|
+
Classifier: Operating System :: OS Independent
|
|
41
|
+
Classifier: Programming Language :: Python :: 3
|
|
42
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
43
|
+
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
44
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
45
|
+
Requires-Python: >=3.9
|
|
46
|
+
Description-Content-Type: text/x-rst
|
|
47
|
+
License-File: LICENSE.rst
|
|
48
|
+
Requires-Dist: astropy>=5.2
|
|
49
|
+
Requires-Dist: jdaviz==3.8.*
|
|
50
|
+
Requires-Dist: lightkurve>=2.4.1
|
|
51
|
+
Provides-Extra: test
|
|
52
|
+
Requires-Dist: pytest; extra == "test"
|
|
53
|
+
Requires-Dist: pytest-astropy; extra == "test"
|
|
54
|
+
Requires-Dist: pytest-tornasync; extra == "test"
|
|
55
|
+
Provides-Extra: docs
|
|
56
|
+
Requires-Dist: sphinx-astropy[confv2]>=1.9.1; extra == "docs"
|
|
57
|
+
Requires-Dist: sphinx_design; extra == "docs"
|
|
58
|
+
Requires-Dist: sphinx-togglebutton; extra == "docs"
|
|
59
|
+
|
|
60
|
+
.. image:: docs/logos/lcviz.svg
|
|
61
|
+
:width: 400
|
|
62
|
+
:alt: lcviz logo
|
|
63
|
+
:align: center
|
|
64
|
+
|
|
65
|
+
.. image:: https://github.com/spacetelescope/lcviz/workflows/CI/badge.svg
|
|
66
|
+
:target: https://github.com/spacetelescope/lcviz/actions
|
|
67
|
+
:alt: GitHub Actions CI Status
|
|
68
|
+
|
|
69
|
+
.. image:: https://codecov.io/gh/spacetelescope/lcviz/branch/main/graph/badge.svg
|
|
70
|
+
:target: https://codecov.io/gh/spacetelescope/lcviz
|
|
71
|
+
|
|
72
|
+
.. image:: https://readthedocs.org/projects/lcviz/badge/?version=latest
|
|
73
|
+
:target: https://lcviz.readthedocs.io/en/latest/?badge=latest
|
|
74
|
+
:alt: Documentation Status
|
|
75
|
+
|
|
76
|
+
.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
|
|
77
|
+
:target: http://www.astropy.org
|
|
78
|
+
:alt: Powered by Astropy Badge
|
|
79
|
+
|
|
80
|
+
.. image:: http://img.shields.io/badge/powered%20by-jdaviz-336699.svg?style=flat
|
|
81
|
+
:target: https://github.com/spacetelescope/jdaviz/
|
|
82
|
+
:alt: Powered by jdaviz Badge
|
|
83
|
+
|
|
84
|
+
.. image:: http://img.shields.io/badge/powered%20by-lightkurve-6570b1.svg?style=flat
|
|
85
|
+
:target: https://github.com/lightkurve/lightkurve/
|
|
86
|
+
:alt: Powered by lightkurve Badge
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
Early Development Software Warning
|
|
90
|
+
----------------------------------
|
|
91
|
+
LCviz is still very early on in development and is not currently recommended for use.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
License
|
|
95
|
+
-------
|
|
96
|
+
|
|
97
|
+
See `LICENSE.rst` for more information.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
Contributing
|
|
101
|
+
------------
|
|
102
|
+
|
|
103
|
+
We love contributions! `lcviz` is open source,
|
|
104
|
+
built on open source, and we'd love to have you hang out in our community.
|
|
105
|
+
|
|
106
|
+
**Imposter syndrome disclaimer**: We want your help. No, really.
|
|
107
|
+
|
|
108
|
+
There may be a little voice inside your head that is telling you that you're not
|
|
109
|
+
ready to be an open source contributor; that your skills aren't nearly good
|
|
110
|
+
enough to contribute. What could you possibly offer a project like this one?
|
|
111
|
+
|
|
112
|
+
We assure you - the little voice in your head is wrong. If you can write code at
|
|
113
|
+
all, you can contribute code to open source. Contributing to open source
|
|
114
|
+
projects is a fantastic way to advance one's coding skills. Writing perfect code
|
|
115
|
+
isn't the measure of a good developer (that would disqualify all of us!); it's
|
|
116
|
+
trying to create something, making mistakes, and learning from those
|
|
117
|
+
mistakes. That's how we all improve, and we are happy to help others learn.
|
|
118
|
+
|
|
119
|
+
Being an open source contributor doesn't just mean writing code, either. You can
|
|
120
|
+
help out by writing documentation, tests, or even giving feedback about the
|
|
121
|
+
project (and yes - that includes giving feedback about the contribution
|
|
122
|
+
process). Some of these contributions may be the most valuable to the project as
|
|
123
|
+
a whole, because you're coming to the project with fresh eyes, so you can see
|
|
124
|
+
the errors and assumptions that seasoned contributors have glossed over.
|
|
125
|
+
|
|
126
|
+
*Note:* This disclaimer was originally written by
|
|
127
|
+
`Adrienne Lowe <https://github.com/adriennefriend>`_ for a
|
|
128
|
+
`PyCon talk <https://www.youtube.com/watch?v=6Uj746j9Heo>`_, and was adapted by
|
|
129
|
+
lcviz based on its use in the README file for the
|
|
130
|
+
`MetPy project <https://github.com/Unidata/MetPy>`_.
|
lcviz-0.1.0/README.rst
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
.. image:: docs/logos/lcviz.svg
|
|
2
|
+
:width: 400
|
|
3
|
+
:alt: lcviz logo
|
|
4
|
+
:align: center
|
|
5
|
+
|
|
6
|
+
.. image:: https://github.com/spacetelescope/lcviz/workflows/CI/badge.svg
|
|
7
|
+
:target: https://github.com/spacetelescope/lcviz/actions
|
|
8
|
+
:alt: GitHub Actions CI Status
|
|
9
|
+
|
|
10
|
+
.. image:: https://codecov.io/gh/spacetelescope/lcviz/branch/main/graph/badge.svg
|
|
11
|
+
:target: https://codecov.io/gh/spacetelescope/lcviz
|
|
12
|
+
|
|
13
|
+
.. image:: https://readthedocs.org/projects/lcviz/badge/?version=latest
|
|
14
|
+
:target: https://lcviz.readthedocs.io/en/latest/?badge=latest
|
|
15
|
+
:alt: Documentation Status
|
|
16
|
+
|
|
17
|
+
.. image:: http://img.shields.io/badge/powered%20by-AstroPy-orange.svg?style=flat
|
|
18
|
+
:target: http://www.astropy.org
|
|
19
|
+
:alt: Powered by Astropy Badge
|
|
20
|
+
|
|
21
|
+
.. image:: http://img.shields.io/badge/powered%20by-jdaviz-336699.svg?style=flat
|
|
22
|
+
:target: https://github.com/spacetelescope/jdaviz/
|
|
23
|
+
:alt: Powered by jdaviz Badge
|
|
24
|
+
|
|
25
|
+
.. image:: http://img.shields.io/badge/powered%20by-lightkurve-6570b1.svg?style=flat
|
|
26
|
+
:target: https://github.com/lightkurve/lightkurve/
|
|
27
|
+
:alt: Powered by lightkurve Badge
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
Early Development Software Warning
|
|
31
|
+
----------------------------------
|
|
32
|
+
LCviz is still very early on in development and is not currently recommended for use.
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
License
|
|
36
|
+
-------
|
|
37
|
+
|
|
38
|
+
See `LICENSE.rst` for more information.
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
Contributing
|
|
42
|
+
------------
|
|
43
|
+
|
|
44
|
+
We love contributions! `lcviz` is open source,
|
|
45
|
+
built on open source, and we'd love to have you hang out in our community.
|
|
46
|
+
|
|
47
|
+
**Imposter syndrome disclaimer**: We want your help. No, really.
|
|
48
|
+
|
|
49
|
+
There may be a little voice inside your head that is telling you that you're not
|
|
50
|
+
ready to be an open source contributor; that your skills aren't nearly good
|
|
51
|
+
enough to contribute. What could you possibly offer a project like this one?
|
|
52
|
+
|
|
53
|
+
We assure you - the little voice in your head is wrong. If you can write code at
|
|
54
|
+
all, you can contribute code to open source. Contributing to open source
|
|
55
|
+
projects is a fantastic way to advance one's coding skills. Writing perfect code
|
|
56
|
+
isn't the measure of a good developer (that would disqualify all of us!); it's
|
|
57
|
+
trying to create something, making mistakes, and learning from those
|
|
58
|
+
mistakes. That's how we all improve, and we are happy to help others learn.
|
|
59
|
+
|
|
60
|
+
Being an open source contributor doesn't just mean writing code, either. You can
|
|
61
|
+
help out by writing documentation, tests, or even giving feedback about the
|
|
62
|
+
project (and yes - that includes giving feedback about the contribution
|
|
63
|
+
process). Some of these contributions may be the most valuable to the project as
|
|
64
|
+
a whole, because you're coming to the project with fresh eyes, so you can see
|
|
65
|
+
the errors and assumptions that seasoned contributors have glossed over.
|
|
66
|
+
|
|
67
|
+
*Note:* This disclaimer was originally written by
|
|
68
|
+
`Adrienne Lowe <https://github.com/adriennefriend>`_ for a
|
|
69
|
+
`PyCon talk <https://www.youtube.com/watch?v=6Uj746j9Heo>`_, and was adapted by
|
|
70
|
+
lcviz based on its use in the README file for the
|
|
71
|
+
`MetPy project <https://github.com/Unidata/MetPy>`_.
|
lcviz-0.1.0/conftest.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
try:
|
|
2
|
+
from pytest_astropy_header.display import (PYTEST_HEADER_MODULES,
|
|
3
|
+
TESTED_VERSIONS)
|
|
4
|
+
except ImportError:
|
|
5
|
+
PYTEST_HEADER_MODULES = {}
|
|
6
|
+
TESTED_VERSIONS = {}
|
|
7
|
+
|
|
8
|
+
try:
|
|
9
|
+
from lcviz import __version__ as version
|
|
10
|
+
except ImportError:
|
|
11
|
+
version = 'unknown'
|
|
12
|
+
|
|
13
|
+
# Uncomment and customize the following lines to add/remove entries
|
|
14
|
+
# from the list of packages for which version numbers are displayed
|
|
15
|
+
# when running the tests.
|
|
16
|
+
PYTEST_HEADER_MODULES['astropy'] = 'astropy'
|
|
17
|
+
PYTEST_HEADER_MODULES.pop('Matplotlib', None)
|
|
18
|
+
PYTEST_HEADER_MODULES.pop('Pandas', None)
|
|
19
|
+
PYTEST_HEADER_MODULES.pop('h5py', None)
|
|
20
|
+
|
|
21
|
+
TESTED_VERSIONS['lcviz'] = version
|