-
Notifications
You must be signed in to change notification settings - Fork 7
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(bc): avoid unnecessary creation of RHS matrices for binding constraints #2077
Conversation
88c1ac2
to
7a2a55b
Compare
3c8a2f0
to
d122d65
Compare
f3b5f93
to
c3db377
Compare
c3db377
to
1286f5b
Compare
1286f5b
to
b9e9bd7
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.
Keep going you've already coded a big part of the feature
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Outdated
Show resolved
Hide resolved
tests/integration/study_data_blueprint/test_binding_constraints.py
Outdated
Show resolved
Hide resolved
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 think we need to change slightly the implementation:
the level of abstraction in the command is not appropriate, it should manipulate nodes and not paths. Manipulation of paths should be hidden inside the nodes as much as possible.
We need to add copy and move operations to the nodes in order to implement this.
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Outdated
Show resolved
Hide resolved
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Outdated
Show resolved
Hide resolved
1a487dc
to
a01cedd
Compare
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Outdated
Show resolved
Hide resolved
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Outdated
Show resolved
Hide resolved
antarest/study/storage/variantstudy/model/command/create_binding_constraint.py
Outdated
Show resolved
Hide resolved
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Show resolved
Hide resolved
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Outdated
Show resolved
Hide resolved
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.
Last round of comment for me
d6ae88a
to
e41786e
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.
Implementation is better but I think we should add unit tests, not only integration tests!
In particular there might be an issue for the new copy and rename methdos
antarest/study/storage/variantstudy/model/command/update_binding_constraint.py
Show resolved
Hide resolved
…eation and updating
…eation and updating
…tributes_coherence`
… methods of `LazyNode`
2582a95
to
5cafd86
Compare
Context:
We create many matrices, meanwhile some them are useless
Issue:
Over consumption of disk space
Solution:
New paradigm to avoid creating useless matrices