-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Add brain for numpy core module einsumfunc
.
#1656
Conversation
Pull Request Test Coverage Report for Build 2621848802
💛 - Coveralls |
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.
Not sure why this landed in PR limbo, but I thought I'd start with a review.
More general question: why are we putting al numpy
brains into separate files? Seems like a bit of a waste, right? Or am I missing something?
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
Thanks! I don't know the story behind this but to my mind it seems more maintainable to have them as separate modules, especially if they increase in size over time. Perhaps we could create a separate sub-package Or perhaps your point is more related to performance @DanielNoord? |
Yeah I think a refactor might be beneficial as I'm not sure this is actually more maintainable. For example, the brain you added could have been added to https://github.com/PyCQA/astroid/blob/main/astroid/brain/brain_numpy_core_fromnumeric.py. Same probably goes for test files. |
Hi @DanielNoord I think you have good ideas. As a way forward may I suggest you create a new issue to capture the ideas behind your refactoring suggestion? I'm sure there are knowledgeable folks who are aware of the reasoning behind the existing structure who can provide input & help move that forward. The current issue can move forward independently & according to the existing structure; if the refactoring issue comes to fruition then it wouldn't be much extra work to incorporate einsumfunc brain into the new system. What do you think? |
I'm fine with creating a new issue, but I'm not sure if there is anybody around anymore that knows the original rationale. Why don't approach this from what we would want ourselves. If you think keeping these separate is better that's fine with me, but if you think it's better to merge them then let's do so now! |
Mainly I think for now I'd like to follow the existing structure in order to stick to the scope of fixing the Pylint issue; hopefully I have time to finish that much this week. |
for more information, see https://pre-commit.ci
Co-authored-by: Daniël van Noord <13665637+DanielNoord@users.noreply.github.com>
2ca5bd4
to
8f1f991
Compare
for more information, see https://pre-commit.ci
Pushed some final changes. Thanks @mbyrnepr2 😄 |
Refs pylint-dev/pylint#5821
Steps
Description
Type of Changes
Related Issue