Check if predict_at/day is in .totals
- this is a minor sanity check
This commit is contained in:
parent
f36fffdd4d
commit
0c1ff5338d
3 changed files with 12 additions and 4 deletions
|
|
@ -99,7 +99,7 @@ def stl( # noqa:C901,WPS210,WPS211,WPS231
|
|||
if ns % 2 == 0 or ns < 7:
|
||||
raise ValueError('`ns` must be odd and `>= 7`')
|
||||
|
||||
default_nt = math.ceil((1.5 * frequency) / (1 - (1.5 / ns))) # noqa:WPS432
|
||||
default_nt = math.ceil((1.5 * frequency) / (1 - (1.5 / ns)))
|
||||
if nt is not None:
|
||||
if nt % 2 == 0 or nt < default_nt:
|
||||
raise ValueError(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue