qutip / QuantumToolbox.jl

Quantum Toolbox in Julia
https://qutip.org/QuantumToolbox.jl/
BSD 3-Clause "New" or "Revised" License
46 stars 16 forks source link

Fix progressbar end print #175

Closed albertomercurio closed 4 months ago

albertomercurio commented 4 months ago

With the last improvement of the progress_bar, the output was very often incomplete in the final print, because it was not triggered depending on the speed of the execution.

Here I have introduced another condition that checks if the total time exceeds the interval variable. If yes, then proceed with printing.

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.35%. Comparing base (9148227) to head (361d43c).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #175 +/- ## ======================================= Coverage 93.35% 93.35% ======================================= Files 28 28 Lines 2092 2093 +1 ======================================= + Hits 1953 1954 +1 Misses 139 139 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

albertomercurio commented 4 months ago

Wait, I have to do one small change.