RepoExportBackend

class lsst.daf.butler.RepoExportBackend

Bases: abc.ABC

An abstract interface for data repository export implementations.

Methods Summary

finish() Complete the export process.
saveDatasets(datasetType, run, *datasets, …) Export one or more datasets, including their associated DatasetType and run information (but not including associated dimension information).
saveDimensionData(element, *data) Export one or more dimension element records.

Methods Documentation

finish()

Complete the export process.

saveDatasets(datasetType: lsst.daf.butler.core.datasets.type.DatasetType, run: str, *datasets, collections: Iterable[str] = ())

Export one or more datasets, including their associated DatasetType and run information (but not including associated dimension information).

Parameters:
datasetType : DatasetType

Type of all datasets being exported with this call.

run : str

Run associated with all datasets being exported with this call.

datasets : FileDataset, variadic

Per-dataset information to be exported. FileDataset.formatter attributes should be strings, not Formatter instances or classes.

collections : iterable of str

Extra collections (in addition to run) the dataset should be associated with.

saveDimensionData(element: DimensionElement, *data)

Export one or more dimension element records.

Parameters:
element : DimensionElement

The DimensionElement whose elements are being exported.

data : DimensionRecord (variadic)

One or more records to export.