Skip to content

Commit

Permalink
good to go
Browse files Browse the repository at this point in the history
  • Loading branch information
NishanthJKumar committed Nov 2, 2023
1 parent c62881d commit bc25a49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions predicators/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
import time
from collections import defaultdict
from pathlib import Path
import numpy as np
from typing import List, Optional, Sequence, Tuple

import dill as pkl
import numpy as np

from predicators import utils
from predicators.approaches import ApproachFailure, ApproachTimeout, \
Expand Down Expand Up @@ -392,14 +392,14 @@ def _run_testing(env: BaseEnv, approach: BaseApproach) -> Metrics:
total_suc_time += (solve_time + exec_time)
make_video = CFG.make_test_videos
video_file = f"{save_prefix}__task{test_task_idx+1}.mp4"
if CFG.env == "behavior": # pragma: no cover
if CFG.env == "behavior": # pragma: no cover
assert isinstance(env, BehaviorEnv)
# Step the environment with a dummy action a few
# times so that video making doesn't get abruptly
# cut off.
for _ in range(25):
env.igibson_behavior_env.step(np.zeros(
env.igibson_behavior_env.action_space.shape))
env.igibson_behavior_env.step(
np.zeros(env.igibson_behavior_env.action_space.shape))
else:
if not caught_exception:
log_message = "Policy failed to reach goal"
Expand Down

0 comments on commit bc25a49

Please sign in to comment.