pymepix.config package¶
Submodules¶
pymepix.config.defaultconfig module¶
- class pymepix.config.defaultconfig.DefaultConfig[source]¶
Bases:
TimepixConfig
Provides default values for DAC parameters
- dacCodes()[source]¶
Accessor for the dac parameters
- Returns:
The value for every DAC parameter
- Return type:
list
oftuples
(<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.sophyconfig module¶
- class pymepix.config.sophyconfig.SophyConfig(filename)[source]¶
Bases:
TimepixConfig
,Logger
This class provides functionality for interpreting a .spx config file from SoPhy.
- dacCodes()[source]¶
Accessor for the dac parameters
- Returns:
The value for every DAC parameter
- Return type:
list
oftuples
(<dac code>, <value>)
- property filename¶
- property maskPixels¶
Accessor for the mask pixels [0, 1]
- Returns:
The information which pixels are to be masked
- Return type:
numpy.ndarray
(256, 256)
- 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.
- 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)