예제 #1
0
 def __call__(self, task):
     from dials.util import log
     import logging
     log.config_simple_cached()
     result = task()
     handlers = logging.getLogger('dials').handlers
     assert len(handlers) == 1, "Invalid number of logging handlers"
     return result, handlers[0].messages()
예제 #2
0
            def execute_task(task):
                from dials.util import log

                log.config_simple_cached()
                result = task()
                handlers = logging.getLogger("dials").handlers
                assert len(handlers) == 1, "Invalid number of logging handlers"
                return result, handlers[0].messages()
예제 #3
0
 def __call__(self, task):
     """
     Call the function with th task and save the IO
     """
     log.config_simple_cached()
     result = self.function(task)
     handlers = logging.getLogger("dials").handlers
     assert len(handlers) == 1, "Invalid number of logging handlers"
     return result, handlers[0].records
예제 #4
0
파일: processor.py 프로젝트: dials/dials
 def execute_task(task):
   from cStringIO import StringIO
   from dials.util import log
   import logging
   log.config_simple_cached()
   result = task()
   handlers = logging.getLogger('dials').handlers
   assert len(handlers) == 1, "Invalid number of logging handlers"
   return result, handlers[0].messages()
예제 #5
0
파일: finder.py 프로젝트: kek-pf-mx/dials
    def __call__(self, task):
        '''
    Call the function with th task and save the IO

    '''
        from dials.util import log
        import logging
        log.config_simple_cached()
        result = self.function(task)
        handlers = logging.getLogger('dials').handlers
        assert len(handlers) == 1, "Invalid number of logging handlers"
        return result, handlers[0].messages()
예제 #6
0
파일: finder.py 프로젝트: dials/dials
  def __call__(self, task):
    '''
    Call the function with th task and save the IO

    '''
    from cStringIO import StringIO
    from dials.util import log
    import logging
    log.config_simple_cached()
    result = self.function(task)
    handlers = logging.getLogger('dials').handlers
    assert len(handlers) == 1, "Invalid number of logging handlers"
    return result, handlers[0].messages()
예제 #7
0
 def execute_task(task):
     log.config_simple_cached()
     result = task()
     handlers = logging.getLogger("dials").handlers
     assert len(handlers) == 1, "Invalid number of logging handlers"
     return result, handlers[0].records