eom_bounds #492
Closed
Peter230655
started this conversation in
General
eom_bounds
#492
Replies: 2 comments
-
|
The documentation does not say that a negative key works. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Fair enough. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I just noticed this:
I wanted to bound the last eom, so I wrote
eom_bounds = {-1: (a, b)}I got an error: not enough degrees of freedom or similar.
Then I wrote (it is totally 9 eoms) :
eom_bounds = {8: (a, b)}and all was fine.My PR 490 should catch such a wrong key.
My question is this:
Since something like list[-1] is valid to get the last element of list, should we simply change such negative keys to correct ones with, say,
correct_key = len(eom) + negative_keyBeta Was this translation helpful? Give feedback.
All reactions