Skip to content

Commit 8661f8e

Browse files
spolisarCopilot
andcommitted
fix: fix ternary operator error in detect_anomalies error message
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent a51bc96 commit 8661f8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

timecopilot/models/utils/forecaster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def detect_anomalies(
359359
_n_windows = min(n_windows, max_possible_windows)
360360
if _n_windows < 1:
361361
# min series length should be 1 higher for Prophet than other models
362-
exp_min_series_length = h + 1 if isinstance(self, ProphetBase) else h + 2
362+
exp_min_series_length = h + 2 if isinstance(self, ProphetBase) else h + 1
363363
raise ValueError(
364364
f"Cannot perform anomaly detection: series too short. "
365365
f"Minimum series length required: {exp_min_series_length}, "

0 commit comments

Comments
 (0)