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

Class UpdateConfIDs

source code


Update missing confIDs.

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, programme=None, 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
int
updateDB(self, updateList)
Update confID entries in Multiframe.
source code
dict(dict(str:list(str)))
getConfIDs(self)
Read data for conf frames from the given database.
source code
dict(dict(str:str))
getFileNames(self)
Read data for files that are missing confIDs.
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]
str
getCirCpm(fileName, confIdDict)
Read conf frame from FITS file key CIR_CPM.
source code

Inherited from wsatools.DbConnect.IngCuSession.IngCuSession: createFilePrefix

Class Variables [hide private]

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, programme=None, 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.
  • isTrialRun (bool) - If True, do not perform database modifications.
  • programme (str) - Process data for given programme.
  • versionStr (str) - Version number of the data.
Overrides: object.__init__

_onRun(self)

source code 

Run.

Overrides: wsatools.DbConnect.IngCuSession.IngCuSession._onRun

updateDB(self, updateList)

source code 

Update confID entries in Multiframe.

Parameters:
  • updateList () - List containing multiframeID/confID pairs.
Returns: int
Number of updates.

getCirCpm(fileName, confIdDict)
Static Method

source code 

Read conf frame from FITS file key CIR_CPM.

Returns: str
Conf file name

getConfIDs(self)

source code 

Read data for conf frames from the given database.

Returns: dict(dict(str:list(str)))
Date dict of dicts of files and their version/multiframeID.

getFileNames(self)

source code 

Read data for files that are missing confIDs.

Returns: dict(dict(str:str))
Date dict of files and their multiframeID.