An intermediate base for `BuilderNode` classes that are provided as
direct inputs to a `RepoWalker`, and generally correspond to exactly one
Gen2 dataset type.
Parameters
----------
template : `str`
The complete Gen2 template to be matched (not just the template for
one path element).
keys : `dict` [`str`, `type`]
A mapping from Gen2 data ID key to the type of its value.
Definition at line 104 of file builders.py.
PathElementHandler lsst.obs.base.gen2to3.repoWalker.builders.BuilderNode.build |
( |
|
self, |
|
|
PathElementParser |
parser, |
|
|
Dict[str, type] |
allKeys, |
|
|
Dict[str, type] |
cumulativeKeys, |
|
|
*Optional[re.Pattern] |
fileIgnoreRegEx, |
|
|
Optional[re.Pattern]
|
dirIgnoreRegEx |
|
) |
| |
|
inherited |
Transform this node in the build tree into a corresponding
`PathElementHandler`, recursing to any children.
Must be called after `prune`.
Parameters
----------
parser : `PathElementParser`
An object that matches the path element the new handler is
responsible for and extracts a (partial) Gen2 data ID from it.
allKeys : `dict` [`str`, `type`]
A mapping from Gen2 data ID key to the type of its value. Will
contain all keys that may be extracted by the given parser, and
possibly others.
cumulativeKeys : `dict` [`str`, `type`], optional
A dictionary containing key strings and types for Gen2 data ID keys
that have been extracted from previous path elements for this
template, including those extracted by ``parser``.
Returns
-------
handler : `PathElementHandler`
A new handler object.
Reimplemented in lsst.obs.base.gen2to3.repoWalker.builders.BuilderTree, lsst.obs.base.gen2to3.repoWalker.builders.BuilderDuplicateInputs, lsst.obs.base.gen2to3.repoWalker.builders.BuilderPrunedTree, lsst.obs.base.gen2to3.repoWalker.builders.BuilderTargetInput, and lsst.obs.base.gen2to3.repoWalker.builders.BuilderSkipInput.
Definition at line 74 of file builders.py.