Skip to content

Commit 8f7f698

Browse files
committed
Decrease verbosity of transport…test_debug()
1 parent abbb252 commit 8f7f698

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

message_ix_models/tests/model/transport/test_build.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -291,18 +291,18 @@ def test_debug(
291291
tmp_path,
292292
build_kw,
293293
N_node,
294-
verbosity: Literal[0, 1, 2, 3] = 2, # NB Increase this to show more verbose output
294+
verbosity: Literal[0, 1, 2, 3] = 0, # NB Increase this to show more verbose output
295295
):
296296
"""Debug particular calculations in the transport build process."""
297297
# Get a Computer prepared to build the model with the given options
298298
c, info = configure_build(test_context, tmp_path=tmp_path, **build_kw)
299299

300300
# Construct a list of common checks
301301
verbose: dict[int, list["Check"]] = {
302-
0: [],
303-
1: [Log(7)],
304-
2: [Log(None)],
305-
3: [Dump(tmp_path)],
302+
0: [], # Don't log anything.
303+
1: [Log()], # Log 7 lines at the start/end of each quantity.
304+
2: [Log(None)], # Log *all* data. This is produces GHA logs >1 GiB.
305+
3: [Dump(tmp_path)], # Dump all data to a file.
306306
}
307307
common = [Size({"n": N_node}), NoneMissing()] + verbose[verbosity]
308308

0 commit comments

Comments
 (0)