lsst.obs.base  19.0.0-8-g608b899+3
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.obs.base.gen2to3.filePathParser.FilePathParser Class Reference

Public Member Functions

def __init__
 
def fromMapping
 
def __call__
 

Public Attributes

 keys
 
 regex
 

Static Public Attributes

 TEMPLATE_RE = re.compile(r"\%\((?P<name>\w+)\)[^\%]*?(?P<type>[idrs])")
 

Detailed Description

A callable object that extracts Gen2 data IDs from filenames
corresponding to a particular Gen2 DatasetType.

External code should use the `fromMapping` method to construct instances.

Parameters
----------
keys : `dict`
    Dictionary mapping Gen2 data ID key to the type of its associated
    value.
regex : regular expression object
    Regular expression pattern with named groups for all data ID keys.

Definition at line 31 of file filePathParser.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.obs.base.gen2to3.filePathParser.FilePathParser.__init__ (   self,
  keys 
)

Definition at line 45 of file filePathParser.py.

Member Function Documentation

◆ __call__()

def lsst.obs.base.gen2to3.filePathParser.FilePathParser.__call__ (   self,
  filePath 
)

Definition at line 112 of file filePathParser.py.

◆ fromMapping()

def lsst.obs.base.gen2to3.filePathParser.FilePathParser.fromMapping (   cls,
  mapping 
)

Definition at line 54 of file filePathParser.py.

Member Data Documentation

◆ keys

lsst.obs.base.gen2to3.filePathParser.FilePathParser.keys

Definition at line 46 of file filePathParser.py.

◆ regex

lsst.obs.base.gen2to3.filePathParser.FilePathParser.regex

Definition at line 47 of file filePathParser.py.

◆ TEMPLATE_RE

lsst.obs.base.gen2to3.filePathParser.FilePathParser.TEMPLATE_RE = re.compile(r"\%\((?P<name>\w+)\)[^\%]*?(?P<type>[idrs])")
static

Definition at line 51 of file filePathParser.py.


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