Skip to content

Commit

Permalink
fix: default maxsize (#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
bonjourmauko authored Nov 19, 2024
2 parents 95bb6f6 + 329d37a commit 9f43461
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
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

0 comments on commit 9f43461

Please sign in to comment.