parameters: (self, fitted_params, wks, wks_index)
return_statement: return (spec_x_axis.min() <= center <= spec_x_axis.max()
                  and intensity > 0 and fitted_params['Chi'] < 17
                  and self._b2bexp_is_acceptable(fitted_params))
docstring: Decide whether a peak fitted looks acceptable, based on the values fitted for the
          parameters of the peak and other metrics from Fit (Chi^2).
  
          It applies for example a simple rule: if the peak center is
          negative, it is obviously a fit failure. This is sometimes not so straightforward
          from the error estimates and Chi^2 values returned from Fit, as there seem to be
          a small percentage of cases with numberical issues (nan, zeros, etc.).
  
          @param fitted_params :: parameters fitted from Fit algorithm
          @param in_wks :: input workspace where a spectrum was fitted
          @param wks_index :: workspace index of the spectrum that was fitted
  
          Returns:
              True if the peak function parameters and error estimates look acceptable
              so the peak should be used.
docstring_summary: Decide whether a peak fitted looks acceptable, based on the values fitted for the
          parameters of the peak and other metrics from Fit (Chi^2).
docstring_tokens: Decide whether a peak fitted looks acceptable based on the values fitted for the parameters of the peak and other metrics from Fit ( Chi^2 ) .
function: def _peak_is_acceptable(self, fitted_params, wks, wks_index):
          """
          Decide whether a peak fitted looks acceptable, based on the values fitted for the
          parameters of the peak and other metrics from Fit (Chi^2).
  
          It applies for example a simple rule: if the peak center is
          negative, it is obviously a fit failure. This is sometimes not so straightforward
          from the error estimates and Chi^2 values returned from Fit, as there seem to be
          a small percentage of cases with numberical issues (nan, zeros, etc.).
  
          @param fitted_params :: parameters fitted from Fit algorithm
          @param in_wks :: input workspace where a spectrum was fitted
          @param wks_index :: workspace index of the spectrum that was fitted
  
          Returns:
              True if the peak function parameters and error estimates look acceptable
              so the peak should be used.
          """
          spec_x_axis = wks.readX(wks_index)
          center = self._find_peak_center_in_params(fitted_params)
          intensity = self._find_peak_intensity_in_params(fitted_params)
          return (spec_x_axis.min() <= center <= spec_x_axis.max()
                  and intensity > 0 and fitted_params['Chi'] < 17
                  and self._b2bexp_is_acceptable(fitted_params))
function_tokens: def _peak_is_acceptable ( self , fitted_params , wks , wks_index ) : spec_x_axis = wks . readX ( wks_index ) center = self . _find_peak_center_in_params ( fitted_params ) intensity = self . _find_peak_intensity_in_params ( fitted_params ) return ( spec_x_axis . min ( ) <= center <= spec_x_axis . max ( ) and intensity > 0 and fitted_params [ 'Chi' ] < 17 and self . _b2bexp_is_acceptable ( fitted_params ) )