Skip to content

Commit

Permalink
[BUG] Do not generate ChooseExpressions until the plan-ahead no consi…
Browse files Browse the repository at this point in the history
…deration gap ends.
  • Loading branch information
sukritkalra committed Apr 7, 2024
1 parent 5e9c160 commit c6bed94
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion schedulers/tetrisched_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,11 @@ def _get_time_discretizations_until(
"""
time_discretization = self._time_discretization.to(EventTime.Unit.US).time
start_time = (
current_time.to(EventTime.Unit.US).time // time_discretization
(
current_time.to(EventTime.Unit.US).time
+ self._plan_ahead_no_consideration_gap.to(EventTime.Unit.US).time
)
// time_discretization
) * time_discretization
end_time = end_time.to(EventTime.Unit.US).time

Expand Down

0 comments on commit c6bed94

Please sign in to comment.