Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

revert: restore line printing in tracer #1304

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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.7 [#1304](https://github.com/openfisca/openfisca-core/pull/1304)

#### Bugfix

- Fix `computation_log`.

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

#### Bugfix
Expand Down
4 changes: 2 additions & 2 deletions openfisca_core/tracers/computation_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def print_log(self, aggregate: bool = False, max_depth: int = sys.maxsize) -> No
If ``max_depth`` is set, for example to ``3``, only print computed
vectors up to a depth of ``max_depth``.
"""
for _ in self.lines(aggregate, max_depth):
pass
for line in self.lines(aggregate, max_depth):
print(line)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
print(line)
print(line) # noqa: T201


def _get_node_log(
self,
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.6",
version="43.2.7",
author="OpenFisca Team",
author_email="[email protected]",
classifiers=[
Expand Down
Loading