chip2logic_cfg_matrix
- spidr4.tpx4tools.chip2logic_cfg_matrix(configblob)[source]
Converts a pixel configuration as returned by GetConfigPixels to a 2D array (rows x cols).
- Parameters:
configblob – numpy array containing pixel configuration data
- Returns:
A numpy array shape=(512,448), dtype=u8
- matrix_response=tpx4.GetConfigPixels(
rpc.ChipIndex(idx=0)
)
pixelconfig=chip2logic_matrix(matrix_response.config)
print(pixel_config[5,5])