parameters: (self, correction_data: BackgroundCorrectionData)
docstring: Calculates the background for some data using a Fit.
docstring_summary: Calculates the background for some data using a Fit.
docstring_tokens: Calculates the background for some data using a Fit .
function: def _run_background_correction(self, correction_data: BackgroundCorrectionData) -> None:
          """Calculates the background for some data using a Fit."""
          if self.is_background_mode_auto():
              fit_function = self._get_fit_function_for_background_fit(correction_data)
              correction_data.calculate_background(fit_function)
          elif self.is_background_mode_manual():
              correction_data.status = CORRECTION_SUCCESS_STATUS \
                  if correction_data.flat_background.getParameterValue(BACKGROUND_PARAM) != 0.0 else NO_CORRECTION_STATUS
  
          correction_data.perform_background_subtraction()
function_tokens: def _run_background_correction ( self , correction_data : BackgroundCorrectionData ) -> None : if self . is_background_mode_auto ( ) : fit_function = self . _get_fit_function_for_background_fit ( correction_data ) correction_data . calculate_background ( fit_function ) elif self . is_background_mode_manual ( ) : correction_data . status = CORRECTION_SUCCESS_STATUS if correction_data . flat_background . getParameterValue ( BACKGROUND_PARAM ) != 0.0 else NO_CORRECTION_STATUS correction_data . perform_background_subtraction ( )