Package invocations :: Package cu5 :: Module cu5 :: Class Cu5
[hide private]

Class Cu5

source code


Create library H2-K difference image frame products for given database release number.

Nested Classes [hide private]
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
_onRun(self)
Do CU5.
source code
list(tuple)
_getImageList(self, filterID, progID, lastRun=None)
Obtains the list of attributes for new images of a certain filter for a certain programme since the last run.
source code
defaultdict, int
_pairImages(self, h2Images, kImages)
Produces a list of paired images.
source code
 
_getPrevCU5Info(self) source code
dict(int:int)
_queryLastRuns(self)
Returns: A dictionary containing the cuEventIDs of the last run of this CU for every programme it has been run on, referenced by programmeID.
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 = 5
Curation task number.
  _autoCommit = True
Should this curation task auto-commit database transactions?
  _reqCuEventID = True
In trial run mode is a cuEventID required?
  _useWorkDir = True
Create a temporary work directory.
  dateRange = DateRange(begin=<mx.DateTime.DateTime object for '...
Observation date range to include.
  releaseNum = None
Database release version number.
  ignoreLastRun = False
Ignore the last run CUEventID.
  resumeID = 0
cuEventID of a previous run that has to be resumed.

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 

Do CU5.

Overrides: wsatools.DbConnect.CuSession.CuSession._onRun

_getImageList(self, filterID, progID, lastRun=None)

source code 

Obtains the list of attributes for new images of a certain filter for a certain programme since the last run.

Parameters:
  • filterID (int) - Select images of this filter ID.
  • progID (int) - Select images from this programme ID.
  • lastRun (int) - Select images created since this cuEventID.
Returns: list(tuple)
List of image attributes defined in query.

_pairImages(self, h2Images, kImages)

source code 

Produces a list of paired images.

Parameters:
  • h2Images (list(tuple)) - List of H2 filter images.
  • kImages (list(tuple)) - List of K filter images.
Returns: defaultdict, int
List of paired image file names.

_queryLastRuns(self)

source code 
Returns: dict(int:int)
A dictionary containing the cuEventIDs of the last run of this CU for every programme it has been run on, referenced by programmeID.

Class Variable Details [hide private]

dateRange

Observation date range to include.

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