本文整理匯總了Python中xia2.Handlers.Flags.Flags.get_xparm_a方法的典型用法代碼示例。如果您正苦於以下問題:Python Flags.get_xparm_a方法的具體用法?Python Flags.get_xparm_a怎麽用?Python Flags.get_xparm_a使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xia2.Handlers.Flags.Flags
的用法示例。
在下文中一共展示了Flags.get_xparm_a方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: Idxref
# 需要導入模塊: from xia2.Handlers.Flags import Flags [as 別名]
# 或者: from xia2.Handlers.Flags.Flags import get_xparm_a [as 別名]
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