parameters: (self, exp_number, scan_number, pt_number=None)
return_statement: return ret_value
docstring: get PeakInfo instance, which including
          :param exp_number: experiment number
          :param scan_number:
          :param pt_number:
          :return: peakprocesshelper.PeakProcessRecord or None
docstring_summary: get PeakInfo instance, which including
          :param exp_number: experiment number
          :param scan_number:
          :param pt_number:
          :return: peakprocesshelper.PeakProcessRecord or None
docstring_tokens: get PeakInfo instance which including : param exp_number : experiment number : param scan_number : : param pt_number : : return : peakprocesshelper . PeakProcessRecord or None
function: def get_peak_info(self, exp_number, scan_number, pt_number=None):
          """
          get PeakInfo instance, which including
          :param exp_number: experiment number
          :param scan_number:
          :param pt_number:
          :return: peakprocesshelper.PeakProcessRecord or None
          """
          # Check for type
          assert isinstance(exp_number, int), 'Experiment %s must be an integer but not of type %s.' \
                                              '' % (str(exp_number), type(exp_number))
          assert isinstance(scan_number, int), 'Scan number %s must be an integer but not of type %s.' \
                                               '' % (str(scan_number), type(scan_number))
          assert isinstance(pt_number, int) or pt_number is None, 'Pt number %s must be an integer or None, but ' \
                                                                  'it is of type %s now.' % (str(pt_number),
                                                                                             type(pt_number))
  
          # construct key
          if pt_number is None:
              p_key = (exp_number, scan_number)
          else:
              p_key = (exp_number, scan_number, pt_number)
  
          # Check for existence
          if p_key in self._myPeakInfoDict:
              ret_value = self._myPeakInfoDict[p_key]
          else:
              ret_value = None
  
          return ret_value
function_tokens: def get_peak_info ( self , exp_number , scan_number , pt_number = None ) : # Check for type assert isinstance ( exp_number , int ) , 'Experiment %s must be an integer but not of type %s.' '' % ( str ( exp_number ) , type ( exp_number ) ) assert isinstance ( scan_number , int ) , 'Scan number %s must be an integer but not of type %s.' '' % ( str ( scan_number ) , type ( scan_number ) ) assert isinstance ( pt_number , int ) or pt_number is None , 'Pt number %s must be an integer or None, but ' 'it is of type %s now.' % ( str ( pt_number ) , type ( pt_number ) ) # construct key if pt_number is None : p_key = ( exp_number , scan_number ) else : p_key = ( exp_number , scan_number , pt_number ) # Check for existence if p_key in self . _myPeakInfoDict : ret_value = self . _myPeakInfoDict [ p_key ] else : ret_value = None return ret_value