Beispiel #1
0
    def export(self):
        '''
    Export the files

    '''
        from dials.util.export_mmcif import MMCIFOutputFile
        outfile = MMCIFOutputFile(self.params.mmcif.hklout)
        outfile.write(self.experiments, self.reflections)
Beispiel #2
0
    def export(self):
        """
        Export the files

        """
        from dials.util.export_mmcif import MMCIFOutputFile

        outfile = MMCIFOutputFile(self.params)
        try:
            outfile.write(self.experiments, self.reflections)
        except ValueError as e:
            raise Sorry(e)
Beispiel #3
0
def export_mmcif(params, experiments, reflections):
    """
    Export data in CIF format

    :param params: The phil parameters
    :param experiments: The experiment list
    :param reflections: The reflection tables
    """

    _check_input(experiments, reflections)

    from dials.util.export_mmcif import MMCIFOutputFile

    outfile = MMCIFOutputFile(params)
    outfile.write(experiments, reflections[0])