pymepix.config package

Submodules

pymepix.config.defaultconfig module

class pymepix.config.defaultconfig.DefaultConfig[source]

Bases: pymepix.config.timepixconfig.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>)
maskPixels

Returns mask pixels

testPixels

Returns test pixels

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: pymepix.config.timepixconfig.TimepixConfig, pymepix.core.log.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>)
filename
loadFile(filename)[source]
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]
testPixels

Accessor for the test pixels

Returns:
Return type:numpy.ndarray (256, 256)
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.ABC

biasVoltage()[source]

Returns bias Voltage

dacCodes()[source]

Returns an iterator with format daccode,value

maskPixels

Returns mask pixels

testPixels

Returns test pixels

thresholdPixels

Returns threshold pixels

Module contents