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

stela_toolkit-0.4.2.tar.gz (44.0 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.4.2-py3-none-any.whl (52.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stela_toolkit-0.4.2.tar.gz
  • Upload date:
  • Size: 44.0 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.4.2.tar.gz
Algorithm Hash digest
SHA256 48d15c3e5df11cc29cbe88b1b5ea36abf22335d3f69574d2c9a0cb149f145cfa
MD5 9c4f5d6c6d9e20312dd53bdf304f257c
BLAKE2b-256 3ccd6d17c0bdbc31fc17f80d19c4989e6b7b0a82b3c3a7e1cd9d6a4676efd4f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stela_toolkit-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 52.6 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.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94baf78d41295c164dccaff15ff2f3440be133051ef70b322ffe611384b010cd
MD5 31b125b1957f6343dc7b800ff7834c55
BLAKE2b-256 4b08ed82363a0b79b823d864c0036ee6e7c2aa3c6e672e7309a97088141d0ad3

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