Ejemplo 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
Ejemplo n.º 2
0
 def to_cbf(self, cbf_filename):
     writer = cbf_writer.FullCBFWriter(imageset=self.imageset)
     writer.write_cbf(cbf_filename, index=0)