From: Debian Science Maintainers Date: Sat, 19 Aug 2023 20:59:16 +0000 (+0100) Subject: Fix typos X-Git-Tag: archive/raspbian/0.14.0+dfsg-5+rpi1^2^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=52dc9f34b8f74fb1f24f0467e02b4ffadb86277c;p=statsmodels.git Fix typos Origin: lintian Author: Rebecca N. Palmer Forwarded: https://github.com/statsmodels/statsmodels/issues/8932 Gbp-Pq: Name spelling.patch --- diff --git a/statsmodels/tsa/stl/_stl.pyx b/statsmodels/tsa/stl/_stl.pyx index b26f253..00980f8 100644 --- a/statsmodels/tsa/stl/_stl.pyx +++ b/statsmodels/tsa/stl/_stl.pyx @@ -246,11 +246,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 diff --git a/statsmodels/tsa/stl/tests/test_stl.py b/statsmodels/tsa/stl/tests/test_stl.py index 6106db5..d0c3530 100644 --- a/statsmodels/tsa/stl/tests/test_stl.py +++ b/statsmodels/tsa/stl/tests/test_stl.py @@ -232,17 +232,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)