FileTemplates

class lsst.daf.butler.FileTemplates(config, default=None)

Bases: object

Collection of FileTemplate templates.

Parameters:
config : FileTemplatesConfig or str

Load configuration.

default : str, optional

If not None, a default template to use if no template has been specified explicitly in the configuration.

Methods Summary

getTemplate(datasetTypeName) Retrieve the FileTemplate associated with the dataset type.

Methods Documentation

getTemplate(datasetTypeName)

Retrieve the FileTemplate associated with the dataset type.

Parameters:
datasetTypeName : str

Dataset type name.

Returns:
template : FileTemplate

Template instance to use with that dataset type.

Raises:
KeyError

No template could be located for this Dataset type.