def _normalise_ws_current(self, ws_to_correct): monitor_spectra = self._inst_settings.monitor_spec_no monitor_ws = common.extract_single_spectrum(ws_to_process=ws_to_correct, spectrum_number_to_extract=monitor_spectra) normalised_ws = pearl_algs.normalise_ws_current(ws_to_correct=ws_to_correct, monitor_ws=monitor_ws, spline_coeff=self._inst_settings.monitor_spline, integration_range=self._inst_settings.monitor_integration_range, lambda_values=self._inst_settings.monitor_lambda, ex_regions=self._inst_settings.monitor_mask_regions) common.remove_intermediate_workspace(monitor_ws) return normalised_ws
def _normalise_ws_current(self, ws_to_correct): monitor_spectra = self._inst_settings.monitor_spec_no monitor_ws = common.extract_single_spectrum(ws_to_process=ws_to_correct, spectrum_number_to_extract=monitor_spectra) normalised_ws = pearl_algs.normalise_ws_current(ws_to_correct=ws_to_correct, monitor_ws=monitor_ws, spline_coeff=self._inst_settings.monitor_spline, integration_range=self._inst_settings.monitor_integration_range, lambda_values=self._inst_settings.monitor_lambda, ex_regions=self._inst_settings.monitor_mask_regions) common.remove_intermediate_workspace(monitor_ws) return normalised_ws