Skip to main content

lightcurves

This is the lightcurves repository. Check it out: Open In Colab

See here for scientific application of this code: https://pos.sissa.it/395/868

lc.py

Initialize a LightCurve object based on time, flux and flux_error. Study its Bayesian block representation (based on Scargle et al. 2013 https://ui.adsabs.harvard.edu/abs/2013arXiv1304.2818S/abstract ).
Characterize flares (start, peak, end time) with the HOP algorithm (following Meyer et al. 2019 https://ui.adsabs.harvard.edu/abs/2019ApJ...877...39M/abstract ). There are four different methods to define flares (baseline, half, flip, sharp) as illustrated in the Jupyter Notebook.

hop.py

Initialize a Hopject to consider parameters of an individual flare.

lc_set

Initialize a (large) sample of light curves to study the distribution of flare parameters whithin that sample.

Reference

If you use this code please cite:
Wagner, S. M., Burd, P., Dorner, D., et al. 2021, PoS, ICRC2021, 868 https://ui.adsabs.harvard.edu/abs/2022icrc.confE.868W/abstract

Metadata

Release files for lightcurves 1.1.1

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

Source distribution (sdist)

Source distribution for lightcurves 1.1.1
File Size Uploaded
lightcurves-1.1.1.tar.gz 587.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lightcurves 1.1.1
File Interpreter ABI Platform
lightcurves-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 608.0 kB

Release files / lightcurves-1.1.1.tar.gz

Download URL lightcurves-1.1.1.tar.gz
Size 587.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5b39a7c46d10c226afc9935511b522a19f90968fcd454c6a3bf59777718d471f
BLAKE2b-256 checksum
How to use checksums
2c467a5ee3088fe792a13e0363d6288cf98df33586c2e0845e196a49e44d9f9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 22, 2025.

Transparency log

Release files / lightcurves-1.1.1-py3-none-any.whl

Download URL lightcurves-1.1.1-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ebef40a8ff24fe47591c6273443db7ea5f563f0ce351bf3091889b9c0d15bc9
BLAKE2b-256 checksum
How to use checksums
72d25cba9b72e0e62243912fc3af1ad45da0f0b8cde786605678509d495b8b0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 22, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.0.1

1 release file

1.0

1 release file

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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