Package helpers :: Module ProductAssigner :: Class ProductAssigner
[hide private]

Class ProductAssigner

source code


Finds best multiframeID for a product.

Nested Classes [hide private]
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
_onRun(self)
Assign products.
source code
 
assignProducts(self, productOfID, componentsOfProd) source code
 
findOBmultiframe(self, compInfo, selectInfo, prod) source code
 
propagateDown(self) source code

Inherited from wsatools.DbConnect.CuSession.CuSession: __del__, __init__, logBrokenFile, run

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wsatools.DbConnect.CuSession.CuSession: logException

Class Variables [hide private]
  cuNum = 27
Curation task number.
  useOBs = True
  dateRange = DateRange(begin=<mx.DateTime.DateTime object for '...
Nights to stack.
  dirDate = '20140908'
Output dir date.
  maxProdID = None
Maximum product ID of stack to be produced.
  minProdID = None
Minimum product ID of stack to be produced.
  releaseNum = None
Release number of stacks to create.
  reqProdIDs = None
List of product IDs for stacks to be created.
  selType = 'OB'
Default selection type
  assignSingOnly = False
hash(x)
  notDepOnly = False
hash(x)
  numStack = -99999999
  reprocess = False
hash(x)
  useDeep = False
hash(x)
  _tmpWorkDir = None
hash(x)
  deepProductTable = None
A DataFactory.View of the contents of the database table Required{Product} for current programme and product type.
  existingProducts = None
List of details of products already ingested in the database.
  prodInfo = None
The contents of the database table Required{Product} for current programme and product type.
  pType = None
Product type currently being curated.
  reqProdsOfType = None
Dictionary of lists of product IDs referenced by product type, giving the products required to be created.
  newProductsOfType = None
Dictionary of ProductDetails for each type of product successfully created.

Inherited from wsatools.DbConnect.CuSession.CuSession: archive, comment, cuEventID, curator, eTypes, isDayStampedLog, onlyNonSurveys, onlySurveys, programme, programmeID, resultsFilePathName, shareFileID, sysc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_onRun(self)

source code 

Assign products.

Overrides: wsatools.DbConnect.CuSession.CuSession._onRun

Class Variable Details [hide private]

dateRange

Nights to stack.

Value:
DateRange(begin=<mx.DateTime.DateTime object for '1753-01-01 00:00:00.\
00' at 3a88a08>, end=<mx.DateTime.DateTime object for '9999-12-31 00:0\
0:00.00' at 3aafe88>)

reqProdsOfType

Dictionary of lists of product IDs referenced by product type, giving the products required to be created. This may be preset by the calling task or else is automatically determined from the database.

Value:
None