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}' )
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}' )
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
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}]', )