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 | Variables
lsst.pipe.tasks.selectImages Namespace Reference

Classes

class  DatabaseSelectImagesConfig
 
class  BaseExposureInfo
 
class  BaseSelectImagesTask
 
class  SelectStruct
 
class  WcsSelectImagesTask
 

Functions

def _extractKeyValue
 

Variables

list __all__ = ["BaseSelectImagesTask", "BaseExposureInfo", "WcsSelectImagesTask", "DatabaseSelectImagesConfig"]
 

Function Documentation

def lsst.pipe.tasks.selectImages._extractKeyValue (   dataList,
  keys = None 
)
private
Extract the keys and values from a list of dataIds

The input dataList is a list of objects that have 'dataId' members.
This allows it to be used for both a list of data references and a
list of ExposureInfo

Definition at line 138 of file selectImages.py.

139 def _extractKeyValue(dataList, keys=None):
140  """Extract the keys and values from a list of dataIds
141 
142  The input dataList is a list of objects that have 'dataId' members.
143  This allows it to be used for both a list of data references and a
144  list of ExposureInfo
145  """
146  assert len(dataList) > 0
147  if keys is None:
148  keys = sorted(dataList[0].dataId.keys())
149  keySet = set(keys)
150  values = list()
151  for data in dataList:
152  thisKeys = set(data.dataId.keys())
153  if thisKeys != keySet:
154  raise RuntimeError("DataId keys inconsistent: %s vs %s" % (keySet, thisKeys))
155  values.append(tuple(data.dataId[k] for k in keys))
156  return keys, values
157 

Variable Documentation

list lsst.pipe.tasks.selectImages.__all__ = ["BaseSelectImagesTask", "BaseExposureInfo", "WcsSelectImagesTask", "DatabaseSelectImagesConfig"]

Definition at line 28 of file selectImages.py.