exovetter 0.0.2__tar.gz → 0.0.3__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.
- {exovetter-0.0.2 → exovetter-0.0.3}/.github/workflows/ci_workflows.yml +12 -19
- exovetter-0.0.3/.readthedocs.yml +30 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/PKG-INFO +16 -3
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/utils.rst +0 -3
- exovetter-0.0.3/example_notebooks/Centorid_Vetting_Example.ipynb +222 -0
- exovetter-0.0.3/example_notebooks/Centroid_Vetting_Example.ipynb +570 -0
- exovetter-0.0.3/example_notebooks/TCE_example.ipynb +483 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/._wasp18b_lc.fits +0 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/centroid_example.ipynb +22169 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/lpp_example.ipynb +2159 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/modshift_example.ipynb +2178 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/obtaining_a_TCE_and_lightcurve.ipynb +333 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/odd_even_example.ipynb +2183 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/sweet_example.ipynb +2170 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/transit_events_testing.ipynb +383 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/transit_phase_coverage_example.ipynb +2168 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/viz_transits_example.ipynb +3169 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/wasp18b_lc.fits +192 -0
- exovetter-0.0.3/example_notebooks/current_vetter_examples/wasp18b_tce +1 -0
- exovetter-0.0.3/example_notebooks/exovetter_centroid_and_plotting_example.ipynb +1036 -0
- exovetter-0.0.3/example_notebooks/exovetter_robovetting_example.ipynb +747 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/example_notebooks/trapezoid_fit_simple.ipynb +3 -3
- exovetter-0.0.3/exovetter/centroid/__init__.py +1 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/centroid/centroid.py +29 -14
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/centroid/covar.py +5 -3
- exovetter-0.0.3/exovetter/leo.py +226 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/lightkurve_utils.py +1 -1
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/lpp.py +3 -2
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/sweet.py +5 -2
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/trapezoid_fit.py +2 -1
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/utils.py +30 -20
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/version.py +1 -1
- exovetter-0.0.3/exovetter/vetters.py +952 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/viz_transits.py +12 -8
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter.egg-info/PKG-INFO +16 -3
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter.egg-info/SOURCES.txt +21 -5
- exovetter-0.0.3/new_example_notebooks/TCEs.ipynb +359 -0
- exovetter-0.0.2/example_notebooks/Untitled.ipynb → exovetter-0.0.3/new_example_notebooks/lightcurves.ipynb +3 -3
- exovetter-0.0.3/new_example_notebooks/wasp18b_tce +1 -0
- exovetter-0.0.3/pyproject.toml +5 -0
- exovetter-0.0.2/.readthedocs.yml +0 -21
- exovetter-0.0.2/example_notebooks/Centroid_Vetting_Example.ipynb +0 -789
- exovetter-0.0.2/example_notebooks/TCE_example.ipynb +0 -346
- exovetter-0.0.2/exovetter/__init__.py.mine +0 -11
- exovetter-0.0.2/exovetter/centroid/untitled0.py +0 -24
- exovetter-0.0.2/exovetter/junk +0 -89
- exovetter-0.0.2/exovetter/vetters.py +0 -550
- exovetter-0.0.2/pyproject.toml +0 -14
- {exovetter-0.0.2 → exovetter-0.0.3}/.bandit.yaml +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/.github/workflows/publish.yml +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/.gitignore +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/CHANGES.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/LICENSE.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/MANIFEST.in +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/README.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/Makefile +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/conf.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/index.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/install.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/make.bat +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/vetters.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/docs/vetters_low_level.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/__init__.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/centroid/disp.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/centroid/fastpsffit.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/const.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/model.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/modshift/__init__.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/modshift/modshift.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/modshift/plotmodshift.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/odd_even.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/tce.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter/transit_coverage.py +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter.egg-info/dependency_links.txt +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter.egg-info/not-zip-safe +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter.egg-info/requires.txt +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/exovetter.egg-info/top_level.txt +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/licenses/DAVE_LICENSE +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/licenses/README.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/licenses/TEMPLATE_LICENCE.rst +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/requirements.txt +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/setup.cfg +0 -0
- {exovetter-0.0.2 → exovetter-0.0.3}/setup.py +0 -0
|
@@ -10,14 +10,12 @@ on:
|
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
pep_and_audit:
|
|
13
|
-
runs-on: ubuntu-
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout code
|
|
16
|
-
uses: actions/checkout@
|
|
17
|
-
- name: Fetch tags
|
|
18
|
-
run: git fetch --prune --unshallow --tags
|
|
16
|
+
uses: actions/checkout@v4
|
|
19
17
|
- name: Set up Python
|
|
20
|
-
uses: actions/setup-python@
|
|
18
|
+
uses: actions/setup-python@v4
|
|
21
19
|
with:
|
|
22
20
|
python-version: '3.x'
|
|
23
21
|
- name: Lint with pyflakes
|
|
@@ -36,38 +34,33 @@ jobs:
|
|
|
36
34
|
# python -m pip install --upgrade bandit
|
|
37
35
|
# bandit -r . -c .bandit.yaml
|
|
38
36
|
|
|
39
|
-
# Python 3.7 + Numpy 1.19 resulted in NaN results, so we downgrade Numpy.
|
|
40
37
|
initial_tests:
|
|
41
|
-
runs-on: ubuntu-
|
|
38
|
+
runs-on: ubuntu-latest
|
|
42
39
|
steps:
|
|
43
40
|
- name: Checkout code
|
|
44
|
-
uses: actions/checkout@
|
|
45
|
-
- name: Fetch tags
|
|
46
|
-
run: git fetch --prune --unshallow --tags
|
|
41
|
+
uses: actions/checkout@v4
|
|
47
42
|
- name: Set up Python
|
|
48
|
-
uses: actions/setup-python@
|
|
43
|
+
uses: actions/setup-python@v4
|
|
49
44
|
with:
|
|
50
|
-
python-version: '3.
|
|
45
|
+
python-version: '3.11'
|
|
51
46
|
- name: Install and build
|
|
52
47
|
run: |
|
|
53
48
|
sudo apt-get install libxml2-utils
|
|
54
49
|
python -m pip install --upgrade pip setuptools
|
|
55
|
-
python -m pip install 'numpy<1.19'
|
|
56
50
|
python -m pip install -e .[test,all]
|
|
57
51
|
- name: Test with stable deps and coverage
|
|
58
|
-
run: pytest --
|
|
52
|
+
run: pytest --remote-data
|
|
53
|
+
# run: pytest --cov=./ --cov-report=xml --remote-data
|
|
59
54
|
# - name: Coverage report
|
|
60
|
-
# uses: codecov/codecov-action@
|
|
55
|
+
# uses: codecov/codecov-action@v3
|
|
61
56
|
|
|
62
57
|
# dev_deps_tests:
|
|
63
58
|
# runs-on: ubuntu-latest
|
|
64
59
|
# steps:
|
|
65
60
|
# - name: Checkout code
|
|
66
|
-
# uses: actions/checkout@
|
|
67
|
-
# - name: Fetch tags
|
|
68
|
-
# run: git fetch --prune --unshallow --tags
|
|
61
|
+
# uses: actions/checkout@v4
|
|
69
62
|
# - name: Set up Python
|
|
70
|
-
# uses: actions/setup-python@
|
|
63
|
+
# uses: actions/setup-python@v4
|
|
71
64
|
# with:
|
|
72
65
|
# python-version: '3.x'
|
|
73
66
|
# - name: Install and build
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Read the Docs configuration file for Sphinx projects
|
|
2
|
+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
|
|
3
|
+
|
|
4
|
+
# Required
|
|
5
|
+
version: 2
|
|
6
|
+
|
|
7
|
+
# Set the OS, Python version and other tools you might need
|
|
8
|
+
build:
|
|
9
|
+
os: ubuntu-22.04
|
|
10
|
+
apt_packages:
|
|
11
|
+
- graphviz
|
|
12
|
+
tools:
|
|
13
|
+
python: "3.11"
|
|
14
|
+
|
|
15
|
+
# Build documentation in the "docs/" directory with Sphinx
|
|
16
|
+
sphinx:
|
|
17
|
+
builder: html
|
|
18
|
+
configuration: docs/conf.py
|
|
19
|
+
fail_on_warning: true
|
|
20
|
+
|
|
21
|
+
python:
|
|
22
|
+
install:
|
|
23
|
+
- method: pip
|
|
24
|
+
path: .
|
|
25
|
+
extra_requirements:
|
|
26
|
+
- docs
|
|
27
|
+
- all
|
|
28
|
+
|
|
29
|
+
# Don't build any extra formats
|
|
30
|
+
formats: []
|
|
@@ -1,16 +1,29 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: exovetter
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary:
|
|
3
|
+
Version: 0.0.3
|
|
4
|
+
Summary: Exoplanet vetting package
|
|
5
5
|
Home-page: https://github.com/spacetelescope/exovetter
|
|
6
6
|
Author: Susan Mullally et al.
|
|
7
7
|
Author-email: smullally@stsci.edu
|
|
8
|
+
License: BSD 3-Clause
|
|
8
9
|
Requires-Python: >=3.7
|
|
9
10
|
Description-Content-Type: text/x-rst
|
|
11
|
+
License-File: LICENSE.rst
|
|
12
|
+
Requires-Dist: numpy
|
|
13
|
+
Requires-Dist: astropy>=3
|
|
14
|
+
Requires-Dist: scipy
|
|
10
15
|
Provides-Extra: all
|
|
16
|
+
Requires-Dist: matplotlib; extra == "all"
|
|
17
|
+
Requires-Dist: scikit-learn; extra == "all"
|
|
18
|
+
Requires-Dist: lightkurve>=2; extra == "all"
|
|
19
|
+
Requires-Dist: lpproj; extra == "all"
|
|
11
20
|
Provides-Extra: test
|
|
21
|
+
Requires-Dist: pytest-cov; extra == "test"
|
|
22
|
+
Requires-Dist: pytest-remotedata; extra == "test"
|
|
23
|
+
Requires-Dist: pytest-doctestplus; extra == "test"
|
|
12
24
|
Provides-Extra: docs
|
|
13
|
-
|
|
25
|
+
Requires-Dist: sphinx-astropy; extra == "docs"
|
|
26
|
+
Requires-Dist: sphinx_rtd_theme; extra == "docs"
|
|
14
27
|
|
|
15
28
|
exovetter: Exoplanet Vetting
|
|
16
29
|
============================
|
|
@@ -13,9 +13,6 @@ These provide low-level functionality for ``exovetter``.
|
|
|
13
13
|
.. automodapi:: exovetter.model
|
|
14
14
|
:no-inheritance-diagram:
|
|
15
15
|
|
|
16
|
-
.. automodapi:: exovetter.lcutils
|
|
17
|
-
:no-inheritance-diagram:
|
|
18
|
-
|
|
19
16
|
.. automodapi:: exovetter.lightkurve_utils
|
|
20
17
|
:no-inheritance-diagram:
|
|
21
18
|
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"cells": [
|
|
3
|
+
{
|
|
4
|
+
"cell_type": "markdown",
|
|
5
|
+
"id": "029ab771-1196-408e-a57b-520e813bb764",
|
|
6
|
+
"metadata": {},
|
|
7
|
+
"source": [
|
|
8
|
+
"# Example: Centroid Vetting.\n",
|
|
9
|
+
"### How to look for centroid offset between in and out of transit\n",
|
|
10
|
+
"In this example we show how to use the vetting module to visualize the transit and take the difference between the in transit and out of transit to determine if there is a centroid offset between the two."
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"cell_type": "code",
|
|
15
|
+
"execution_count": 1,
|
|
16
|
+
"id": "3c1ea491-efeb-4662-9f9f-84a5327229f3",
|
|
17
|
+
"metadata": {},
|
|
18
|
+
"outputs": [],
|
|
19
|
+
"source": [
|
|
20
|
+
"import numpy\n",
|
|
21
|
+
"import matplotlib\n",
|
|
22
|
+
"import exovetter as exo\n",
|
|
23
|
+
"from exovetter import const\n",
|
|
24
|
+
"from exovetter import utils\n",
|
|
25
|
+
"import exovetter.vetters as vet\n",
|
|
26
|
+
"import lightkurve as lk\n",
|
|
27
|
+
"import astropy.units as u"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"cell_type": "code",
|
|
32
|
+
"execution_count": 2,
|
|
33
|
+
"id": "e6212cc7-f877-40fb-9d61-618d751f4df6",
|
|
34
|
+
"metadata": {},
|
|
35
|
+
"outputs": [],
|
|
36
|
+
"source": [
|
|
37
|
+
"#Name of our first TOI Example\n",
|
|
38
|
+
"candidate = \"TOI 1013.01\""
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"cell_type": "markdown",
|
|
43
|
+
"id": "d69d0c9d-ed1b-4a6c-a8cb-a62cf09b1bc3",
|
|
44
|
+
"metadata": {},
|
|
45
|
+
"source": [
|
|
46
|
+
"### Use a utility function get_mast_tce to get the properties of the candidate and put into a tce."
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"cell_type": "code",
|
|
51
|
+
"execution_count": 3,
|
|
52
|
+
"id": "9be9771e-7a96-4867-8df4-2b603e453ed3",
|
|
53
|
+
"metadata": {},
|
|
54
|
+
"outputs": [
|
|
55
|
+
{
|
|
56
|
+
"data": {
|
|
57
|
+
"text/plain": [
|
|
58
|
+
"[{'period': <Quantity 5.42555479 d>,\n",
|
|
59
|
+
" 'epoch': <Quantity 58493.86798 d>,\n",
|
|
60
|
+
" 'epoch_offset': <Quantity -2400000.5 d>,\n",
|
|
61
|
+
" 'depth': <Quantity 0.01493963>,\n",
|
|
62
|
+
" 'duration': <Quantity 0.15745833 d>,\n",
|
|
63
|
+
" 'target': 'TOI 1013.01'}]"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
"execution_count": 3,
|
|
67
|
+
"metadata": {},
|
|
68
|
+
"output_type": "execute_result"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"source": [
|
|
72
|
+
"tce = utils.get_mast_tce(candidate)\n"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"cell_type": "markdown",
|
|
77
|
+
"id": "4ba5953d-50f5-40ac-9973-4bce4927f039",
|
|
78
|
+
"metadata": {},
|
|
79
|
+
"source": [
|
|
80
|
+
"### Grab the light curve using lightkurve"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"cell_type": "code",
|
|
85
|
+
"execution_count": null,
|
|
86
|
+
"id": "56e7d673-878b-4ebb-9d6d-71b442547a73",
|
|
87
|
+
"metadata": {},
|
|
88
|
+
"outputs": [],
|
|
89
|
+
"source": [
|
|
90
|
+
"lc = lk.search_lightcurve(candidate, sector=33, exptime=120).download()\n",
|
|
91
|
+
"lc.plot()"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"cell_type": "code",
|
|
96
|
+
"execution_count": null,
|
|
97
|
+
"id": "254d0d3f-c1b3-4663-a2c2-38713c6dcb86",
|
|
98
|
+
"metadata": {},
|
|
99
|
+
"outputs": [],
|
|
100
|
+
"source": [
|
|
101
|
+
"#Visualize the transits\n",
|
|
102
|
+
"#Initiate the vetter\n",
|
|
103
|
+
"viz = vet.VizTransits()\n",
|
|
104
|
+
"\n",
|
|
105
|
+
"#Run the vetter on the tce and lightcurve of your choice.\n",
|
|
106
|
+
"viz.run(tce[0], lc, plot=True)"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"cell_type": "markdown",
|
|
111
|
+
"id": "cc645b95-4488-45a1-ab74-a5105f0039ea",
|
|
112
|
+
"metadata": {},
|
|
113
|
+
"source": [
|
|
114
|
+
"## Run the Centroid Vetter\n",
|
|
115
|
+
"The Centroid Vetter is run in the same way. It returns the average offset and significance that it is on the target.\n",
|
|
116
|
+
"You get several plots showing the out of transits, in transit and difference image. The centroids of each are measured using a Gaussian.\n",
|
|
117
|
+
"For the OOT and In-Transit, the centroid is constrained to the central +/-1pixel in box row and column direction.\n",
|
|
118
|
+
"As input, the Centroid Vetter requires a Target Pixel File objects from lightkurve.\n",
|
|
119
|
+
"\n",
|
|
120
|
+
"This example shows no significant offset between the out of transit location and the difference image centroid."
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"cell_type": "code",
|
|
125
|
+
"execution_count": null,
|
|
126
|
+
"id": "85219b48-3ca3-42d2-a0c4-a6aabf2df99b",
|
|
127
|
+
"metadata": {},
|
|
128
|
+
"outputs": [],
|
|
129
|
+
"source": [
|
|
130
|
+
"\n",
|
|
131
|
+
"tpf = lk.search_targetpixelfile(candidate, sector=33, exptime=120).download()\n",
|
|
132
|
+
"cent = vet.Centroid()\n",
|
|
133
|
+
"cent.run(tce[0],tpf, plot=True)"
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"cell_type": "markdown",
|
|
138
|
+
"id": "d02f48c6-9c09-4d06-84cd-7f82ac711b64",
|
|
139
|
+
"metadata": {},
|
|
140
|
+
"source": [
|
|
141
|
+
"## Example 2. An example with a small put possible offset.\n",
|
|
142
|
+
"Here we will do the same thing on TOI 565.01"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"cell_type": "code",
|
|
147
|
+
"execution_count": null,
|
|
148
|
+
"id": "26ac4dd8-600e-4eac-adf4-4536a8057dae",
|
|
149
|
+
"metadata": {},
|
|
150
|
+
"outputs": [],
|
|
151
|
+
"source": [
|
|
152
|
+
"candidate = \"TOI 565.01\"\n",
|
|
153
|
+
"tce = utils.get_mast_tce(candidate)\n",
|
|
154
|
+
"tce"
|
|
155
|
+
]
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"cell_type": "code",
|
|
159
|
+
"execution_count": null,
|
|
160
|
+
"id": "bb624aac-2c6f-4671-b879-766ab8e8e924",
|
|
161
|
+
"metadata": {},
|
|
162
|
+
"outputs": [],
|
|
163
|
+
"source": [
|
|
164
|
+
"lc = lk.search_lightcurve(candidate)[0].download()\n",
|
|
165
|
+
"lc.plot()"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"cell_type": "code",
|
|
170
|
+
"execution_count": null,
|
|
171
|
+
"id": "f9b699d3-22b4-4f0d-a7df-c64421a40445",
|
|
172
|
+
"metadata": {},
|
|
173
|
+
"outputs": [],
|
|
174
|
+
"source": [
|
|
175
|
+
"viz = vet.VizTransits(max_transits=8)\n",
|
|
176
|
+
"viz.run(tce[0],lc, plot=True, )"
|
|
177
|
+
]
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"cell_type": "code",
|
|
181
|
+
"execution_count": null,
|
|
182
|
+
"id": "ce1e2dcc-2ec1-4e85-8278-38f40464541d",
|
|
183
|
+
"metadata": {},
|
|
184
|
+
"outputs": [],
|
|
185
|
+
"source": [
|
|
186
|
+
"#Examine difference images and measure centroids\n",
|
|
187
|
+
"tpf = lk.search_targetpixelfile(candidate)[0].download()\n",
|
|
188
|
+
"cent = vet.Centroid()\n",
|
|
189
|
+
"cent.run(tce[0],tpf,plot=True)"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"cell_type": "code",
|
|
194
|
+
"execution_count": null,
|
|
195
|
+
"id": "c1451eae",
|
|
196
|
+
"metadata": {},
|
|
197
|
+
"outputs": [],
|
|
198
|
+
"source": []
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"metadata": {
|
|
202
|
+
"kernelspec": {
|
|
203
|
+
"display_name": "Python 3 (ipykernel)",
|
|
204
|
+
"language": "python",
|
|
205
|
+
"name": "python3"
|
|
206
|
+
},
|
|
207
|
+
"language_info": {
|
|
208
|
+
"codemirror_mode": {
|
|
209
|
+
"name": "ipython",
|
|
210
|
+
"version": 3
|
|
211
|
+
},
|
|
212
|
+
"file_extension": ".py",
|
|
213
|
+
"mimetype": "text/x-python",
|
|
214
|
+
"name": "python",
|
|
215
|
+
"nbconvert_exporter": "python",
|
|
216
|
+
"pygments_lexer": "ipython3",
|
|
217
|
+
"version": "3.11.3"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"nbformat": 4,
|
|
221
|
+
"nbformat_minor": 5
|
|
222
|
+
}
|