-
Notifications
You must be signed in to change notification settings - Fork 295
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
fix unconstrained assembly.solve() #592
Conversation
Codecov Report
@@ Coverage Diff @@
## master #592 +/- ##
=======================================
Coverage 94.26% 94.27%
=======================================
Files 29 29
Lines 6348 6353 +5
Branches 675 676 +1
=======================================
+ Hits 5984 5989 +5
Misses 226 226
Partials 138 138
Continue to review full report at Codecov.
|
I reworked to raise a ValueError with a clear message. Anything against @greyltc ? |
Yeah, it's very likely the user has made a mistake if they call solve() without setting up constraints. I can imagine a case where it might be convenient for solve() to be a noop (or just throw a warning), like if you're troubleshooting constraints and you've commented them all out or something. I'm fine with leaving it as an error though. |
I'm on the being explicit side on that one - solve only makes sense with constraints. |
Are you fine with merging @jmwright ? |
+1 |
Fixes #591