Commit 596ae86
committed
Use custom_isless() to compare all timescales from the user
Some timescale types don't have `isless()` defined between them so
`next_datetime_transition()` defined a `custom_isless()` helper to sort
them. But it wasn't used when checking for a minimum timescale, causing an
exception if the user-requested minimum timescale was a year or month.1 parent 90e6cfa commit 596ae86
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
192 | 197 | | |
193 | 198 | | |
194 | 199 | | |
| |||
0 commit comments