TracePixel

Documentation for the attributes and methods in the TracePixel subclass.

slap2_utils.utils.trace_pixel.TracePixel()

A class used to represent and manipulate a single trace pixel from a SLAP2 data file.

slap2_utils.utils.trace_pixel.fileName

The name of the file to be loaded.

Type:

str

slap2_utils.utils.trace_pixel.superPixelId

The identifier for the superpixel.

Type:

int

slap2_utils.utils.trace_pixel.superPixelNumPixels

The number of pixels in the superpixel.

Type:

int

slap2_utils.utils.trace_pixel.superPixelNumPixelsSelected

The number of selected pixels in the superpixel.

Type:

int

slap2_utils.utils.trace_pixel.byteOffsets

A list of byte offsets for data extraction.

Type:

list

slap2_utils.utils.trace_pixel.lineIdxs

A list of line indices for data extraction.

Type:

list

slap2_utils.utils.trace_pixel.data

The loaded data for the trace pixel.

Type:

list

slap2_utils.utils.trace_pixel.isLoaded

A flag indicating whether the data is loaded.

Type:

bool

slap2_utils.utils.trace_pixel.firstCycleOffsetBytes

The offset for the first cycle in bytes.

Type:

int

slap2_utils.utils.trace_pixel.numCycles

The number of cycles.

Type:

int

slap2_utils.utils.trace_pixel.bytesPerCycle

The number of bytes per cycle.

Type:

int

slap2_utils.utils.trace_pixel.linesPerCycle

The number of lines per cycle.

Type:

int

slap2_utils.utils.trace_pixel.y

An unspecified variable, initialized to -1.

Type:

int

Descriptions for methods:

__init__() :

Initialize the fields with values.

rtype:

Self with populated fields.

load(hMemmap=None) :

Loads the data for the trace pixel from the specified memory-mapped file, which is given as an input (hMemmap).

rtype:

Self with edited data field and isLoaded changed to true.