fix unconstrained assembly.solve()#592
fix unconstrained assembly.solve()#592jmwright merged 4 commits intoCadQuery:masterfrom greyltc:fix-empty-solve
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