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

Move docstring #815

Merged
merged 2 commits into from
Jan 28, 2019
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 25.2.8 [#815](https://github.com/openfisca/openfisca-core/pull/815)

- Quell a warning in the build of openfisca-doc by moving a docstring to the right place

### 25.2.7 [#803](https://github.com/openfisca/openfisca-core/pull/803)

- Allow country package users to run `openfisca test` without installing the `web_api` dependency
Expand Down
6 changes: 3 additions & 3 deletions openfisca_core/tracers.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ def _print_details(key, depth):
return _print_details(key, 0)

def computation_log(self, aggregate = False):
return [self._print_node(node, depth, aggregate) for node, depth in self._computation_log]

def print_computation_log(self, aggregate = False):
"""
Print the computation log of a simulation.

Expand All @@ -240,9 +243,6 @@ def computation_log(self, aggregate = False):
If ``aggregate`` is ``True``, only print the minimum, maximum, and average value of each computed vector.
This mode is more suited for simulations on a large population.
"""
return [self._print_node(node, depth, aggregate) for node, depth in self._computation_log]

def print_computation_log(self, aggregate = False):
for line in self.computation_log(aggregate):
print(line)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

setup(
name = 'OpenFisca-Core',
version = '25.2.7',
version = '25.2.8',
author = 'OpenFisca Team',
author_email = 'contact@openfisca.org',
classifiers = [
Expand Down