当前位置: 首页>>代码示例>>Python>>正文


Python Debug.uncache方法代码示例

本文整理汇总了Python中xia2.Handlers.Streams.Debug.uncache方法的典型用法代码示例。如果您正苦于以下问题:Python Debug.uncache方法的具体用法?Python Debug.uncache怎么用?Python Debug.uncache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在xia2.Handlers.Streams.Debug的用法示例。


在下文中一共展示了Debug.uncache方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: str

# 需要导入模块: from xia2.Handlers.Streams import Debug [as 别名]
# 或者: from xia2.Handlers.Streams.Debug import uncache [as 别名]
      Chatter.cache()
      Debug.cache()

      try:
        s.get_integrater_intensities()
      except Exception, e:
        if failover:
          Chatter.write('Processing sweep %s failed: %s' % \
                        (s.get_name(), str(e)))
          s = None
        else:
          raise
      finally:
        Chatter.uncache()
        Debug.uncache()
        return s

    remove = []

    from xia2.Handlers.Phil import PhilIndex
    params = PhilIndex.get_python_object()
    failover = params.xia2.settings.failover

    for s in self._sweeps:

      # would be nice to put this somewhere else in the hierarchy - not
      # sure how to do that though (should be handled in Interfaces?)

      try:
        result += '%s\n' % s.get_output()
开发者ID:xia2,项目名称:xia2,代码行数:32,代码来源:XWavelength.py


注:本文中的xia2.Handlers.Streams.Debug.uncache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。