Esempio n. 1
0
 def _print_header(cls, states, threads):
     print_msg(datetime.datetime.now().strftime("%F %T"))
     print_msg("Pipeline; %s (press 'h' for help):"
               % cls._describe_states(states, threads))
     logfile = pypeline.logger.get_logfile()
     if logfile:
         print_debug("  Log-file located at %r" % (logfile,))
Esempio n. 2
0
 def _print_header(cls, states, threads):
     print_msg(datetime.datetime.now().strftime("%F %T"))
     print_msg("Pipeline; %s (press 'h' for help):" %
               cls._describe_states(states, threads))
     logfile = pypeline.logger.get_logfile()
     if logfile:
         print_debug("  Log-file located at %r" % (logfile, ))
Esempio n. 3
0
 def _print_summary(self):
     """Prints a summary of the pipeline progress."""
     time_label = datetime.datetime.now().strftime("%T")
     description = self._describe_states(self.states, self.threads)
     print_msg("\n%s Pipeline: %s" % (time_label, description))
     logfile = pypeline.logger.get_logfile()
     if logfile:
         print_debug("Log-file located at %r" % (logfile, ))
Esempio n. 4
0
 def _print_summary(self):
     """Prints a summary of the pipeline progress."""
     time_label = datetime.datetime.now().strftime("%T")
     description = self._describe_states(self.states, self.threads)
     print_msg("\n%s Pipeline: %s" % (time_label, description))
     logfile = pypeline.logger.get_logfile()
     if logfile:
         print_debug("Log-file located at %r" % (logfile,))
Esempio n. 5
0
    def flush(self):
        time_label = datetime.datetime.now().strftime("%T")
        runtime = _fmt_runtime(int(time.time() - self._starting_time))
        description = self._describe_states(self.states, self.threads)
        message = "%s Pipeline: %s in %s " % (time_label, description, runtime)

        self._max_len = max(len(message), self._max_len)
        print_msg("\r%s" % (message.ljust(self._max_len), ), end="")

        logfile = pypeline.logger.get_logfile()
        if logfile and self._new_error:
            print_debug("\nLog-file located at %r" % (logfile, ))
            self._new_error = False
        sys.stdout.flush()
Esempio n. 6
0
    def flush(self):
        time_label = datetime.datetime.now().strftime("%T")
        runtime = _fmt_runtime(int(time.time() - self._starting_time))
        description = self._describe_states(self.states, self.threads)
        message = "%s Pipeline: %s in %s " % (time_label,
                                              description,
                                              runtime)

        self._max_len = max(len(message), self._max_len)
        print_msg("\r%s" % (message.ljust(self._max_len),), end="")

        logfile = pypeline.logger.get_logfile()
        if logfile and self._new_error:
            print_debug("\nLog-file located at %r" % (logfile,))
            self._new_error = False
        sys.stdout.flush()
Esempio n. 7
0
 def finalize(self):
     print_msg()
     BaseUI.finalize(self)
Esempio n. 8
0
 def finalize(self):
     print_msg()
     BaseUI.finalize(self)