-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: merge holders with storage #1167
base: master
Are you sure you want to change the base?
Conversation
918be8f
to
0716d87
Compare
0716d87
to
2aa440c
Compare
2aa440c
to
4f61c31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This improves documentation significantly, seems to add interesting value checks, and adds types in a way that I don't feel confident checking.
I invoke #1159 pre-approval and am willing to try this changeset on the Country Template.
845e5ba
to
8c125a9
Compare
openfisca_core/entities/entity.py
Outdated
@@ -43,7 +49,7 @@ def check_variable_defined_for_entity(self, variable_name: str) -> None: | |||
if variable is not None: | |||
entity = variable.entity | |||
|
|||
if entity.key != self.key: | |||
if self != entity: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benjello here.
43d2fc2
to
2498c16
Compare
df7e6b4
to
4b5627a
Compare
4b5627a
to
7820c27
Compare
@benjello What do you think? |
|
||
def get_memory_usage(self) -> MemoryUsage: | ||
"""Get data about the virtual memory usage of the Holder. | ||
"""Gets data about the virtual memory usage of the Holder. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use imperative here and in other places
Hi @maukoquiroga : I am not sure I can review this PR since I am not qualified enough. If you point me to some specific problem where I can actually help, I would do it. |
As it is, it is mainly documentation (moving the data storage is a breaking change, but can't be downplayed by doing a doublwe import). However, I'd like to have your opinion in where this could go, maybe in a second pull request, or in this one:
In principle, everything besides documentation (including types) and refactoring should be extracted into a second pull request, so this one can be patch or minor? In terms of |
Hello Mauko, Can you run OpenFisca-France tests with this version of Core ? |
a779d98
to
620d8b2
Compare
620d8b2
to
10fd474
Compare
10fd474
to
24f49c8
Compare
Fixes #887
Depends on #1235
New features
UserDict
to encapsulate the data model of thedata_storage
module.Technical changes
data_storage
.data_storage
.data_storage
.