Package invocations :: Package monitoring :: Module CheckIngests :: Class CheckIngests
[hide private]

Class CheckIngests

source code


Check if metadata ingests where successful.

Nested Classes [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: IngCuError

Instance Methods [hide private]
 
__init__(self, curator='rsc', database='WSA', beginDate=False, endDate=False, outPath=False, cuNums=False, versionStr=False, excludedIDs=False, checkOmetries=False, isTrialRun=False, comment='A useful comment')
Initialises data members for all database state flags and details for this curation session.
source code
 
getDiskInfo(self)
Read the available dirs on the disks
source code
 
_onRun(self)
Performs all the tasks that define this curation session.
source code

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: __del__, attributesFromArguments, createFileList, createLogFileName, createMonthlyDetSchema, createWorkingDir, getDetTable, getErrorFileName, getMultiframeIDs, getProcessOrder, getProgramIDs, makeSysCmd, removeWorkingDir, run, runSysCmd, setupDetectionTable, testForProgs, translateProgID, writeErrorFiles, writeIngestList

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

Static Methods [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: createFilePrefix

Class Variables [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: beginDateDef, endDateDef, keepWorkDir, reqWorkDir, sysc

Instance Variables [hide private]
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, curator='rsc', database='WSA', beginDate=False, endDate=False, outPath=False, cuNums=False, versionStr=False, excludedIDs=False, checkOmetries=False, isTrialRun=False, comment='A useful comment')
(Constructor)

source code 

Initialises data members for all database state flags and details for this curation session. Writes a database lock and opens a connection. Also initiates a Programme table object.

Parameters:
  • beginDate (str) - First date to process, eg. 20050101.
  • comment (str) - Descriptive comment as to why curation task is being performed.
  • checkOmetries (bool) - Check Astrometry and Phototmetry tables.
  • cuNums (list[int]) - Curation task numbers.
  • curator (str) - Name of curator.
  • database (str) - Name of the database to connect to.
  • endDate (str) - Last date to process, eg. 20050131.
  • excludedIDs (list) - Excluded fileIDs.
  • isTrialRun (bool) - If True, do not perform database modifications.
  • outPath (str) - Log file directory.
  • versionStr (str) - Version number.
Overrides: object.__init__

_onRun(self)

source code 

Performs all the tasks that define this curation session.

Overrides: wsatools.DbConnect.IngCuSession.IngCuSession._onRun
(inherited documentation)