FileTemplates¶
-
class
lsst.daf.butler.FileTemplates(config, default=None)¶ Bases:
objectCollection of
FileTemplatetemplates.Parameters: - config :
FileTemplatesConfigorstr 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(entity)Retrieve the FileTemplateassociated with the dataset type.Methods Documentation
-
getTemplate(entity)¶ Retrieve the
FileTemplateassociated with the dataset type.If the lookup name corresponds to a component the base name for the component will be examined if the full component name does not match.
Parameters: - entity :
DatasetType,DatasetRef, orStorageClass Instance to use to look for a corresponding template. A
DatasetTypename or aStorageClassname will be used depending on the supplied entity. Priority is given to aDatasetTypename.
Returns: - template :
FileTemplate Template instance to use with that dataset type.
Raises: - KeyError
No template could be located for this Dataset type.
- entity :
- config :