Reference / API

Datasets

Dataset(meta[, light_curves])

A dataset of light curves.

LightCurveMetadata(meta_row)

Class to handle the metadata for a light curve in a dataset.

HDF5Dataset(path, meta)

Dataset corresponding to an HDF5 file on disk.

HDF5LightCurves(dataset)

Class to interface with light curves in an HDF5 file on disk.

Loading a dataset

from_light_curves(light_curves)

Load a dataset from a list of light curves.

from_observations(meta, observations)

Load a dataset from a table of all of the observations.

from_avocado(name, **kwargs)

Load a dataset from avocado.

read_hdf5(path[, in_memory])

Read a dataset from an HDF5 file

Manipulating light curves

parse_light_curve(light_curve[, parse_meta, ...])

Parse a light curve and convert it to lcdata format.

to_sncosmo(light_curve)

Convert an lcdata light curve to sncosmo format.

generate_object_id()

Generate a random unique object ID for a light curve.

Schemas

schema.verify_schema(schema)

Verify a schema

schema.get_default_value(schema, key[, count])

Get the default value for a key in a schema.

schema.find_alias(names, aliases)

Given a list of names, find the one that matches a list of aliases.

schema.format_table(table, schema[, verbose])

Format a table with a given schema.

Utilities

utils.download_file(url, path[, filesize])

Download a file with a tqdm progress bar.

utils.download_zenodo(record, basedir)

Download a record from Zenodo.