ConfigSubset¶
-
class
lsst.daf.butler.
ConfigSubset
(other=None, validate=True, mergeDefaults=True, searchPaths=None)¶ Bases:
lsst.daf.butler.Config
Config representing a subset of a more general configuration.
Subclasses define their own component and when given a configuration that includes that component, the resulting configuration only includes the subset. For example, your config might contain
schema
if it’s part of a global config and that subset will be stored. Ifschema
can not be found it is assumed that the entire contents of the configuration should be used.Default values are read from the environment or supplied search paths using the default configuration file name specified in the subclass. This allows a configuration class to be instantiated without any additional arguments.
Additional validation can be specified to check for keys that are mandatory in the configuration.
Parameters: - other :
Config
orstr
ordict
Argument specifying the configuration information as understood by
Config
- validate :
bool
, optional If
True
required keys will be checked to ensure configuration consistency.- mergeDefaults :
bool
, optional If
True
defaults will be read and the supplied config will be combined with the defaults, with the supplied valiues taking precedence.- searchPaths :
list
ortuple
, optional Explicit additional paths to search for defaults. They should be supplied in priority order. These paths have higher priority than those read from the environment in
ConfigSubset.defaultSearchPaths()
.
- other :