Package invocations :: Package cu0 :: Module FinaliseFlatFileIngest :: Class FileHistoryDataFiller
[hide private]

Class FileHistoryDataFiller

source code


Utility class for calculating properties from the Provenance.

Nested Classes [hide private]
  FrameInfo
FrameInfo(mjdObs, detNDit, detDit, frameType)
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
run(self, archive, semesterList=None, version=None, updateCats=False, numThreads=1)
Updates OB pawprints and MetaData tables with data calculated from tracing back the history of the file through all normal obs.
source code
 
updateTotalExpTime(self, startDate, endDate)
Update total exposure time of OB images
source code
 
selectExistingDbData(self, version, startDate, endDate)
Select data from database where non-default values already exist.
source code
 
updateDb(self, mfID, cfID)
Updates DB with MEANMJD values
source code
 
updateFits(self, mfID, filePathName)
Updates DB and catalogue headers with MEANMJD values
source code
 
updateFitsP(self, records, numThreads)
Updates DB and catalogue headers with MEANMJD values
source code

Inherited from wsatools.DbConnect.CuSession.CuSession: __del__, __init__, logBrokenFile

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

Static Methods [hide private]

Inherited from wsatools.DbConnect.CuSession.CuSession: logException

Class Variables [hide private]
  isVerbose = False
hash(x)
  archive = None
DbSession connection to database.
  reDo = False
Redo existing data
  updateCats = False
Update cats for existing updated DB values

Inherited from wsatools.DbConnect.CuSession.CuSession: comment, cuEventID, cuNum, curator, eTypes, isDayStampedLog, onlyNonSurveys, onlySurveys, programme, programmeID, resultsFilePathName, shareFileID, sysc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

run(self, archive, semesterList=None, version=None, updateCats=False, numThreads=1)

source code 

Updates OB pawprints and MetaData tables with data calculated from tracing back the history of the file through all normal obs.

Overrides: wsatools.DbConnect.CuSession.CuSession.run

selectExistingDbData(self, version, startDate, endDate)

source code 

Select data from database where non-default values already exist.

Parameters:
  • version ()
  • startDate ()
  • endDate ()

updateDb(self, mfID, cfID)

source code 

Updates DB with MEANMJD values

Parameters:
  • mfID (int) - MultiframeID of combiframe for which provenan.
  • cfID (int) - MultiframeID of confidence frame.

updateFits(self, mfID, filePathName)

source code 

Updates DB and catalogue headers with MEANMJD values

Parameters:
  • mfID (int) - MultiframeID of combiframe for which provenan.
  • filePathName (str) - Full path to the FITS file.

To Do: when is this used

updateFitsP(self, records, numThreads)

source code 

Updates DB and catalogue headers with MEANMJD values

Parameters:
  • records (list) - List of mfID, cfID, filePathName
  • numThreads (int) - Number of threads used in multiprocessing