def __init__(self): super().__init__() # check that the programs exist - this will raise an exception if # they do not... _Idxref() self._background_images = None self._index_select_images = "i" # place to store working data self._data_files = {}
def Idxref(self): idxref = _Idxref(params=PhilIndex.params.xds.index) idxref.set_working_directory(self.get_working_directory()) idxref.setup_from_imageset(self.get_imageset()) if self.get_distance(): idxref.set_distance(self.get_distance()) if self.get_wavelength(): idxref.set_wavelength(self.get_wavelength()) # if we have a refined set of parameters to apply, apply these if Flags.get_xparm(): idxref.set_refined_origin(Flags.get_xparm_origin()) idxref.set_refined_beam_vector(Flags.get_xparm_beam_vector()) idxref.set_refined_rotation_axis(Flags.get_xparm_rotation_axis()) idxref.set_refined_distance(Flags.get_xparm_distance()) # hacks for Jira 493 if Flags.get_xparm_a(): idxref.set_a_axis(Flags.get_xparm_a()) if Flags.get_xparm_b(): idxref.set_b_axis(Flags.get_xparm_b()) if Flags.get_xparm_c(): idxref.set_c_axis(Flags.get_xparm_c()) auto_logfiler(idxref, "IDXREF") return idxref
def Idxref(self): from xia2.Handlers.Phil import PhilIndex idxref = _Idxref(params=PhilIndex.params.xds.index) idxref.set_working_directory(self.get_working_directory()) idxref.setup_from_imageset(self.get_imageset()) if self.get_distance(): idxref.set_distance(self.get_distance()) if self.get_wavelength(): idxref.set_wavelength(self.get_wavelength()) # if we have a refined set of parameters to apply, apply these if Flags.get_xparm(): idxref.set_refined_origin(Flags.get_xparm_origin()) idxref.set_refined_beam_vector(Flags.get_xparm_beam_vector()) idxref.set_refined_rotation_axis(Flags.get_xparm_rotation_axis()) idxref.set_refined_distance(Flags.get_xparm_distance()) # hacks for Jira 493 if Flags.get_xparm_a(): idxref.set_a_axis(Flags.get_xparm_a()) if Flags.get_xparm_b(): idxref.set_b_axis(Flags.get_xparm_b()) if Flags.get_xparm_c(): idxref.set_c_axis(Flags.get_xparm_c()) auto_logfiler(idxref, 'IDXREF') return idxref
def __init__(self): super(XDSIndexer, self).__init__() # check that the programs exist - this will raise an exception if # they do not... idxref = _Idxref() self._background_images = None self._index_select_images = 'i' # place to store working data self._data_files = { } return