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
-
dacCodes
()[source]¶ Accessor for the dac parameters
Returns: The value for every DAC parameter Return type: list
oftuples
(<dac code>, <value>)
-
maskPixels
¶ Returns mask pixels
-
testPixels
¶ Returns test pixels
-
thresholdPixels
¶ Returns threshold pixels
-
pymepix.config.load_config module¶
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.
-
dacCodes
()[source]¶ Accessor for the dac parameters
Returns: The value for every DAC parameter Return type: list
oftuples
(<dac code>, <value>)
-
filename
¶
-
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.
-
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)
-