Skip to main content

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

Python PyPI IMG_7099 (1)

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 ≥ 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

stela_toolkit-0.3.0.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stela_toolkit-0.3.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file stela_toolkit-0.3.0.tar.gz.

File metadata

  • Download URL: stela_toolkit-0.3.0.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for stela_toolkit-0.3.0.tar.gz
Algorithm Hash digest
SHA256 cb2f93d238cd967c3e427f690b606f7e19a95cb174f8e0523b7805a2981bdac9
MD5 7d77a77d2b39572742793de6d7c408d4
BLAKE2b-256 9269b6e0cf5e1c25f542dd0e4145b4fc78a27ebcb722be9440876d584732d536

See more details on using hashes here.

File details

Details for the file stela_toolkit-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: stela_toolkit-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for stela_toolkit-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f38ec0c79b5a8585e49cd4af4de855f4031ad0a879379cf6b71529827fac6874
MD5 192680b92c5cbc9b05f1efccbd971cbd
BLAKE2b-256 08bc0053d4869fc073efd8c06c8ad0bc2aaf6040a7fc3d167a59f512c16deb84

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page