Skip to main content

TESS TCE Data Validation (DV) Reports Fast Lookup

PyPI Badge

A Python package / webapp that provides a fast lookup of TESS threshold crossing event (TCE) data validation reports from SPOC (2 minute cadence) pipeline and TESS-SPOC (FFI / HLSP) pipeline.

For SPOC, it also provides a summary of key TCE parameters, e.g. looking up all the TCEs for pi Men / TIC 261136679:

sample lookup result screenshot

Installation

Install the package into your Python environment:

# include the web application
pip install tess-dv-fast"[webapp,build_db]"

# Or just the core package:
# * build_db is needed to create the database.
pip install tess-dv-fast"[build_db]"

For development: clone the git repository and install the package in editable mode:

# at project root
pip install -e ."[webapp,build_db,dev]"

Download the required data and build the local database:

python -m tess_dv_fast.tess_dv_fast_build --update --minimal_db
python -m tess_dv_fast.tess_spoc_dv_fast_build --update

Start the webapp:

flask --app tess_dv_fast.tess_dv_fast_webapp run

You are done! The app will be available at http://localhost:5000/tces .

Notes:

  • To change the port of the webapp, add -p <port_number> to the flask command.

  • The package downloads the data from MAST and creates local SQLite databases under ./data/tess_dv_fast/ by default. To use a different base directory, set TESS_DB_BASE_PATH before running the build commands, for example:

    export TESS_DB_BASE_PATH=/path/to/base
    

    The resulting database files will then be located at $TESS_DB_BASE_PATH/data/tess_dv_fast/tess_tcestats.db (SPOC) and $TESS_DB_BASE_PATH/data/tess_dv_fast/tess_spoc_tcestats.db (TESS-SPOC).

  • For SPOC, the SQLite database contains a minimal set of data needed to support the webapp. Optionally, you could create a database with all the TCE parameters provided by MAST by omitting --minimal_db.

  • It is tested on Python 3.10, but should be compatible with any recent Python 3 versions.

Adding new data

The package relies on TCE bulk download data provided by MAST. When new data is available, the local database needs to be updated.

Update the database with:

python -m tess_dv_fast.tess_dv_fast_build --update --minimal_db
python -m tess_dv_fast.tess_spoc_dv_fast_build --update

It will download all relevant URLs listed on MAST.

Deploying the app to cloud environments

Metadata

Release files for tess-dv-fast 0.12.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tess-dv-fast 0.12.2
File Size Uploaded Provenance Actions
tess_dv_fast-0.12.2.tar.gz 29.4 kB Without provenance Details for tess_dv_fast-0.12.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tess-dv-fast 0.12.2
File Interpreter ABI Platform Actions
tess_dv_fast-0.12.2-py3-none-any.whl Python 3 none any Details for tess_dv_fast-0.12.2-py3-none-any.whl

Total release size: 60.4 kB

Release files / tess_dv_fast-0.12.2.tar.gz

Download URL tess_dv_fast-0.12.2.tar.gz
Size 29.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bf540e1aeb2d2d46fbb0d421de5c8fc621852cd58ecdb3670d571ec420795789
BLAKE2b-256 checksum
How to use checksums
f04ce93bf16bfec9b276572a1af7d71687c75236cdc8fe125623718ee375491a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / tess_dv_fast-0.12.2-py3-none-any.whl

Download URL tess_dv_fast-0.12.2-py3-none-any.whl
Size 31.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3abc330397fba90355fcdf04dd55174bae63e4fb9eef09828c0f2028089cfa0
BLAKE2b-256 checksum
How to use checksums
874546c20ac21ac3424f418ad079a5aa506bb09815e8d9214b2292f230270bdc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Security for tess-dv-fast 0.12.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page