-
Notifications
You must be signed in to change notification settings - Fork 271
Feature: new method addMatrixConsIndicator
#1024
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
Feature: new method addMatrixConsIndicator
#1024
Conversation
similar to `addConsIndicator` but for matrix
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.
The code style and document style should check.
Thank you, this looks pretty good! Just some minor comments, really |
Condensed the addMatrixConsIndicator method signature to a single line and updated the docstring for improved clarity and consistency. Parameter descriptions were streamlined and default values were explicitly stated.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1024 +/- ##
==========================================
+ Coverage 54.13% 54.33% +0.20%
==========================================
Files 22 22
Lines 5045 5192 +147
==========================================
+ Hits 2731 2821 +90
- Misses 2314 2371 +57 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Specified the return type of the Model.add_matrix_constraint method as MatrixConstraint to improve type clarity and support better static analysis.
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.
Yeahh I like the code duplication even worse now, but the alternative I'm thinking of would introduce some inconsistency. We'll leave it as is
Co-authored-by: João Dionísio <[email protected]>
closes #1021