Commit 853b84d
committed
Add test for constant in time/no time interval field
This test verifies that a field that has no time interval (is constant
in time) evaluates to the same value. Additionally, this test is a
minimal reproducer for the case that the patch in the
search_time_indices function is meant to resolve.
The search_time_indices function is called in the `Field.eval` method, which
always expects a tuple output corresponding to the time index and the
time interpolation weight. Previously, when there was no time interval,
the search_time_indices function only returned a single value.1 parent 38c2ded commit 853b84d
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
150 | 164 | | |
151 | 165 | | |
152 | 166 | | |
| |||
0 commit comments