PYME.IO.HDFSpooler module¶
- class PYME.IO.HDFSpooler.Spooler(filename, frameSource, frameShape, complevel=6, complib='zlib', **kwargs)¶
Bases:
Spooler
Responsible for the mechanics of spooling to a pytables/hdf file.
Create a new spooler.
- Parameters
- scopePYME.Acquire.microscope.microscope object
The microscope providing the data
- filenamestring
The file into which to spool
- frameSourcedispatch.Signal object
A source of frames we can subscribe to. It should implement a “connect” method allowing us to register a callback and then call the callback with the frame data in a “frameData” kwarg.
- protocolPYME.Acquire.protocol.TaskListProtocol object
The acquisition protocol
- guiUpdateCallbackfunction
a function to call when the spooling GUI needs updating
- OnFrame(sender, frameData, **kwargs)¶
Called on each frame
- finalise()¶
close files