當前位置: 首頁>>代碼示例>>Python>>正文


Python Flags.get_interactive方法代碼示例

本文整理匯總了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
開發者ID:hainm,項目名稱:xia2,代碼行數:19,代碼來源:LabelitIndexer.py

示例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:
開發者ID:hainm,項目名稱:xia2,代碼行數:33,代碼來源:IndexerFactory.py


注:本文中的xia2.Handlers.Flags.Flags.get_interactive方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。