lsst.datarel  14.0+5
Public Member Functions | Public Attributes | List of all members
lsst.datarel.datasetScanner._FormatKey Class Reference
Inheritance diagram for lsst.datarel.datasetScanner._FormatKey:

Public Member Functions

def __init__ (self, spec, typ, munge)
 

Public Attributes

 spec
 
 typ
 
 munge
 

Detailed Description

A key in a path template. Three attributes are provided:

spec
    Formatting spec for the key, e.g. '%(filter)s'.

typ
    key value type; int or str

munge
    A function that takes a key name, key value string and a dictionary.
    This function should return a fresh dictionary including new entries
    derived from the given key, value, and existing entries. The
    _mungeStr and _mungeInt functions are examples.

The documentation for this class was generated from the following file: