parameters: (self)
return_statement: return
docstring: sum over the (selected) scan's detector counts by ROI
          :return:
docstring_summary: sum over the (selected) scan's detector counts by ROI
          :return:
docstring_tokens: sum over the ( selected ) scan s detector counts by ROI : return :
function: def do_integrate_detector_counts(self):
          """
          sum over the (selected) scan's detector counts by ROI
          :return:
          """
          # get ROI
          roi_name = str(self.ui.comboBox_roiList.currentText())
          if roi_name is None or roi_name == '':
              guiutility.show_message('A region-of-interest must be chosen in order to integrate detector counts.')
              return
  
          # integration direction and fit
          direction = str(self.ui.comboBox_integrateDirection.currentText()).lower()
          fit_gaussian = self.ui.checkBox_fitPeaks.isChecked()
  
          num_rows = self.ui.tableView_summary.rowCount()
          print ('[DB...BAT] Number of rows = {}'.format(num_rows))
          scan_number_list = list()
          for row_number in range(num_rows):
              # integrate counts on detector
              scan_number = self.ui.tableView_summary.get_scan_number(row_number)
              scan_number_list.append(scan_number)
          # END-FOR
          print ('[DB...BAT] Scan numbers: {}'.format(scan_number_list))
  
          peak_height_dict = self._controller.integrate_single_pt_scans_detectors_counts(self._exp_number,
                                                                                         scan_number_list,
                                                                                         roi_name, direction,
                                                                                         fit_gaussian)
  
          # set the value to the row  to table
          for row_number in range(self.ui.tableView_summary.rowCount()):
              scan_number = self.ui.tableView_summary.get_scan_number(row_number)
              pt_number = 1
              peak_height = peak_height_dict[scan_number]
              self.ui.tableView_summary.set_peak_height(scan_number, pt_number, peak_height, roi_name)
          # END-FOR (row_number)
  
          return
function_tokens: def do_integrate_detector_counts ( self ) : # get ROI roi_name = str ( self . ui . comboBox_roiList . currentText ( ) ) if roi_name is None or roi_name == '' : guiutility . show_message ( 'A region-of-interest must be chosen in order to integrate detector counts.' ) return # integration direction and fit direction = str ( self . ui . comboBox_integrateDirection . currentText ( ) ) . lower ( ) fit_gaussian = self . ui . checkBox_fitPeaks . isChecked ( ) num_rows = self . ui . tableView_summary . rowCount ( ) print ( '[DB...BAT] Number of rows = {}' . format ( num_rows ) ) scan_number_list = list ( ) for row_number in range ( num_rows ) : # integrate counts on detector scan_number = self . ui . tableView_summary . get_scan_number ( row_number ) scan_number_list . append ( scan_number ) # END-FOR print ( '[DB...BAT] Scan numbers: {}' . format ( scan_number_list ) ) peak_height_dict = self . _controller . integrate_single_pt_scans_detectors_counts ( self . _exp_number , scan_number_list , roi_name , direction , fit_gaussian ) # set the value to the row  to table for row_number in range ( self . ui . tableView_summary . rowCount ( ) ) : scan_number = self . ui . tableView_summary . get_scan_number ( row_number ) pt_number = 1 peak_height = peak_height_dict [ scan_number ] self . ui . tableView_summary . set_peak_height ( scan_number , pt_number , peak_height , roi_name ) # END-FOR (row_number) return