Esempio n. 1
0
    def to_cbf(self, cbf_filename, toggle_conventions=False):
        if toggle_conventions:
            # switch to DIALS convention before writing CBF
            CURRENT_CONV = self.beamcenter_convention
            self.beamcenter_convention = DIALS

        writer = cbf_writer.FullCBFWriter(imageset=self.imageset)
        writer.write_cbf(cbf_filename, index=0)

        if toggle_conventions:
            self.beamcenter_convention = CURRENT_CONV
Esempio n. 2
0
 def to_cbf(self, cbf_filename):
     writer = cbf_writer.FullCBFWriter(imageset=self.imageset)
     writer.write_cbf(cbf_filename, index=0)