API reference¶
The complete public API, generated from the source docstrings. Everything below is
importable directly from the top-level cuperiod package (the recommended alias is
cup):
import cuperiod as cup
Entry points¶
The two functions most users need, plus their helpers.
Compute one or more periodograms for a single light curve. |
|
Compute periodograms for many light curves. |
|
Convenience wrapper around |
|
Coerce a user input into a |
Light curves & inputs¶
Containers for the data, and the column/domain mapping that ingests heterogeneous tables.
A single band's time series. |
|
Several bands (filters) of the same star, for the multi-band methods. |
|
Selects the time/value/error/band columns of a light-curve table. |
|
Brightness domain of a light curve's value column. |
Results¶
What a run returns.
A computed periodogram for a single light curve and method. |
|
A single periodogram peak. |
|
Several methods' periodograms for one light curve, keyed by method name. |
Settings¶
Per-method tuning models (see Tuning: settings & grids).
Settings for the generalized Lomb-Scargle (GLS) periodogram. |
|
Settings for the box least squares (BLS) search. |
|
Settings for phase dispersion minimization (PDM). |
|
Settings for the conditional-entropy (CE) period search. |
|
Settings for the multiharmonic Analysis of Variance (MHAOV) periodogram. |
|
Settings for the string-length (Lafler-Kinman / Dworetsky) period search. |
|
Settings for the transit least squares (TLS) search. |
|
Settings for batch processing of many light curves. |
Grids¶
Trial frequency/period grids and their builders (see Tuning: settings & grids).
A trial grid in either the frequency or period domain. |
|
Build a uniform frequency grid, matching astropy |
|
Build a log-spaced period grid (general-purpose; BLS uses its own segments). |
Method registry¶
Introspect and look up the registered methods.
Introspection records for every registered method. |
|
Sorted names of all registered methods. |
|
Look up a registered method by name. |
|
Introspection record for a registered method. |
Devices & GPU¶
GPU discovery, memory management, and batch worker sizing (see Backends & performance).
Return a |
|
A snapshot of one CUDA device's identity and free memory. |
|
Suggest a GPU worker count from probed free memory and a footprint estimate. |
|
Return cupy's cached device + pinned blocks to the driver. |
Batch¶
The batch run summary (see Batch processing).
Outcome of a |
Exceptions¶
All cuPeriod errors derive from CuPeriodError, so a single except catches the
family; each also derives from the closest built-in (ValueError/RuntimeError).
Base class for every error raised by cuPeriod. |
|
A requested compute backend is not importable or has no usable device. |
|
A required light-curve column could not be resolved unambiguously. |
|
A light curve has too few finite points or no usable time baseline. |
|
The requested periodogram method name is not in the registry. |