Ejemplo n.º 1
0
    class Counters:
        def __init__(self, total):
            self.a1hits = 0
            self.a2hits = 0
            self.count = 0
            self.eta = Eta(total)

        def format(self):
            self.eta.set_current(self.count)
            return 'progress={} alg1hits={} alg2hits={}'.format(self.eta.format(),
                                                                progress_format(current=self.a1hits, total=self.count),
                                                                progress_format(current=self.a2hits, total=self.count))
Ejemplo n.º 2
0
    class Counters:
        def __init__(self, total):
            self.a1hits = 0
            self.a2hits = 0
            self.count = 0
            self.eta = Eta(total)

        def format(self):
            self.eta.set_current(self.count)
            return 'progress={} alg1hits={} alg2hits={}'.format(
                self.eta.format(),
                progress_format(current=self.a1hits, total=self.count),
                progress_format(current=self.a2hits, total=self.count))
Ejemplo n.º 3
0
 def __init__(self, total):
     self.a1hits = 0
     self.a2hits = 0
     self.count = 0
     self.eta = Eta(total)
Ejemplo n.º 4
0
 def __init__(self, total):
     self.a1hits = 0
     self.a2hits = 0
     self.count = 0
     self.eta = Eta(total)