Fix typos
authorDebian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Thu, 5 Nov 2020 07:28:38 +0000 (07:28 +0000)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Thu, 5 Nov 2020 07:28:38 +0000 (07:28 +0000)
Origin: lintian
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name spelling.patch

statsmodels/tsa/_stl.pyx
statsmodels/tsa/tests/test_stl.py

index 79958e7b6ece89843534580ddb707e95ba99ebcf..4438c21bf03d894e8353a4eca05a1747871384ff 100644 (file)
@@ -245,11 +245,11 @@ cdef class STL(object):
         self.low_pass_deg = low_pass_deg  # ildeg
         self.robust = robust
         if not _is_pos_int(low_pass_jump, False):
-            raise ValueError('low_pass_jump must be a positve integer')
+            raise ValueError('low_pass_jump must be a positive integer')
         if not _is_pos_int(seasonal_jump, False):
-            raise ValueError('seasonal_jump must be a positve integer')
+            raise ValueError('seasonal_jump must be a positive integer')
         if not _is_pos_int(trend_jump, False):
-            raise ValueError('trend_jump must be a positve integer')
+            raise ValueError('trend_jump must be a positive integer')
         self.low_pass_jump = low_pass_jump
         self.seasonal_jump = seasonal_jump
         self.trend_jump = trend_jump
index 36ae5924afe8a5ab909aef8c4fd30a42c85ee838..bc32d89c124e9ed2a909717c7430e5f2f3460f6b 100644 (file)
@@ -203,17 +203,17 @@ def test_jump_errors(default_kwargs):
     class_kwargs, _, _ = _to_class_kwargs(default_kwargs)
     endog = class_kwargs['endog']
     period = class_kwargs['period']
-    with pytest.raises(ValueError, match='low_pass_jump must be a positve'):
+    with pytest.raises(ValueError, match='low_pass_jump must be a positive'):
         STL(endog=endog, period=period, low_pass_jump=0)
-    with pytest.raises(ValueError, match='low_pass_jump must be a positve'):
+    with pytest.raises(ValueError, match='low_pass_jump must be a positive'):
         STL(endog=endog, period=period, low_pass_jump=1.0)
-    with pytest.raises(ValueError, match='seasonal_jump must be a positve'):
+    with pytest.raises(ValueError, match='seasonal_jump must be a positive'):
         STL(endog=endog, period=period, seasonal_jump=0)
-    with pytest.raises(ValueError, match='seasonal_jump must be a positve'):
+    with pytest.raises(ValueError, match='seasonal_jump must be a positive'):
         STL(endog=endog, period=period, seasonal_jump=1.0)
-    with pytest.raises(ValueError, match='trend_jump must be a positve'):
+    with pytest.raises(ValueError, match='trend_jump must be a positive'):
         STL(endog=endog, period=period, trend_jump=0)
-    with pytest.raises(ValueError, match='trend_jump must be a positve'):
+    with pytest.raises(ValueError, match='trend_jump must be a positive'):
         STL(endog=endog, period=period, trend_jump=1.0)