LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Public Member Functions | |
def | __init__ |
def | walk |
Private Attributes | |
_formatKeys | |
_pathComponents | |
A hierarchical scanner for paths matching a template, optionally also restricting visited paths to those matching a list of dataId rules.
Definition at line 206 of file datasetScanner.py.
def lsst.datarel.datasetScanner.HfsScanner.__init__ | ( | self, | |
template | |||
) |
Build an FsScanner for given a path template. The path template should be a Python string with named format substitution specifications, as used in mapper policy files. For example: deepCoadd-results/%(filter)s/%(tract)d/%(patch)s/calexp-%(filter)s-%(tract)d-%(patch)s.fits Note that a key may appear multiple times. If it does, the value for each occurrence should be identical (the formatting specs must be identical). Octal, binary, hexadecimal, and floating point formats are not supported.
Definition at line 210 of file datasetScanner.py.
def lsst.datarel.datasetScanner.HfsScanner.walk | ( | self, | |
root, | |||
rules = None |
|||
) |
Generator that descends the given root directory in top-down fashion, matching paths corresponding to the template and satisfying the given rule list. The generator yields tuples of the form (path, dataId), where path is a dataset file name relative to root, and dataId is a key value dictionary identifying the file.
Definition at line 275 of file datasetScanner.py.
|
private |
Definition at line 229 of file datasetScanner.py.
|
private |
Definition at line 230 of file datasetScanner.py.