Skip to content

Commit

Permalink
Solved typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopaniego committed Feb 9, 2022
1 parent fcb7934 commit c2301c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions behavior_metrics/utils/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def get_percentage_completed(experiment_metrics, checkpoints, perfect_lap_checkp
if dist < 5:
checkpoints_reached_dir_1 += 1
perfect_point_iterator_dir_1 += 1
if checkpoints_reached / len(perfect_lap_checkpoints) == 1:
if checkpoints_reached_dir_1 / len(perfect_lap_checkpoints) == 1:
lap_checkpoint = checkpoint_iterator
if perfect_point_iterator_dir_1 >= len(perfect_lap_checkpoints):
perfect_point_iterator_dir_1 = 0
Expand All @@ -192,7 +192,7 @@ def get_percentage_completed(experiment_metrics, checkpoints, perfect_lap_checkp
if dist < 5:
checkpoints_reached_dir_2 += 1
perfect_point_iterator_dir_2 -= 1
if checkpoints_reached / len(perfect_lap_checkpoints) == 1:
if checkpoints_reached_dir_2 / len(perfect_lap_checkpoints) == 1:
lap_checkpoint = checkpoint_iterator
if perfect_point_iterator_dir_2 <= 0:
perfect_point_iterator_dir_2 = len(perfect_lap_checkpoints)
Expand Down

0 comments on commit c2301c2

Please sign in to comment.