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

Module FinaliseFlatFileIngest

source code

Prepare database for CU4 ingests following a completed batch of CU3 ingests (any arbitrary set, say, a month or semester of data). It combines the following tasks:


Author: Eckhard Sutorius

Organization: WFAU, IfA, University of Edinburgh

Classes [hide private]
  FileHistoryDataFiller
Utility class for calculating properties from the Provenance.
  KeyboardInterruptError
  PoolIndexError
  UpdateFits
Functions [hide private]
 
calculatestar(args) source code
 
removeIncorrectProvenance(archive)
Removes incorrect rows from Provenance due to reprocessing deprecations.
source code
 
transferIllumTables(sysc, isUKLight=True, isTrialRun=False)
Transfer new illumination tables.
source code
 
updateIllumEntries(archive, sysc, cal, dateStr, versStr)
Update the database entries for illumFile.
source code
Variables [hide private]
  __package__ = 'invocations.cu0'
Function Details [hide private]

transferIllumTables(sysc, isUKLight=True, isTrialRun=False)

source code 

Transfer new illumination tables.

Parameters:
  • sysc (SystemConstants) - Initialised SystemConstants object.
  • isUKLight (bool) - Use UKLight instead of JANET.
  • isTrialRun (bool) - If True, don't transfer files, just list what is available.

updateIllumEntries(archive, sysc, cal, dateStr, versStr)

source code 

Update the database entries for illumFile.

Parameters:
  • archive (DBSession object) - The DB connection.
  • sysc (SystemConstants) - Initialised SystemConstants object.
  • cal (ObsCalendar object) - The observation calendar.
  • dateStr (str) - The month or day for which data is updated.
  • versStr (str) - The version for which data is updated.