Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openfisca_core/scripts/openfisca_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def build_test_parser(parser):
"-d",
"--max-depth",
type=int,
default=None,
default=sys.maxsize,
help="set maximal verbosity depth. If specified, output the calculation trace up to the provided depth. This flag has no effect without --verbose.",
)
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion openfisca_core/tools/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
class Options(TypedDict, total=False):
aggregate: bool
ignore_variables: Sequence[str] | None
max_depth: int | None
max_depth: int
name_filter: str | None
only_variables: Sequence[str] | None
pdb: bool
Expand Down
3 changes: 2 additions & 1 deletion openfisca_core/tracers/computation_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ def print_log(self, aggregate: bool = False, max_depth: int = sys.maxsize) -> No

This mode is more suited for simulations on a large population.

If ``max_depth`` is ``None`` (default), print the entire computation.
If ``max_depth`` is ``sys.maxsize`` (default), print the entire
computation.

If ``max_depth`` is set, for example to ``3``, only print computed
vectors up to a depth of ``max_depth``.
Expand Down
Loading