We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1470c17 commit c3e74fbCopy full SHA for c3e74fb
pymc_extras/statespace/models/structural/components/seasonality.py
@@ -239,8 +239,12 @@ def __init__(
239
if observed_state_names is None:
240
observed_state_names = ["data"]
241
242
- if season_length <= 1:
243
- raise ValueError(f"season_length must be greater than 1, got {season_length}")
+ if season_length <= 1 or not isinstance(duration, int):
+ raise ValueError(
244
+ f"season_length must be an integer greater than 1, got {season_length}"
245
+ )
246
+ if duration <= 0 or not isinstance(duration, int):
247
+ raise ValueError(f"duration must be a positive integer, got {duration}")
248
if name is None:
249
name = f"Seasonal[s={season_length}, d={duration}]"
250
if state_names is None:
0 commit comments