parameters: (self, peak_info_list)
return_statement: return
docstring: Refine UB matrix by SPICE-indexed peaks
          Requirements: input is a list of PeakInfo objects and there are at least 3
                          non-degenerate peaks
          Guarantees: UB matrix is refined.  Refined UB matrix and lattice parameters
                      with errors are returned
          :param peak_info_list: list of PeakInfo
          :return: 2-tuple: (True, (ub matrix, lattice parameters, lattice parameters errors))
                            (False, error message)
docstring_summary: Refine UB matrix by SPICE-indexed peaks
          Requirements: input is a list of PeakInfo objects and there are at least 3
                          non-degenerate peaks
          Guarantees: UB matrix is refined.  Refined UB matrix and lattice parameters
                      with errors are returned
          :param peak_info_list: list of PeakInfo
          :return: 2-tuple: (True, (ub matrix, lattice parameters, lattice parameters errors))
                            (False, error message)
docstring_tokens: Refine UB matrix by SPICE - indexed peaks Requirements : input is a list of PeakInfo objects and there are at least 3 non - degenerate peaks Guarantees : UB matrix is refined . Refined UB matrix and lattice parameters with errors are returned : param peak_info_list : list of PeakInfo : return : 2 - tuple : ( True ( ub matrix lattice parameters lattice parameters errors )) ( False error message )
function: def refine_ub_matrix_indexed_peaks(self, peak_info_list):
          """ Refine UB matrix by SPICE-indexed peaks
          Requirements: input is a list of PeakInfo objects and there are at least 3
                          non-degenerate peaks
          Guarantees: UB matrix is refined.  Refined UB matrix and lattice parameters
                      with errors are returned
          :param peak_info_list: list of PeakInfo
          :return: 2-tuple: (True, (ub matrix, lattice parameters, lattice parameters errors))
                            (False, error message)
          """
          # Check inputs
          assert isinstance(peak_info_list, list)
          assert len(peak_info_list) >= 3
  
          # Construct a new peak workspace by combining all single peak
          ub_peak_ws_name = 'TempUBIndexedPeaks'
          self._build_peaks_workspace(peak_info_list, ub_peak_ws_name)
  
          # Calculate UB matrix
          try:
              mantidsimple.FindUBUsingIndexedPeaks(PeaksWorkspace=ub_peak_ws_name, Tolerance=0.5)
          except RuntimeError as e:
              return False, 'Unable to refine UB matrix due to %s.' % str(e)
  
          # Get peak workspace
          self._refinedUBTup = self._get_refined_ub_data(ub_peak_ws_name)
  
          return
function_tokens: def refine_ub_matrix_indexed_peaks ( self , peak_info_list ) : # Check inputs assert isinstance ( peak_info_list , list ) assert len ( peak_info_list ) >= 3 # Construct a new peak workspace by combining all single peak ub_peak_ws_name = 'TempUBIndexedPeaks' self . _build_peaks_workspace ( peak_info_list , ub_peak_ws_name ) # Calculate UB matrix try : mantidsimple . FindUBUsingIndexedPeaks ( PeaksWorkspace = ub_peak_ws_name , Tolerance = 0.5 ) except RuntimeError as e : return False , 'Unable to refine UB matrix due to %s.' % str ( e ) # Get peak workspace self . _refinedUBTup = self . _get_refined_ub_data ( ub_peak_ws_name ) return