File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -19,22 +19,22 @@ if [ "$LINT" == true ]; then
19
19
flake8 --isolated \
20
20
statsmodels/resampling/ \
21
21
statsmodels/interface/ \
22
+ statsmodels/duration/__init__.py \
23
+ statsmodels/graphics/tsaplots.py \
22
24
statsmodels/graphics/functional.py \
23
25
statsmodels/graphics/tests/test_functional.py \
24
26
statsmodels/examples/tests/ \
25
27
statsmodels/iolib/smpickle.py \
26
28
statsmodels/iolib/tests/test_pickle.py \
27
- statsmodels/graphics/tsaplots.py \
28
- statsmodels/tsa/regime_switching \
29
29
statsmodels/regression/mixed_linear_model.py \
30
- statsmodels/duration/__init__.py \
31
30
statsmodels/regression/recursive_ls.py \
32
31
statsmodels/tools/linalg.py \
33
32
statsmodels/tools/web.py \
34
33
statsmodels/tools/tests/test_linalg.py \
35
34
statsmodels/tools/decorators.py \
36
35
statsmodels/tools/tests/test_decorators.py \
37
36
statsmodels/tsa/base/tests/test_datetools.py \
37
+ statsmodels/tsa/regime_switching \
38
38
statsmodels/tsa/vector_ar/dynamic.py \
39
39
statsmodels/tsa/vector_ar/hypothesis_test_results.py \
40
40
statsmodels/tsa/statespace/* .py \
Original file line number Diff line number Diff line change @@ -1412,8 +1412,6 @@ def arfreq(self):
1412
1412
roots.
1413
1413
"""
1414
1414
z = self .arroots
1415
- if not z .size :
1416
- return
1417
1415
return np .arctan2 (z .imag , z .real ) / (2 * pi )
1418
1416
1419
1417
@cache_readonly
@@ -1425,8 +1423,6 @@ def mafreq(self):
1425
1423
roots.
1426
1424
"""
1427
1425
z = self .maroots
1428
- if not z .size :
1429
- return
1430
1426
return np .arctan2 (z .imag , z .real ) / (2 * pi )
1431
1427
1432
1428
@cache_readonly
Original file line number Diff line number Diff line change @@ -1980,6 +1980,18 @@ def test_predictions(self):
1980
1980
predictions = self .arma_00_res .predict ()
1981
1981
assert_almost_equal (self .y .mean () * np .ones_like (predictions ), predictions )
1982
1982
1983
+ def test_arroots (self ):
1984
+ # regression test; older implementation of arroots returned None
1985
+ # instead of en empty array
1986
+ roots = self .arma_00_res .arroots
1987
+ assert_equal (roots .size , 0 )
1988
+
1989
+ def test_maroots (self ):
1990
+ # regression test; older implementation of arroots returned None
1991
+ # instead of en empty array
1992
+ roots = self .arma_00_res .maroots
1993
+ assert_equal (roots .size , 0 )
1994
+
1983
1995
@pytest .mark .skip
1984
1996
def test_information_criteria (self ):
1985
1997
# This test is invalid since the ICs differ due to df_model differences
You can’t perform that action at this time.
0 commit comments