PYME.IO.HTTPSpooler module

class PYME.IO.HTTPSpooler.Spooler(filename, frameSource, frameShape, **kwargs)

Bases: Spooler

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

FlushBuffer()
OnFrame(sender, frameData, **kwargs)

Callback which should be called on every frame

StartSpool()

Perform protocol ‘frame -1’ tasks, log start metadata, then connect to the frame source.

cleanup()

over-ride to do any cleanup

finalise()

Over-ride in derived classes to do any spooler specific tidy up - e.g. sending events to server

finished()

over-ride in derived classes to indicate when buffers flushed

getURL()
PYME.IO.HTTPSpooler.exists(seriesName)
PYME.IO.HTTPSpooler.genSequenceID(filename='')
PYME.IO.HTTPSpooler.getReducedFilename(filename)