Package helpers :: Module SpotDuplicateMFs :: Class DuplicateSpotter
[hide private]

Class DuplicateSpotter

source code


Identifies properties of duplicate multiframe entries in the database.

Nested Classes [hide private]
    Nested Errors and Exceptions

Inherited from wsatools.DbConnect.CuSession.CuSession: CuError

Instance Methods [hide private]
 
_prepare(self)
Find duplicate multiframes.
source code
 
updateDb(self, mfid, fitsFile, filePathName)
Analyses FITS files.
source code

Inherited from wsatools.FitsToDb.DbUpdater: getErrorLog, getFileList

Inherited from wsatools.DbConnect.CuSession.CuSession: __del__, __init__, logBrokenFile, run

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from wsatools.DbConnect.CuSession.CuSession: logException

Class Variables [hide private]
  numConsistentMFIDS = 0
  _recordSet = 'multiframeID > 0 AND fileName != \'none\' ORDER ...
Defines the standard set of records to update.

Inherited from wsatools.DbConnect.CuSession.CuSession: archive, comment, cuEventID, cuNum, curator, eTypes, isDayStampedLog, onlyNonSurveys, onlySurveys, programme, programmeID, resultsFilePathName, shareFileID, sysc

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_prepare(self)

source code 

Find duplicate multiframes.

Overrides: wsatools.FitsToDb.DbUpdater._prepare

updateDb(self, mfid, fitsFile, filePathName)

source code 

Analyses FITS files.

Parameters:
  • mfid (int) - MultiframeID in database.
  • fitsFile (pyfits.HDUList) - Open FITS file containing the data for this mfid.
  • filePathName (str) - Full path to the FITS file.
Overrides: wsatools.FitsToDb.DbUpdater.updateDb

Class Variable Details [hide private]

_recordSet

Defines the standard set of records to update.

Value:
'multiframeID > 0 AND fileName != \'none\' ORDER BY multiframeID ASC'