RepoExportBackend¶
-
class
lsst.daf.butler.RepoExportBackend¶ Bases:
abc.ABCAn 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
-
abstract
finish()¶ Complete the export process.
-
abstract
saveDatasets(datasetType: lsst.daf.butler.core.datasets.DatasetType, run: lsst.daf.butler.core.run.Run, *datasets: lsst.daf.butler.core.repoTransfers.FileDataset, 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
Run Run associated with all datasets being exported with this call.
- datasets
FileDataset, variadic Per-dataset information to be exported.
FileDataset.formatterattributes should be strings, notFormatterinstances or classes.- collectionsiterable of
str Extra collections (in addition to
Run.collection) the dataset should be associated with.
- datasetType
-
abstract
saveDimensionData(element: DimensionElement, *data: DimensionRecord)¶ Export one or more dimension element records.
- Parameters
- element
DimensionElement The
DimensionElementwhose elements are being exported.- data
DimensionRecord(variadic) One or more records to export.
- element
-
abstract