LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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