Commit 10a3b0b
Support datetime treatment_time in SyntheticControl plots (#731)
* Support datetime treatment_time in SyntheticControl plots.
Convert intervention line positions through each axis unit converter so both numeric and datetime indices render correctly, and add an sklearn integration regression test for datetime treatment_time plotting.
Co-authored-by: Cursor <cursoragent@cursor.com>
* Add fallback coverage test for SyntheticControl axis conversion.
Exercise the error-handling path in _convert_treatment_time_for_axis for TypeError and ValueError so the synthetic_control.py diff reaches Codecov patch coverage requirements.
Co-authored-by: Cursor <cursoragent@cursor.com>
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 996a31f commit 10a3b0b
2 files changed
Lines changed: 65 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
284 | 296 | | |
285 | 297 | | |
286 | 298 | | |
| |||
402 | 414 | | |
403 | 415 | | |
404 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
405 | 420 | | |
406 | | - | |
| 421 | + | |
407 | 422 | | |
408 | 423 | | |
409 | 424 | | |
| |||
528 | 543 | | |
529 | 544 | | |
530 | 545 | | |
531 | | - | |
| 546 | + | |
532 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
533 | 551 | | |
534 | | - | |
| 552 | + | |
535 | 553 | | |
536 | 554 | | |
537 | 555 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
177 | 221 | | |
178 | 222 | | |
179 | 223 | | |
| |||
0 commit comments