A Python package for interpolating astrophysical light curves using Gaussian Processes (more ML models to come!) in order to compute frequency-domain and standard time domain data products.
Project description
Logo design by Elizabeth Jarboe
STELA (Sampling Time for Even Lightcurve Analysis) Toolkit is a Python package for interpolating astrophysical light curves using Gaussian Processes (more ML models to come!) in order to compute frequency-domain and standard time domain data products.
Documentation
Full documentation is available at:
https://collinlewin.github.io/stela-toolkit/
The documentation includes:
- Overview of all features
- Tutorial notebook with GP modeling and lag analysis
- Gaussian Process guide with detailed Bayesian background
- Module reference for all functions and classes
Features
- Gaussian Process regression for all ML skill levels! Built-in normality testing and transformations to help reach normality, kernel selection, hyperparameter training, and much more.
- Frequency-domain products: power and cross spectra, coherence, lag-frequency and lag-energy spectra
- Time-domain lag analysis using ICCF and GP-based cross-correlation
- Simulation of synthetic light curves with custom underlying power spectra and injected lags
- Preprocessing: outlier removal methods, polynomial detrending, trimming, etc.
- Convenient plotting in every class using .plot()
Requirements
STELA Toolkit requires Python ≥ 3.8 and the following core packages:
- numpy ≥ 1.20, <2.0
- scipy ≥ 1.7
- matplotlib ≥ 3.5
- astropy ≥ 5.0
- torch ≥ 1.10
- gpytorch ≥ 1.9
- statsmodels ≥ 0.13
You can install all dependencies automatically when installing the package (see below).
Installation
You can install the package using pip:
pip install stela-toolkit
If you are installing directly from the GitHub repository:
git clone https://github.com/collinlewin/STELA-Toolkit.git
cd STELA-Toolkit
pip install .
You can verify the installation by running:
import stela_toolkit
print(stela_toolkit.__version__)
If this runs without an error, you're good to go!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stela_toolkit-0.4.0.tar.gz.
File metadata
- Download URL: stela_toolkit-0.4.0.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
85950e3c1d9364e1bbd519e8639865416db9ce0fdc3806f1b6802eb32dd7a4ba
|
|
| MD5 |
d01d23c9d2c010fb396b02433a5eb8a8
|
|
| BLAKE2b-256 |
8abd3c81ab41a85a8eb52665d2fae9ba540337f63d0ee1dc954ff0757fb7692f
|
File details
Details for the file stela_toolkit-0.4.0-py3-none-any.whl.
File metadata
- Download URL: stela_toolkit-0.4.0-py3-none-any.whl
- Upload date:
- Size: 52.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2c1313d42d30b4472ae0ffb451b7a8f5f7234e1a28cc4a09c0d0a2e3d2fe93e
|
|
| MD5 |
01d807eb866e44277a70692f7ccbd4a0
|
|
| BLAKE2b-256 |
acc7bb7b50d33f94a3f7ea0aca7beb06237fa7830f721c23ec703f01bffff7f2
|