Exemplo n.º 1
0
 def _create_total_bar(self):
     return utils.create_progress_bar(
         total=1,
         desc='Layers',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
Exemplo n.º 2
0
 def _create_total_bar(self):
     return utils.create_progress_bar(
         total=1,
         desc='Layers',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
Exemplo n.º 3
0
 def _create_progress_bar(self):
     return utils.create_progress_bar(
         total=DEFAULT_TOTAL_PROGRESS,
         desc='Progress',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
Exemplo n.º 4
0
 def _create_progress_bar(self):
     return utils.create_progress_bar(
         total=DEFAULT_TOTAL_PROGRESS,
         desc='Progress',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}'
     )
Exemplo n.º 5
0
Arquivo: build.py Projeto: rowhit/shub
 def __init__(self, events):
     super(_BuildProgress, self).__init__(events)
     self.bar = utils.create_progress_bar(
         total=1,
         desc='Steps',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}',
     )
     self.is_built = False
Exemplo n.º 6
0
 def __init__(self, events):
     super(_BuildProgress, self).__init__(events)
     self.bar = utils.create_progress_bar(
         total=1,
         desc='Steps',
         # don't need rate here, let's simplify the bar
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt}',
     )
     self.is_built = False
Exemplo n.º 7
0
 def _create_bar_per_layer(self, layer_id, total, initial):
     return utils.create_progress_bar(
         desc=layer_id,
         total=total,
         initial=initial,
         unit='B',
         unit_scale=True,
         # don't need estimates here, keep only rate
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{rate_fmt}]',
     )
Exemplo n.º 8
0
 def _create_bar_per_layer(self, layer_id, total, initial):
     return utils.create_progress_bar(
         desc=layer_id,
         total=total,
         initial=initial,
         unit='B',
         unit_scale=True,
         # don't need estimates here, keep only rate
         bar_format='{l_bar}{bar}| {n_fmt}/{total_fmt} [{rate_fmt}]',
     )