本文整理匯總了Python中xia2.Handlers.Flags.Flags.get_interactive方法的典型用法代碼示例。如果您正苦於以下問題:Python Flags.get_interactive方法的具體用法?Python Flags.get_interactive怎麽用?Python Flags.get_interactive使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xia2.Handlers.Flags.Flags
的用法示例。
在下文中一共展示了Flags.get_interactive方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _index_select_images
# 需要導入模塊: from xia2.Handlers.Flags import Flags [as 別名]
# 或者: from xia2.Handlers.Flags.Flags import get_interactive [as 別名]
def _index_select_images(self):
'''Select correct images based on image headers.'''
phi_width = self.get_phi_width()
images = self.get_matching_images()
if Flags.get_interactive():
selected_images = index_select_images_user(phi_width, images,
Chatter)
else:
selected_images = index_select_images_lone(phi_width, images)
for image in selected_images:
Debug.write('Selected image %s' % image)
self.add_indexer_image_wedge(image)
return
示例2: and
# 需要導入模塊: from xia2.Handlers.Flags import Flags [as 別名]
# 或者: from xia2.Handlers.Flags.Flags import get_interactive [as 別名]
if preselection:
raise RuntimeError, 'preselected indexer mosflm not available'
pass
if not indexer and (not preselection or preselection == 'xds'):
try:
indexer = XDSIndexer()
Debug.write('Using XDS Indexer')
except NotAvailableError, e:
if preselection:
raise RuntimeError, 'preselected indexer xds not available'
pass
if not indexer and (not preselection or preselection == 'xdsii'):
try:
if Flags.get_interactive():
indexer = XDSIndexerInteractive()
Debug.write('Using XDS Interactive Indexer')
else:
indexer = XDSIndexerII()
Debug.write('Using XDS II Indexer')
except NotAvailableError, e:
if preselection:
raise RuntimeError, 'preselected indexer xds not available'
pass
if not indexer and (not preselection or preselection == 'xdssum'):
try:
indexer = XDSIndexerSum()
Debug.write('Using XDS Indexer on summed images')
except NotAvailableError, e: