PYME.Acquire.HDFSpooler module

class PYME.Acquire.HDFSpooler.EventLogger(spool, hdf5File)

Event logging backend for hdf/pytables data storage

Parameters:

spool : instance of HDFSpooler.Spooler

The spooler to ascociate this logger with

hdf5File : pytables hdf file

The open HDF5 file to write to

Methods

logEvent(eventName[, eventDescr, timestamp]) Log an event.

Create a new Events table.

Methods

logEvent(eventName[, eventDescr, timestamp]) Log an event.
logEvent(eventName, eventDescr='', timestamp=None)

Log an event.

Parameters:

eventName : string

short event name - < 32 chars and should be shared by events of the same type.

eventDescr : string

description of the event - additional, even specific information packaged as a string (<255 chars). This is commonly used to store parameters - e.g. z positions, and should be both human readable and easily parsed.

In addition to the name and description, timing information is recorded

for each event.

class PYME.Acquire.HDFSpooler.Spooler(filename, frameSource, frameShape, complevel=6, complib='zlib', **kwargs)

Bases: PYME.Acquire.Spooler.Spooler

Responsible for the mechanics of spooling to a pytables/hdf file.

Methods

OnFrame(sender, frameData, **kwargs) Called on each frame
StopSpool() Stop spooling and close file
OnFrame(sender, frameData, **kwargs)

Called on each frame

StopSpool()

Stop spooling and close file