Пример #1
0
    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
    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