LSSTApplications  11.0-24-g0a022a1,14.0+77,15.0,15.0+1
LSSTDataManagementBasePackage
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.

Definition at line 152 of file datasetScanner.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.datarel.datasetScanner._FormatKey.__init__ (   self,
  spec,
  typ,
  munge 
)

Definition at line 168 of file datasetScanner.py.

168  def __init__(self, spec, typ, munge):
169  self.spec = spec
170  self.typ = typ
171  self.munge = munge
172 
173 
def __init__(self, needLockOnRead=True, data=None, cond=None)
Definition: SharedData.py:53

Member Data Documentation

◆ munge

lsst.datarel.datasetScanner._FormatKey.munge

Definition at line 171 of file datasetScanner.py.

◆ spec

lsst.datarel.datasetScanner._FormatKey.spec

Definition at line 169 of file datasetScanner.py.

◆ typ

lsst.datarel.datasetScanner._FormatKey.typ

Definition at line 170 of file datasetScanner.py.


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