-
Notifications
You must be signed in to change notification settings - Fork 20
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
update numpy and fix numpy records #117
Conversation
Could you try |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #117 +/- ##
=======================================
Coverage 83.69% 83.69%
=======================================
Files 182 182
Lines 8711 8711
Branches 1082 1082
=======================================
Hits 7291 7291
Misses 1176 1176
Partials 244 244
☔ View full report in Codecov by Sentry. |
Fixed |
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.
Thanks Fei! LGTM, just requesting a review from Nikhil.
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.
OK to merge since the numpy update is obviously a massive plus- just curious about the sorted
usage but I doubt it adds that big a time cost. Thanks @feixie!
@@ -23,7 +23,7 @@ def build_from_node( | |||
node: "ParameterNode", | |||
) -> "VectorialParameterNodeAtInstant": | |||
VectorialParameterNodeAtInstant.check_node_vectorisable(node) | |||
subnodes_name = node._children.keys() | |||
subnodes_name = sorted(node._children.keys()) |
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.
Sorry just remind me why this is necessary? Thanks
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 got this change from this commit: openfisca/openfisca-core@c0782fa
Without it I get the TypeError on unit test runs.
Thanks for contributing! Please remove any top-level sections that do not apply to your changes.
make format && make documentation
has been run.New variable
What's changed
Bumped numpy version to match what's in openfisca-core. Bring in changes from openfisca-core to fix
TypeError: ufunc 'isnan' not supported for the input types
Bug fix
What this fixes and how it's fixed
Fixes this issue: PolicyEngine/policyengine-us#2802