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

Class CheckCatalogues

source code


Checks catalogue files for errors in primary key values.

Nested Classes [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: IngCuError

Instance Methods [hide private]
 
__init__(self, curator='rsc', database='WSA', beginDate='0', endDate='0', versionStr=False, programmeList=False, outPath=False, isTrialRun=False, comment='A useful comment')
Initialises data members for all database state flags and details for this curation session.
source code
 
_onRun(self)
run
source code
 
getFileCatPaths(self, dateVersStr)
Get all science pix and cat file paths.
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]
  isVerbose = False
hash(x)

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='0', endDate='0', versionStr=False, programmeList=False, outPath=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.
  • curator (str) - Name of curator.
  • database (str) - Name of the database to connect to.
  • endDate (str) - Last date to process, eg. 20050131.
  • outPath (str) - Directory where data is written to.
  • programmeList (list(str)) - Only process data for given programmes (accepts keywords 'all', 'ns' (non-survey), 'ukidss' (all 5 main surveys)).
  • versionStr (str) - Version number of the data.
Overrides: object.__init__

_onRun(self)

source code 

run

Overrides: wsatools.DbConnect.IngCuSession.IngCuSession._onRun