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

Class FindBrokenJpegs

source code


Find JPGs that are not correctly created.

Nested Classes [hide private]

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: IngCuError

Instance Methods [hide private]
 
__init__(self, curator='rsc', database='WSA', minFileSize=False, beginDate=False, endDate=False, versionStr=False, diskList=False, deleteJpegs=False, cu2Listing=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 each CU requsted.
source code
 
getProgName(self, fileNamePart) source code
 
removeJpgs(self, brokenJpegs) source code
 
searchJpegs(self, dateVersStr) source code
 
getPcounts(self, startDateStr, endDateStr, versionStr) source code
 
getSearchDates(self) 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]
  minFileSizeDef = 100000

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', minFileSize=False, beginDate=False, endDate=False, versionStr=False, diskList=False, deleteJpegs=False, cu2Listing=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 (int) - First date to process, eg. 20050101.
  • comment (str) - Descriptive comment as to why curation task is being performed.
  • cu2Listing (bool) - Create CU2-readable output file.
  • deleteJpegs (bool) - If True, delete JPGs with file sizes smaller than minFileSize.
  • diskList (list(str)) - List of RAID disk paths including the archive name, eg. '/disk01/wsa'.
  • endDate (int) - Last date to process, eg. 20050131.
  • isTrialRun (bool) - If True, do not perform database modifications.
  • minFileSize (int) - File size below which reprocessing is needed.
  • versionStr (str) - Version number of the data or 'all' or 'last'.
Overrides: object.__init__

_onRun(self)

source code 

Run each CU requsted.

Overrides: wsatools.DbConnect.IngCuSession.IngCuSession._onRun