Skip to content

Commit 65ea408

Browse files
Merge pull request #2282 from nilodna/pbar_with_date
Insert integration time in the progress bar
2 parents ca4817b + 1cfc3e1 commit 65ea408

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

parcels/_core/particleset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ def execute(
545545

546546
if verbose_progress:
547547
pbar = tqdm(total=(end_time - start_time) / np.timedelta64(1, "s"), file=sys.stdout)
548+
pbar.set_description("Integration time: " + str(start_time))
548549

549550
next_output = start_time + sign_dt * outputdt if output_file else None
550551

@@ -566,6 +567,7 @@ def execute(
566567
next_output += outputdt
567568

568569
if verbose_progress:
570+
pbar.set_description("Integration time: " + str(time))
569571
pbar.update((next_time - time) / np.timedelta64(1, "s"))
570572

571573
time = next_time

0 commit comments

Comments
 (0)