Skip to content

Commit a66c316

Browse files
committed
fix: in TemporalCount, assert that unimplemented cases are not executed
1 parent e864f0e commit a66c316

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

execution_engine/task/task.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,8 @@ def get_start_end_from_interval_type(
494494
return cnf.start, cnf.end
495495

496496
assert isinstance(self.expr, logic.TemporalCount), "Invalid expression type"
497+
assert self.expr.count_min == 1
498+
assert self.expr.count_max is None
497499

498500
if self.expr.interval_criterion is not None:
499501
# last element is the indicator windows

0 commit comments

Comments
 (0)