Skip to content

Commit

Permalink
Changes to pass flake8 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
sukritkalra committed Feb 21, 2024
1 parent 4c0136c commit 3130257
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,14 @@
flags.DEFINE_bool(
"finer_discretization_at_prev_solution",
False,
"If `True`, the scheduler keeps discretization of 1 around previous solution. (default: False). "
"If `True`, the scheduler keeps discretization of 1 around previous solution. "
"The discretization is dynamically decided based on the occupancy request for "
"each time slice. (default: False)",
)
flags.DEFINE_integer(
"finer_discretization_window",
5,
"The discretization window around prvious solution that keeps discretization of 1. ",
"The window around previous solution that keeps discretization of 1.",
)
flags.DEFINE_integer(
"scheduler_max_time_discretization",
Expand Down Expand Up @@ -788,6 +788,7 @@ def main(args):
_flags=FLAGS,
)
elif FLAGS.scheduler == "TetriSched":
finer_discretization = FLAGS.finer_discretization_at_prev_solution
scheduler = TetriSchedScheduler(
preemptive=FLAGS.preemption,
runtime=EventTime(FLAGS.scheduler_runtime, EventTime.Unit.US),
Expand All @@ -808,7 +809,7 @@ def main(args):
),
dynamic_discretization=FLAGS.scheduler_dynamic_discretization,
max_occupancy_threshold=FLAGS.scheduler_max_occupancy_threshold,
finer_discretization_at_prev_solution=FLAGS.finer_discretization_at_prev_solution,
finer_discretization_at_prev_solution=finer_discretization,
finer_discretization_window=EventTime(
FLAGS.finer_discretization_window, EventTime.Unit.US
),
Expand Down

0 comments on commit 3130257

Please sign in to comment.