Package helpers :: Module UpdateDetectionTables :: Class DetectionUpdater
[hide private]

Class DetectionUpdater

source code


Updates the detection tables.

Nested Classes [hide private]
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
_onRun(self)
Updates the database.
source code
 
_onException(self)
Only successfully completed tables are included in the ProgrammeCurationHistory, so success should always be True.
source code
 
_parseSchemas(self, progList)
Returns, for the given programme list, the table schemas.
source code
int
calcNParts(self)
Returns: Number of parts to split the table update into.
source code
 
setUpParameters(self, part, nParts)
Prepares data for table update.
source code
 
updateTable(self, table)
Perform specific update for this class to the given detection table.
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]
  _autoCommit = True
Should this curation task auto-commit database transactions?
  _isPersistent = True
Should this curation task try to re-open broken database connections?
  comment = 'Updating detection tables.'
Default ArchiveCurationHistory comment.
  tableSet = set(['Astrometry', 'Photometry', 'Raw'])
Tables to include.
  firstProg = None
First programme (for resuming interruptions).
  lastProg = None
For re-doing earlier programmes following an interruption.

Inherited from wsatools.DbConnect.CuSession.CuSession: archive, cuEventID, cuNum, 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 

Updates the database.

Overrides: wsatools.DbConnect.CuSession.CuSession._onRun

_onException(self)

source code 

Only successfully completed tables are included in the ProgrammeCurationHistory, so success should always be True.

Overrides: wsatools.DbConnect.CuSession.CuSession._onException

Note: This will lead to a misleading log note if there are errors.

calcNParts(self)

source code 
Returns: int
Number of parts to split the table update into.

updateTable(self, table)

source code 

Perform specific update for this class to the given detection table.

Parameters:
  • table (schema.Table) - Schema for detection table to update.