# PYME.localization.remFitBuf module¶

class PYME.localization.remFitBuf.BufferManager

Bases: object

Keeps track of data sources and buffering over individual fitTask instances

Methods

 updateBuffers(md, dataSourceModule, bufferLen) Update the various buffers.
updateBuffers(md, dataSourceModule, bufferLen)

Update the various buffers.

class PYME.localization.remFitBuf.CameraInfoManager

Bases: object

Manages camera information such as dark frames, variance maps, and flatfielding

Methods

 correctImage(md, img) getDarkMap(md) Returns the dark map specified in the supplied metadata, from cache if possible. getFlatfieldMap(md) Returns the flatfield map specified in the supplied metadata, from cache if possible The flatfield is a (floating point) value which is multiplied with the image to correct variations in response. getVarianceMap(md) Returns the pixel variance map specified in the supplied metadata, from cache if possible.
correctImage(md, img)
getDarkMap(md)

Returns the dark map specified in the supplied metadata, from cache if possible. The dark map is in units of camera counts

getFlatfieldMap(md)

Returns the flatfield map specified in the supplied metadata, from cache if possible The flatfield is a (floating point) value which is multiplied with the image to correct variations in response. It should (usually) have a mean value of 1.

getVarianceMap(md)

Returns the pixel variance map specified in the supplied metadata, from cache if possible. The variance map should be in units of photoelectrons.

PYME.localization.remFitBuf.createFitTaskFromTaskDef(task)

The parsed task definition. As the task definition will need to be parsed by the worker before we get here, we expect this to take the form of a python dictionary.
class PYME.localization.remFitBuf.fitResult(task, results, driftResults)
class PYME.localization.remFitBuf.fitTask(dataSourceID, frameIndex, metadata, dataSourceModule=None, resultsURI=None)

 __call__([gui, taskQueue]) calcSigma(md, data) calcThreshold()
classmethod calcSigma(md, data)
calcThreshold()
fitMod
is_splitter_fit
PYME.localization.remFitBuf.tqPopFcn(workerN, NWorkers, NTasks)