Package invocations :: Package monitoring :: Module CheckDetections
[hide private]

Module CheckDetections

source code

Checks if the number of detections in the database correspond to the number of detections in the catalogue files.


Author: E. Sutorius

Organization: WFAU, IfA, University of Edinburgh

Functions [hide private]
 
usage() source code
dict(int: int)
getCounts(archive, detTable, detTableSuffixes, multiframeID)
Get number of detections for given MultiframeID.
source code
dict(int: str)
getFiles(archive, programmeID, dateVersStr='', deprFlag=False)
Get all multiframeIDs and their corresponding catalogue names for the given programmeID.
source code
dict(int: int)
getDetectorInfo(archive, multiframeID)
Get the number of rows (=detections) via the FITS keyword.
source code
Variables [hide private]
  __package__ = 'invocations.monitoring'
Function Details [hide private]

getCounts(archive, detTable, detTableSuffixes, multiframeID)

source code 

Get number of detections for given MultiframeID.

Parameters:
  • archive (DbSession) - Connection to database to query.
  • detTable (str) - The detection table name.
  • detTableSuffixes (str) - List of detection table suffixes.
  • multiframeID (int) - The multiframe ID.
Returns: dict(int: int)
Dictionary containing the number of detections per extension.

getFiles(archive, programmeID, dateVersStr='', deprFlag=False)

source code 

Get all multiframeIDs and their corresponding catalogue names for the given programmeID.

Parameters:
  • archive (DbSession) - Connection to database to query.
  • programmeID (int) - The programme ID.
  • dateVersStr (str) - Date and version of search.
  • deprFlag (bool) - Flag if also deprecated files should be checked.
Returns: dict(int: str)
Dictionary containing the catalogue name for every multiframe ID.

getDetectorInfo(archive, multiframeID)

source code 

Get the number of rows (=detections) via the FITS keyword.

Parameters:
  • archive (DbSession) - Connection to database to query.
  • multiframeID (int) - The multiframe ID.
Returns: dict(int: int)
Dictionary containing number of table rows for each extension.