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
Classes | Functions
lsst.daf.butlerUtils.mapping Namespace Reference

Classes

class  Mapping
 
class  ImageMapping
 
class  ExposureMapping
 
class  CalibrationMapping
 
class  DatasetMapping
 

Functions

def _formatMap
 

Function Documentation

def lsst.daf.butlerUtils.mapping._formatMap (   ch,
  k,
  datasetType 
)
private
Convert a format character into a Python type.

Definition at line 206 of file mapping.py.

207 def _formatMap(ch, k, datasetType):
208  """Convert a format character into a Python type."""
209  if ch in "diouxX":
210  return int
211  elif ch in "eEfFgG":
212  return float
213  elif ch in "crs":
214  return str
215  else:
216  raise RuntimeError("Unexpected format specifier %s"
217  " for field %s in template for dataset %s" %
218  (ch, k, datasetType))
219