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

Class CreateMfIdJpegList

source code


Reads multiframeIDs from the database and compiles file lists depending on existing JPGs.

Instance Methods [hide private]
 
__init__(self, database='WSA', checkDB=False, outPath=False, subDir=False, jpgPath=False, raidDisks=False, checkDeprecated=False, beginDate=None, endDate=None, versionStr=None, inFileName=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
run(self) source code
 
createJpegDict(self)
Create a dictionary of compressed image dates and their dirs.
source code
 
checkForJpgs(self)
Read filename,multiframeIDs from the given database, where no compName is given.
source code
 
getMfIDs(self)
Read filename,multiframeIDs from the given database.
source code
 
readMfidsFromFile(self)
Read filename,multiframeIDs from a file.
source code

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

Static Methods [hide private]
 
updateJpegDict(jpegDict, jpgDir)
Update the jpgDict with files from the given directory.
source code
 
updateProcessedData(jpgedFiles, aDict, outFile)
Write data into file.
source code
 
write2file(dbFile, jpgDict)
type dbFile: File object
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, database='WSA', checkDB=False, outPath=False, subDir=False, jpgPath=False, raidDisks=False, checkDeprecated=False, beginDate=None, endDate=None, versionStr=None, inFileName=None)
(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 missing entries of compFile.
  • checkDeprecated (bool) - Check the DB for deprecated entries of compFile.
  • database (str) - Name of the database to connect to.
  • endDate (int) - Last date to process, eg. 20050131.
  • inFileName (str) - File containing multiframeID info.
  • jpgPath (str) - Directory where 'products/jpgs' will reside.
  • outPath (str) - Path to directory for produced files
  • raidDisks (list) - List of disks if not in standard search path
  • subDir (str) - Fits subdirectory, eg. 'products/stacks'
  • versionStr (str) - Version number of the data.
Overrides: object.__init__