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

Class CheckJpgs

source code


Checks JPG paths in DB and updates them.

Instance Methods [hide private]
 
__init__(self, database='WSA', beginDate=None, endDate=None, versionStr=None, checkDB=False, updateRelDBs=False, outPath=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self) source code
 
checkMasterDb(self, diskData)
Check the DB data against files on disk.
source code
 
getJpegPaths(self)
Create a dictionary of compressed image dates and their dirs.
source code
 
getMasterData(self)
Read multiframeIDs, extNum, fileName, compFile from the master DB.
source code
 
getDbData(self, archive)
Read multiframeIDs, extNum, compFile from the given database.
source code
 
updater(self, database)
Update the given database.
source code

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

Class Variables [hide private]
  isTrialRun = False
Don't update just print statements?
  userName = 'ldservro'
Database user name.
  _databases = []
List of full-paths to databases to update.
  _missingJpgs = set([])
List of FITS files without JPGs.
  _updateEntries = defaultdict(None, {})
Dict of entries that need to be updated.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, database='WSA', beginDate=None, endDate=None, versionStr=None, checkDB=False, updateRelDBs=False, outPath=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • beginDate (int) - First date to process, eg. 20050101.
  • checkDB (bool) - Check the DB for wrong entries of compFile.
  • database (str) - Name of the database to connect to.
  • endDate (int) - Last date to process, eg. 20050131.
  • outPath (str) - Path to directory for produced files
  • updateRelDBs (list) - List of release DBs to update.
  • versionStr (str) - Version number of the data.
Overrides: object.__init__

updater(self, database)

source code 

Update the given database.

Parameters:
  • database (str) - Database to update.