コード例 #1
0
ファイル: flex_ext.py プロジェクト: ndevenish/dials-fork
    def compute_corrections(self, experiments):
        """
        Helper function to correct the intensity.

        :param experiments: The list of experiments
        :return: The LP correction for each reflection
        """
        from dials.algorithms.integration import Corrections, CorrectionsMulti

        compute = CorrectionsMulti()
        for experiment in experiments:
            if experiment.goniometer is not None:
                compute.append(
                    Corrections(
                        experiment.beam, experiment.goniometer, experiment.detector
                    )
                )
            else:
                compute.append(Corrections(experiment.beam, experiment.detector))
        lp = compute.lp(self["id"], self["s1"])
        self["lp"] = lp
        if experiment.detector[0].get_mu() > 0:
            qe = compute.qe(self["id"], self["s1"], self["panel"])
            self["qe"] = qe
        return lp
コード例 #2
0
ファイル: flex.py プロジェクト: kek-pf-mx/dials
    def compute_corrections(self, experiments):
        '''
    Helper function to correct the intensity.

    :param experiments: The list of experiments
    :return: The LP correction for each reflection

    '''
        from dials.algorithms.integration import Corrections, CorrectionsMulti
        compute = CorrectionsMulti()
        for experiment in experiments:
            compute.append(
                Corrections(experiment.beam, experiment.goniometer,
                            experiment.detector))
        lp = compute.lp(self['id'], self['s1'])
        self['lp'] = lp
        if experiment.detector[0].get_mu() > 0:
            qe = compute.qe(self['id'], self['s1'], self['panel'])
            self['qe'] = qe
        return lp