pymepix.config package

Submodules

pymepix.config.defaultconfig module

class pymepix.config.defaultconfig.DefaultConfig[source]

Bases: TimepixConfig

Provides default values for DAC parameters

biasVoltage()[source]

Returns bias Voltage

dacCodes()[source]

Accessor for the dac parameters

Returns:

The value for every DAC parameter

Return type:

list of tuples (<dac code>, <value>)

property maskPixels

Returns mask pixels

property testPixels

Returns test pixels

property thresholdPixels

Returns threshold pixels

pymepix.config.load_config module

pymepix.config.load_config.load_config(config_name='default.yaml')[source]

pymepix.config.sophyconfig module

class pymepix.config.sophyconfig.SophyConfig(filename)[source]

Bases: TimepixConfig, Logger

This class provides functionality for interpreting a .spx config file from SoPhy.

biasVoltage()[source]

Returns bias Voltage

dacCodes()[source]

Accessor for the dac parameters

Returns:

The value for every DAC parameter

Return type:

list of tuples (<dac code>, <value>)

property filename
loadFile(filename)[source]
property maskPixels

Accessor for the mask pixels [0, 1]

Returns:

The information which pixels are to be masked

Return type:

numpy.ndarray (256, 256)

parseDAC(xmlstring)[source]

Reads and formats DAC parameters

parsePixelConfig(zip_file, file_names)[source]

Reads and formats the pixel data from config file.

Notes

The spx config file saves the pixel information row by row while the timepix camera expects the information column wise.

saveMask()[source]
property testPixels

Accessor for the test pixels

Return type:

numpy.ndarray (256, 256)

property thresholdPixels

Accessor for the pixel thresholds [0, 15]

Returns:

The threshold information for each pixel

Return type:

numpy.ndarray (256, 256)

pymepix.config.sophyconfig.main()[source]

pymepix.config.timepixconfig module

class pymepix.config.timepixconfig.TimepixConfig[source]

Bases: ABC

abstract biasVoltage()[source]

Returns bias Voltage

abstract dacCodes()[source]

Returns an iterator with format daccode,value

abstract property maskPixels

Returns mask pixels

abstract property testPixels

Returns test pixels

abstract property thresholdPixels

Returns threshold pixels

Module contents