Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

### 43.2.6 [#1297](https://github.com/openfisca/openfisca-core/pull/1297)

#### Bugfix

- Add `int` default to `max_depth` in `openfisca test`

### 43.2.5 [#1296](https://github.com/openfisca/openfisca-core/pull/1296)

#### Bugfix
Expand Down
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

setup(
name="OpenFisca-Core",
version="43.2.5",
version="43.2.6",
author="OpenFisca Team",
author_email="[email protected]",
classifiers=[
Expand Down
Loading