Commit 396f33f
Fix date-dimension mismatch in forecast_infections (#1324)
* Fix date-dimension mismatch in forecast_infections
Move summary() call before args modification to ensure dates are
calculated from the original fit dimensions rather than extended
dimensions. This fixes the error when extending R trajectory beyond
the original observation period.
Co-Authored-By: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
* Address review feedback
- Fix NEWS.md to start with action verb "Fixed"
- Add unit test for extended R trajectory scenario
Co-Authored-By: Sebastian Funk <sebastian.funk@lshtm.ac.uk>
---------
Co-authored-by: sbfnk-bot <sbfnk-bot@users.noreply.github.com>
Co-authored-by: Sebastian Funk <sebastian.funk@lshtm.ac.uk>1 parent 8454b07 commit 396f33f
File tree
3 files changed
+27
-1
lines changed- R
- tests/testthat
3 files changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
401 | 404 | | |
402 | 405 | | |
403 | 406 | | |
| |||
422 | 425 | | |
423 | 426 | | |
424 | 427 | | |
425 | | - | |
426 | 428 | | |
427 | 429 | | |
428 | 430 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
0 commit comments