From b2cbf282fb850184450ed7908b591e1ba762c37f Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Thu, 18 Apr 2024 15:00:15 -0400 Subject: [PATCH 1/2] replaced autonotebook by auto --- festim/hydrogen_transport_problem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/festim/hydrogen_transport_problem.py b/festim/hydrogen_transport_problem.py index 31a44aa94..6e03e345d 100644 --- a/festim/hydrogen_transport_problem.py +++ b/festim/hydrogen_transport_problem.py @@ -6,7 +6,7 @@ import ufl from mpi4py import MPI import numpy as np -import tqdm.autonotebook +import tqdm.auto as tqdm import festim as F from dolfinx.mesh import meshtags @@ -753,7 +753,7 @@ def run(self): if self.settings.transient: # Solve transient - self.progress = tqdm.autonotebook.tqdm( + self.progress = tqdm.tqdm( desc="Solving H transport problem", total=self.settings.final_time, unit_scale=True, From fa260c30cf245808e60cb551522cc431b4db59e9 Mon Sep 17 00:00:00 2001 From: RemDelaporteMathurin Date: Thu, 18 Apr 2024 16:29:43 -0400 Subject: [PATCH 2/2] add refresh --- festim/hydrogen_transport_problem.py | 1 + 1 file changed, 1 insertion(+) diff --git a/festim/hydrogen_transport_problem.py b/festim/hydrogen_transport_problem.py index 6e03e345d..21d77c23e 100644 --- a/festim/hydrogen_transport_problem.py +++ b/festim/hydrogen_transport_problem.py @@ -760,6 +760,7 @@ def run(self): ) while self.t.value < self.settings.final_time: self.iterate() + self.progress.refresh() # refresh progress bar to show 100% else: # Solve steady-state self.solver.solve(self.u)