Package wsatools :: Module FitsToDb :: Class FitsReader
[hide private]

Class FitsReader

source code


Reads the headers of a selection of FITS files, executing a series of specified tasks, as defined by the list of DbUpdater objects supplied on initialisation. Invoke processFitsFiles() to initiate the job.


To Do: Test on more than one task at a time.

Instance Methods [hide private]
 
__init__(self, taskList)
Compiles a complete list of FITS files for every supplied DbUpdater task and notes as to which tasks need to be performed on which files.
source code
 
processFitsFiles(self)
Goes through the list of FITS files, opens them, and performs the set of tasks assigned to it.
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, taskList)
(Constructor)

source code 

Compiles a complete list of FITS files for every supplied DbUpdater task and notes as to which tasks need to be performed on which files.

Parameters:
  • taskList (list(DbUpdater)) - A list of DbUpdater tasks to perform.
Overrides: object.__init__