Skip to content

Commit

Permalink
updated bar format
Browse files Browse the repository at this point in the history
  • Loading branch information
Phionx committed Jun 4, 2024
1 parent f68b70c commit 3d35aff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jaxquantum/core/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def spre(op: Array) -> Callable[[Array], Array]:
class CustomProgressMeter(TqdmProgressMeter):
@staticmethod
def _init_bar() -> tqdm.tqdm:
return tqdm.tqdm(total=100, unit='%', colour="MAGENTA", ascii="░▒█")
bar_format = "{desc}: {percentage:3.0f}% |{bar}| [{elapsed}<{remaining}, {rate_fmt}{postfix}]"
return tqdm.tqdm(total=100, bar_format=bar_format, unit='%', colour="MAGENTA", ascii="░▒█")


def solve(ρ0, f, t_list, args, solver_options):
Expand Down

0 comments on commit 3d35aff

Please sign in to comment.