GenericCalibPars Namespace Reference


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 $"


Function Documentation

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  ) 

Prints attributes

Definition at line 125 of file GenericCalibPars.py.

def GenericCalibPars::msgh (   self,
  i = 3 
)

Returns message header

Definition at line 142 of file GenericCalibPars.py.

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 
)

Returns pedestals

Definition at line 313 of file GenericCalibPars.py.

def GenericCalibPars::pixel_status (   self,
  vers = None 
)

Returns pixel_status

Definition at line 320 of file GenericCalibPars.py.

def GenericCalibPars::pixel_rms (   self,
  vers = None 
)

Returns pixel_rms

Definition at line 327 of file GenericCalibPars.py.

def GenericCalibPars::pixel_gain (   self,
  vers = None 
)

Returns pixel_gain

Definition at line 334 of file GenericCalibPars.py.

def GenericCalibPars::pixel_mask (   self,
  vers = None 
)

Returns pixel_mask

Definition at line 341 of file GenericCalibPars.py.

def GenericCalibPars::pixel_bkgd (   self,
  vers = None 
)

Returns pixel_bkgd

Definition at line 348 of file GenericCalibPars.py.

def GenericCalibPars::common_mode (   self,
  vers = None 
)

Returns common_mode

Definition at line 355 of file GenericCalibPars.py.

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 
)

Returns ndim

Definition at line 377 of file GenericCalibPars.py.

def GenericCalibPars::shape (   self,
  ctype = gu.PEDESTALS 
)

Returns shape

Definition at line 388 of file GenericCalibPars.py.

def GenericCalibPars::size (   self,
  ctype = gu.PEDESTALS 
)

Returns size

Definition at line 399 of file GenericCalibPars.py.

def GenericCalibPars::status (   self,
  ctype = gu.PEDESTALS 
)

Returns status

Definition at line 410 of file GenericCalibPars.py.


Variable Documentation

string GenericCalibPars::__version__ = "$Revision: 12953 $" [static]

Definition at line 60 of file GenericCalibPars.py.


Generated on 19 Dec 2016 for PSANAmodules by  doxygen 1.4.7