def calculate_phase_table(self): parameters = self.create_parameters_for_cal_muon_phase_algorithm() self.current_alg = mantid.AlgorithmManager.create("CalMuonDetectorPhases") detector_table, fitting_information = run_CalMuonDetectorPhases(parameters, self.current_alg) self.current_alg = None self.add_phase_table_to_ADS(parameters['DetectorTable'], detector_table) self.add_fitting_info_to_ADS_if_required(parameters['DetectorTable'], fitting_information) return parameters['DetectorTable']
def calculate_phase_table(self): parameters = self.create_parameters_for_cal_muon_phase_algorithm() fitting_workspace_name = get_fitting_workspace_name(parameters['DetectorTable'])\ if self.view.output_fit_information else '__NotUsed' self.current_alg = mantid.AlgorithmManager.create("CalMuonDetectorPhases") detector_table, fitting_information = run_CalMuonDetectorPhases(parameters, self.current_alg, fitting_workspace_name) self.current_alg = None self.add_phase_table_to_ADS(detector_table) self.add_fitting_info_to_ADS_if_required(parameters['DetectorTable'], fitting_information) return parameters['DetectorTable']