parameters: (self)
docstring: Get FWHM from integrated 'STRONG' peaks according to 2theta value
          :return:
docstring_summary: Get FWHM from integrated 'STRONG' peaks according to 2theta value
          :return:
docstring_tokens: Get FWHM from integrated STRONG peaks according to 2theta value : return :
function: def do_retrieve_fwhm(self):
          """
          Get FWHM from integrated 'STRONG' peaks according to 2theta value
          :return:
          """
          row_number = self.ui.tableView_summary.rowCount()
          error_messages = ''
          for row_index in range(row_number):
              # check whether FWHM value is set up
              fwhm_i = self.ui.tableView_summary.get_fwhm(row_index)
              if fwhm_i is not None and fwhm_i > 1.E-10:
                  continue
  
              # use interpolation to curve
              two_theta = self.ui.tableView_summary.get_two_theta(row_index)
              try:
                  gauss_sigma = self._controller.calculate_peak_integration_sigma(two_theta)
                  scan_number = self.ui.tableView_summary.get_scan_number(row_index)
                  pt_number = 1
                  roi_name = self.ui.tableView_summary.get_region_of_interest_name(row_index)
                  self.ui.tableView_summary.set_gaussian_sigma(row_index, gauss_sigma)
                  self._controller.set_single_measure_peak_width(self._exp_number, scan_number, pt_number,
                                                                 roi_name, gauss_sigma, is_fhwm=False)
  
              except RuntimeError as err:
                  # error!
                  error_messages += 'Unable to calculate sigma of row {0} due to {1}\n'.format(row_index, err)
                  continue
              # END-IF-ELSE
  
          # show error message if necessary
          if len(error_messages) > 0:
              guiutility.show_message(self, error_messages)
function_tokens: def do_retrieve_fwhm ( self ) : row_number = self . ui . tableView_summary . rowCount ( ) error_messages = '' for row_index in range ( row_number ) : # check whether FWHM value is set up fwhm_i = self . ui . tableView_summary . get_fwhm ( row_index ) if fwhm_i is not None and fwhm_i > 1.E-10 : continue # use interpolation to curve two_theta = self . ui . tableView_summary . get_two_theta ( row_index ) try : gauss_sigma = self . _controller . calculate_peak_integration_sigma ( two_theta ) scan_number = self . ui . tableView_summary . get_scan_number ( row_index ) pt_number = 1 roi_name = self . ui . tableView_summary . get_region_of_interest_name ( row_index ) self . ui . tableView_summary . set_gaussian_sigma ( row_index , gauss_sigma ) self . _controller . set_single_measure_peak_width ( self . _exp_number , scan_number , pt_number , roi_name , gauss_sigma , is_fhwm = False ) except RuntimeError as err : # error! error_messages += 'Unable to calculate sigma of row {0} due to {1}\n' . format ( row_index , err ) continue # END-IF-ELSE # show error message if necessary if len ( error_messages ) > 0 : guiutility . show_message ( self , error_messages )