Source code for pymepix.config.defaultconfig

# This file is part of Pymepix
#
# In all scientific work using Pymepix, please reference it as
#
# A. F. Al-Refaie, M. Johny, J. Correa, D. Pennicard, P. Svihra, A. Nomerotski, S. Trippel, and J. Küpper:
# "PymePix: a python library for SPIDR readout of Timepix3", J. Inst. 14, P10003 (2019)
# https://doi.org/10.1088/1748-0221/14/10/P10003
# https://arxiv.org/abs/1905.07999
#
# Pymepix is free software: you can redistribute it and/or modify it under the terms of the GNU
# General Public License as published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with this program. If not,
# see <https://www.gnu.org/licenses/>.

import numpy as np
from .timepixconfig import TimepixConfig


[docs] class DefaultConfig(TimepixConfig): """Provides default values for DAC parameters"""
[docs] def biasVoltage(self): """Returns bias Voltage""" return None
[docs] def dacCodes(self): """Accessor for the dac parameters Returns ---------- :obj:`list` of :obj:`tuples` (<dac code>, <value>) The value for every DAC parameter""" codes = [ (1, 128), # TPX3_IBIAS_PREAMP_ON [0-255] (2, 8), # TPX3_IBIAS_PREAMP_OFF [0- 15] (3, 128), # TPX3_VPREAMP_NCAS [0-255] (4, 5), # TPX3_IBIAS_IKRUM [0-255] (5, 128), # TPX3_VFBK [0-255] (6, 420), # TPX3_VTHRESH_FINE [0-511] (7, 6), # TPX3_VTHRESH_COARSE [0- 15] (8, 84), # TPX3_IBIAS_DISCS1_ON [0-255] (9, 8), # TPX3_IBIAS_DISCS1_OFF [0- 15] (10, 128), # TPX3_IBIAS_DISCS2_ON [0-255] (11, 8), # TPX3_IBIAS_DISCS2_OFF [0- 15] (12, 192), # TPX3_IBIAS_PIXELDAC [0-255] (13, 128), # TPX3_IBIAS_TPBUFIN [0-255] (14, 128), # TPX3_IBIAS_TPBUFOUT [0-255] (15, 128), # TPX3_VTP_COARSE [0-255] (16, 256), # TPX3_VTP_FINE [0-511] (17, 128), # TPX3_IBIAS_CP_PLL [0-255] (18, 128), ] # TPX3_PLL_VCNTRL [0- ] return codes
@property def maskPixels(self): """Returns mask pixels""" return np.zeros(shape=(256, 256), dtype=np.uint8) @property def testPixels(self): """Returns test pixels""" return None @property def thresholdPixels(self): """Returns threshold pixels""" return np.zeros(shape=(256, 256), dtype=np.uint8)