Classes | |
class | GenericCalibPars |
Functions | |
def | __init__ |
def | reset_dicts |
def | print_attrs |
def | msgh |
def | msgw |
def | constants_default |
def | constants_calib |
def | constants_dcs |
def | constants |
def | pedestals |
def | pixel_status |
def | pixel_rms |
def | pixel_gain |
def | pixel_mask |
def | pixel_bkgd |
def | common_mode |
def | retrieve_shape |
def | ndim |
def | shape |
def | size |
def | status |
Variables | |
string | __version__ = "$Revision: 12953 $" |
def GenericCalibPars::__init__ | ( | self, | ||
cbase, | ||||
calibdir, | ||||
group, | ||||
source, | ||||
runnum, | ||||
pbits = 255 , |
||||
fnexpc = None , |
||||
fnrepo = None , |
||||
tsec = None | ||||
) |
Definition at line 79 of file GenericCalibPars.py.
def GenericCalibPars::reset_dicts | ( | self | ) |
Re-sets dictionaries with status and constants for cash
Definition at line 117 of file GenericCalibPars.py.
def GenericCalibPars::print_attrs | ( | self | ) |
def GenericCalibPars::msgh | ( | self, | ||
i = 3 | ||||
) |
def GenericCalibPars::msgw | ( | self | ) |
Definition at line 151 of file GenericCalibPars.py.
def GenericCalibPars::constants_default | ( | self, | ||
ctype | ||||
) |
Returns numpy array with default constants Logic: 0) if detector is undefined and base constants are missing - return None 1) if constants for common mode - return default numpy array 2) if base size of calibration constants is 0 (for variable image size cameras) - return None (they can be loaded from file only! 3) for PEDESTALS, PIXEL_STATUS, PIXEL_BKGD return numpy array of **zeros** for base shape and dtype 4) for all other calibration types return numpy array of **ones** for base shape and dtype
Definition at line 156 of file GenericCalibPars.py.
def GenericCalibPars::constants_calib | ( | self, | ||
ctype | ||||
) |
Returns numpy array with calibration constants for specified type Logic: a) if detector is undefined and base constants are missing - return None 0) if constants are available in cash (self.dic_constants) - return them 1) if calib file is not found: - return result from constants_default(ctype) 2) try to load numpy array from file -- exception - return result from constants_default(ctype) 3) if constants for common mode - return numpy array as is 4) if base size==0 - return numpy array as is 5) if base size>0 and loaded size is not equal to the base size - return result from constants_default(ctype) 6) reshape numpy array to the base shape and return.
Definition at line 195 of file GenericCalibPars.py.
def GenericCalibPars::constants_dcs | ( | self, | ||
ctype = gu.PEDESTALS , |
||||
vers = None | ||||
) |
Returns numpy array with calibration constants of specified type from DCS @see :class:`PSCalib.DCStore`, :class:`PSCalib.DCMethods` Parameters ctype : int - enumerated calibration type from :class:`PSCalib.GlobalUtils`, e.g. gu.PIXEL_STATUS
Definition at line 269 of file GenericCalibPars.py.
def GenericCalibPars::constants | ( | self, | ||
ctype, | ||||
vers = None | ||||
) |
Returns numpy array with calibration constants of specified type Parameters vers : int - version number ctype : int - enumerated calibration type from :class:`PSCalib.GlobalUtils`, e.g. gu.PIXEL_STATUS
Definition at line 289 of file GenericCalibPars.py.
def GenericCalibPars::pedestals | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::pixel_status | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::pixel_rms | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::pixel_gain | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::pixel_mask | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::pixel_bkgd | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::common_mode | ( | self, | ||
vers = None | ||||
) |
def GenericCalibPars::retrieve_shape | ( | self | ) |
Retrieve shape, size, and ndim parameters and set them as member data
Definition at line 365 of file GenericCalibPars.py.
def GenericCalibPars::ndim | ( | self, | ||
ctype = gu.PEDESTALS | ||||
) |
def GenericCalibPars::shape | ( | self, | ||
ctype = gu.PEDESTALS | ||||
) |
def GenericCalibPars::size | ( | self, | ||
ctype = gu.PEDESTALS | ||||
) |
def GenericCalibPars::status | ( | self, | ||
ctype = gu.PEDESTALS | ||||
) |
string GenericCalibPars::__version__ = "$Revision: 12953 $" [static] |
Definition at line 60 of file GenericCalibPars.py.