Skip to content

Commit 14fbf53

Browse files
spolisarCopilot
andauthored
fix: fix ternary operator error in detect_anomalies error message
Co-authored-by: Copilot <[email protected]>
1 parent e8cdfc2 commit 14fbf53

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)