def calculate_phase_quad(self):
        parameters = self.get_parameters_for_phase_quad()

        self.current_alg = mantid.AlgorithmManager.create("PhaseQuad")
        phase_quad = run_PhaseQuad(parameters, self.current_alg)
        self.current_alg = None

        self.add_phase_quad_to_ADS(parameters['InputWorkspace'], parameters['PhaseTable'], phase_quad)
    def calculate_phase_quad(self):
        parameters = self.get_parameters_for_phase_quad()

        self.current_alg = mantid.AlgorithmManager.create("PhaseQuad")
        phase_quad = run_PhaseQuad(parameters, self.current_alg)
        self.current_alg = None

        self.add_phase_quad_to_ADS(parameters['InputWorkspace'], parameters['PhaseTable'], phase_quad)
Example #3
0
    def calculate_phasequad(self, phasequad, run, rebin):
        parameters = {}
        parameters['PhaseTable'] = phasequad.phase_table
        run_string = run_list_to_string(run)

        ws_name = get_pair_phasequad_name(self,
                                          add_phasequad_extensions(
                                              phasequad.name),
                                          run_string,
                                          rebin=rebin)

        parameters['InputWorkspace'] = self._run_deadtime(run_string, ws_name)
        runs = self._data_context.current_runs
        if runs:
            parameters['InputWorkspace'] = run_crop_workspace(
                parameters['InputWorkspace'], self.first_good_data(runs[0]),
                self.last_good_data(runs[0]))

        phase_quad = run_PhaseQuad(parameters, ws_name)
        phase_quad = self._run_rebin(phase_quad, rebin)

        workspaces = split_phasequad(phase_quad)
        return workspaces