@@ -369,7 +369,7 @@ def test_its():
369369 .set_index ("date" )
370370 )
371371 treatment_time = pd .to_datetime ("2017-01-01" )
372- result = cp .StructuralTimeSeries (
372+ result = cp .InterruptedTimeSeries (
373373 df ,
374374 treatment_time ,
375375 formula = "y ~ 1 + t + C(month)" ,
@@ -378,7 +378,7 @@ def test_its():
378378 # Test 1. plot method runs
379379 result .plot ()
380380 # 2. causalpy.StructuralTimeSeries returns correct type
381- assert isinstance (result , cp .StructuralTimeSeries )
381+ assert isinstance (result , cp .InterruptedTimeSeries )
382382 assert len (result .idata .posterior .coords ["chain" ]) == sample_kwargs ["chains" ]
383383 assert len (result .idata .posterior .coords ["draw" ]) == sample_kwargs ["draws" ]
384384 result .summary ()
@@ -425,7 +425,7 @@ def test_its_covid():
425425 .set_index ("date" )
426426 )
427427 treatment_time = pd .to_datetime ("2020-01-01" )
428- result = cp .StructuralTimeSeries (
428+ result = cp .InterruptedTimeSeries (
429429 df ,
430430 treatment_time ,
431431 formula = "standardize(deaths) ~ 0 + standardize(t) + C(month) + standardize(temp)" , # noqa E501
@@ -434,7 +434,7 @@ def test_its_covid():
434434 # Test 1. plot method runs
435435 result .plot ()
436436 # 2. causalpy.StructuralTimeSeries returns correct type
437- assert isinstance (result , cp .StructuralTimeSeries )
437+ assert isinstance (result , cp .InterruptedTimeSeries )
438438 assert len (result .idata .posterior .coords ["chain" ]) == sample_kwargs ["chains" ]
439439 assert len (result .idata .posterior .coords ["draw" ]) == sample_kwargs ["draws" ]
440440 result .summary ()
0 commit comments