Skip to content

Commit a786c16

Browse files
author
Saurav Agarwal
committed
fix step last
1 parent 031046e commit a786c16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/scripts/evaluators/eval.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ def evaluate(self, save=True):
127127
cost_data[controller_id, env_count, step_count:] = (
128128
normalized_objective_value
129129
)
130-
step_count = self.num_steps - 1
130+
step_count = self.num_steps
131131

132-
if (step_count) % 10 == 0 or step_count == self.num_steps - 1:
132+
if (step_count) % 10 == 0 or step_count == self.num_steps:
133133
info = f"Controller {controller_id}/{self.num_controllers}: {controller.name} "
134134

135135
progress.update(

0 commit comments

Comments
 (0)