Skip to content

Commit

Permalink
Format using black
Browse files Browse the repository at this point in the history
  • Loading branch information
atharva-2001 committed Aug 7, 2021
1 parent 6b3765e commit f7b1135
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tardis/util/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,12 +600,12 @@ def is_notebook():


if is_notebook():
iterations_pbar = tqdm.notebook.tqdm(
iterations_pbar = tqdm.notebook.tqdm(
desc="Iterations:",
bar_format="{desc:<}{bar}{n_fmt}/{total_fmt} [{elapsed}<{remaining}, {rate_fmt}]",
)
iterations_pbar.container.close()
packet_pbar = tqdm.notebook.tqdm(
packet_pbar = tqdm.notebook.tqdm(
desc="Packets: ",
postfix="0",
bar_format="{desc:<}{bar}{n_fmt}/{total_fmt} [{elapsed}<{remaining}, {rate_fmt}]",
Expand All @@ -623,6 +623,7 @@ def is_notebook():
bar_format="{desc:<}{bar:80}{n_fmt}/{total_fmt} [{elapsed}<{remaining}, {rate_fmt}]",
)


def update_packet_pbar(i, current_iteration, no_of_packets, total_iterations):
"""
Update progress bars as each packet is propagated.
Expand Down

0 comments on commit f7b1135

Please sign in to comment.