-
Notifications
You must be signed in to change notification settings - Fork 18
Unpacking breaks for usual parameter vectors #486
base: dev
Are you sure you want to change the base?
Conversation
By looping `for parameter in parameters`, `parameter` can be a float. The current implementation breaks the function.
Codecov Report
@@ Coverage Diff @@
## dev #486 +/- ##
=======================================
Coverage 94.43% 94.43%
=======================================
Files 85 85
Lines 6590 6590
=======================================
Hits 6223 6223
Misses 367 367
Continue to review full report at Codecov.
|
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.
Could you add a test which checks this behaviour?
Also, I think it might not work if the parameters are sympy symbols, could you also check for that?
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.
Also, shouldn't mypy take care of this? If parameter
isn't an array (at least 1d) then you should get a mypy error.
|
By looping
for parameter in parameters
,parameter
can be a float. The current implementation breaks the function.