Invokes frame metadata ingestion for a given log of files transferred
from the data processing centre.
method: Establish locked DB connectivity; initiate curation objects;
cycle though the transfer log, accumulating individual table metadata in
CSV files. The database bulk ingest from those CSV files and the update
of the curation logs will be done at a later stage.
|
__init__(self,
curator=' rsc ' ,
database=' WSA ' ,
csvSharePath=None,
programmeList=False,
noMfID=False,
ReDo=False,
onlyMfID=False,
excludeFiles=False,
isTrialRun=False,
keepWorkDir=False,
forceComp=False,
isWfauProduct=False,
xferlog=None,
comment=' A useful comment ' )
Initialises data members for all database state flags and details for
this curation session. |
source code
|
|
|
_initFromDB(self)
initialize constants from the DB |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getProgIDs(self)
Reads FITS files to determine the set of programme IDs for the
metadata that will be ingested in this curation event. |
source code
|
|
|
selectFilesByProg(self)
Select files by programme list. |
source code
|
|
|
prepareMfIDlookup(self)
Get Multiframe IDs for processed dates. |
source code
|
|
|
setTableVariables(self)
set the variables dependend of the tables used in this cu |
source code
|
|
|
|
|
writeMfIDs(self)
Write the multiframeIDs into the files. |
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 wsatools.DbConnect.IngCuSession.IngCuSession (private):
_connectToDb ,
_createProgrammeTranslation ,
_disconnectFromDb ,
_getNextCuEventID ,
_getNextID ,
_historyCommentPrefix ,
_onException ,
_prepareDbLock ,
_updateACHComment ,
_updateArchiveCurationHistory ,
_updateProgrammeCurationHistory
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|