Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve subprocess docs #1650

Merged
merged 1 commit into from
Jul 23, 2024
Merged

Improve subprocess docs #1650

merged 1 commit into from
Jul 23, 2024

Conversation

visr
Copy link
Member

@visr visr commented Jul 23, 2024

Fixes #1638

@visr visr requested a review from Fati-Mon July 23, 2024 10:06
@visr
Copy link
Member Author

visr commented Jul 23, 2024

The print(result.stderr) can get very long for long simulations, since each progress bar update gets captured. I haven't yet looked into options to understand the escape sequences, or disabling the progress bar. We could always do that later on, for now this is a clear improvement.

┌ Info: Starting a Ribasim simulation.
│   cli.ribasim_version = "2024.9.0"
│   starttime = 2020-01-01T00:00:00
└   endtime = 2021-01-01T00:00:00
Simulating   0%|█                                       |  ETA: N/A
Simulating   3%|██                                      |  ETA: 0:06:05
Simulating  27%|███████████                             |  ETA: 0:00:26
Simulating  55%|██████████████████████                  |  ETA: 0:00:08
Simulating  82%|█████████████████████████████████       |  ETA: 0:00:02
Simulating 100%|████████████████████████████████████████| Time: 0:00:09
┌ Info: Convergence bottlenecks in descending order of severity:
│   Basin #1 = 8.381532618938586e-5
└   Basin #3 = 7.804332800509216e-5
[ Info: The model finished successfully

@visr visr merged commit 28cce64 into main Jul 23, 2024
25 checks passed
@visr visr deleted the subprocess-call branch July 23, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve subprocess call example
2 participants