Add default parameter handling for macro elasticity simulation#908
Add default parameter handling for macro elasticity simulation#908hdoupe merged 3 commits intoospc-org:masterfrom
Conversation
|
@lucassz Nice catch. Would you mind adding a test in the |
|
@hdoupe This is done. I had to make the class not be a TestCase to get the parametrization to work. |
|
|
||
| def assertTrue(self, a): | ||
| assert a | ||
|
|
There was a problem hiding this comment.
@lucassz what do you think about dropping the assert* methods? When I removed the TestCase inheritance from some of the other test classes, I dropped these methods because I think it's easier to just read a==b instead of self.assertEqual(a, b).
There was a problem hiding this comment.
Yes, I think that is a better idea. I was trying to minimize changes to the code, but will make the change.
|
LGTM. @lucassz are you ready for this to be merged? |
|
@hdoupe Seems good to me too. |
|
Cool, thanks for the contribution. |
Add default parameter handling for macro elasticity simulation. Follow-up to #883 and #905: currently, running the macro elasticity model without inputting any data results in not even a UI error, but an uncaught server error in converting an empty string to a float. This adds default handling in a general way. However, it does make the assumption that there is only one column/value per input; this was already implied in the previous code, and I believe that should be okay for this model, but please let me know if it is not.