Commit 0805945
committed
fix(mps): allow bisection_timestamp_search to match the first or last timestamp exactly
The border guards used <= and >=, so querying the exact first or last
timestamp returned None instead of index 0 or len - 1, violating the
"closest or equal" wording in every get_nearest_* wrapper docstring.
Tightened to < and >.
Separable from the issue #100 fix; can be dropped if you'd rather see
it as its own PR.1 parent bdddaf9 commit 0805945
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments