parameters: (self)
docstring: Show the range of Pt. in a scan
          :return:
docstring_summary: Show the range of Pt. in a scan
          :return:
docstring_tokens: Show the range of Pt . in a scan : return :
function: def show_scan_pt_list(self):
          """ Show the range of Pt. in a scan
          :return:
          """
          # Get parameters
          status, inp_list = gutil.parse_integers_editors([self.ui.lineEdit_exp, self.ui.lineEdit_run])
          if status is False:
              self.pop_one_button_dialog(inp_list)
              return
          else:
              exp_no = inp_list[0]
              scan_no = inp_list[1]
  
          status, ret_obj = self._myControl.get_pt_numbers(exp_no, scan_no)
  
          # Form message
          if status is False:
              # Failed to get Pt. list
              error_message = ret_obj
              self.pop_one_button_dialog(error_message)
          else:
              # Form message
              pt_list = sorted(ret_obj)
              num_pts = len(pt_list)
              info = 'Exp %d Scan %d has %d Pt. ranging from %d to %d.\n' % (exp_no, scan_no, num_pts,
                                                                             pt_list[0], pt_list[-1])
              num_miss_pt = pt_list[-1] - pt_list[0] + 1 - num_pts
              if num_miss_pt > 0:
                  info += 'There are %d Pt. skipped.\n' % num_miss_pt
  
              self.pop_one_button_dialog(info)
function_tokens: def show_scan_pt_list ( self ) : # Get parameters status , inp_list = gutil . parse_integers_editors ( [ self . ui . lineEdit_exp , self . ui . lineEdit_run ] ) if status is False : self . pop_one_button_dialog ( inp_list ) return else : exp_no = inp_list [ 0 ] scan_no = inp_list [ 1 ] status , ret_obj = self . _myControl . get_pt_numbers ( exp_no , scan_no ) # Form message if status is False : # Failed to get Pt. list error_message = ret_obj self . pop_one_button_dialog ( error_message ) else : # Form message pt_list = sorted ( ret_obj ) num_pts = len ( pt_list ) info = 'Exp %d Scan %d has %d Pt. ranging from %d to %d.\n' % ( exp_no , scan_no , num_pts , pt_list [ 0 ] , pt_list [ - 1 ] ) num_miss_pt = pt_list [ - 1 ] - pt_list [ 0 ] + 1 - num_pts if num_miss_pt > 0 : info += 'There are %d Pt. skipped.\n' % num_miss_pt self . pop_one_button_dialog ( info )