A parallel curation session for transfer/ingest CUs 1 to 4.
|
__init__(self,
cuNum=-9999,
curator=' rsc ' ,
comment=' A useful comment ' ,
reqWorkDir=False,
keepWorkDir=False,
database=' WSA ' ,
userName=' ldservro ' ,
autoCommit=False,
isTrialRun=False)
Initialises data members for all database state flags and details for
this curation session. |
source code
|
|
|
|
|
_connectToDb(self,
maxTries=100)
Connect to the database. |
source code
|
|
|
|
|
_disconnectFromDb(self)
Disconnect from the database. |
source code
|
|
|
|
int
|
_getNextID(self,
attrName,
tableName,
where='
' )
Obtain next available ID number in the db for a given ID attribute. |
source code
|
|
str
|
|
|
_onException(self)
Tidy up run tasks specific to this CU following an exception. |
source code
|
|
|
_onRun(self)
Performs all the tasks that define this curation session. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
createFileList(self,
fileListPath=None)
Create a list of FITS files to be ingest into the database from the
list supplied in the file at the given path. |
source code
|
|
str
|
createLogFileName(self,
cuEventIDs=None)
Create the standard log file name for the current cuEventID or the
given list of CU event IDs. |
source code
|
|
|
createMonthlyDetSchema(self,
schemaName,
detTableList,
month,
ReDo=False)
Copy original schema to monthly schema. |
source code
|
|
|
|
str
|
|
dict(str:int), dict(str:str)
|
|
str
|
|
|
getMultiframeIDs(self,
dateVersStr)
Get the multiframeIDs from FlatFileLookUp for a given dateVersStr. |
source code
|
|
Utilities.Ratings
|
getProcessOrder(self,
progIDs,
include=[ ' all ' ] ,
progOrder=[ ] )
Process programmes in given order, append/include all others from the
list of all programme IDs. |
source code
|
|
|
|
|
removeWorkingDir(self)
Remove the temporary working directory. |
source code
|
|
|
|
list(str)
|
|
|
setupDetectionTable(self,
surveyName,
monthSet,
ReDo) |
source code
|
|
|
testForProgs(self,
obsName)
Test if programme is one of the main VISTA surveys. |
source code
|
|
int
|
translateProgID(self,
pIDkeys,
progTranslation,
knownTranslations={ } )
Translates a programme ID string into a programme ID number. |
source code
|
|
|
writeErrorFiles(self,
notIngList)
Writes the list of not ingestable files into a list in the corrupt
directory for further investigation. |
source code
|
|
|
writeIngestList(self)
Writes the list of FITS files to ingest to file
"filelist.dat" in the work directory in a 'imagefile
catfile num' format for the C++ code. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|