TESS Aperture Photometry Pollution eStimator
Note: this module is not yet fully developed. For commercial use, please wait for v1.0.0. It is expected to be released by the end of 2026.
Description
A python module that calculates a contamination factor in the aperture region of a TPF based on the relative flux of the background stars and the target.
Full documentation is available here.
Installation
Python >=3.10 is required. More information about dependencies can be found here.
Prerequisites
These are the packages that support Python >=3.10:
numpy(>=1.21.2): to make all calculationsscipy(>=1.7.2): to integrate the gaussian functionastropy(>=5.0): to build data used in this moduleastroquery(>=0.4.6): to find stars in the target's regionmatplotlib(>=3.5): to plot the resultslightkurve(>=2.0): to fetch and load TPF files
Install with pip install tessapps.
Example
A TPF is needed to run this module. Here is an example with HAT-P-1:
import tessapps as tapps
import tessapps.search_parameters_to_tpf as tspt
tpf = tspt.tpf_finder(TIC=346338552, sector=84, exptime=120)
contamination, error = tapps.run(tpf, result=True)
>>> The background contributes (54.370 ± 0.194)% of the total flux in the aperture region.
The first number is the contamination factor, and the second is its error. More information about usage in here.
Authors
Leonidas Liponis, Physicist (Aristotle University of Thessaloniki)
License
TESSapps © 2026 by Leonidas Liponis is licensed under CC BY-NC-SA 4.0.
Links
PyPI page: https://pypi.org/project/tessapps
Codeberg page: https://codeberg.org/leolip128/tessapps
Email (for contact): lliponis (at) physics (dot) auth (dot) gr
AI Disclosure
No LLMs were used in the making of this project. All code was generated and verified by humans, so it will only contain human-made mistakes. All commits made by bots will be refused, and commits made by humans will be checked: published code should be fully understandable by the authors.
To-Do list
- add description
- redo the examples since they reference the flux instead of the contamination factor
- add the scoring function
- add more stuff in this to-do list
Metadata
Release files for tessapps 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tessapps-0.7.0.tar.gz | 6.8 MB | Without provenance | Details for tessapps-0.7.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tessapps-0.7.0-py3-none-any.whl | Python 3 | none | any | Details for tessapps-0.7.0-py3-none-any.whl |
Total release size: 6.8 MB
Release files / tessapps-0.7.0.tar.gz
| Download URL | tessapps-0.7.0.tar.gz |
|---|---|
| Size | 6.8 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25a14f968b41eaa5aa604780c46549250497b6ffbd240e1e6997d89d44f0cd79
|
|
BLAKE2b-256 checksum How to use checksums |
1ed6f9f82e61456ae20285173a7bc9cbe1270b07a4876f15e57c203fd9a2da3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / tessapps-0.7.0-py3-none-any.whl
| Download URL | tessapps-0.7.0-py3-none-any.whl |
|---|---|
| Size | 18.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67259c8664e78986a304ef37c64c69f39a1923f6915b53f4e551c09fdd7c3692
|
|
BLAKE2b-256 checksum How to use checksums |
d780eb8e8ac9ddd28cf188cbf8fed0c38591d5f75558fea5c751e7deda564a53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Security for tessapps 0.7.0
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.