Add progress logging and tidy use of stdout and stderr #94
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 457 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.367
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #94"
general
weight: 0.35
joewallwork
Closes #92.
The primary function of this PR is to print progress to the screen. I only add this for the outer loop over stations. Since we have OpenMP parallelisation, I use an approach that will give the same output no matter what order the threads are executed. Running the existing tests locally I get
i.e., the number of stations is listed and then a
%symbol is printed whenever a station is accounted for in the loop.In addition to setting this up, I improved the consistency of how standard output and standard error are handled in the model. In particular, I replace any
write(6,write(, andprint ,withwrite(stdout, wherestdoutmaps to the standard output unit fromiso_fortran_env, and I ensure that anything that is meant to be an error is instead sent tostderr. For error reports, I also useerror stopspecifically instead of juststop.Question for reviewers
Is this approach going to be okay for the global simulation or are there so many more stations that the progress bar would likely exceed the line limit?