Skip to content

Commit

Permalink
Fix pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottower committed Jan 18, 2024
1 parent ef2cf68 commit b3ab650
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_vector/test_render.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from pettingzoo.butterfly import pistonball_v6
import supersuit as ss
from stable_baselines3.common.vec_env import VecVideoRecorder

import supersuit as ss


def schedule(episode_idx):
print(episode_idx)
Expand All @@ -13,7 +14,7 @@ def make_sb3_record_env():
print(env.render_mode)
env = ss.pettingzoo_env_to_vec_env_v1(env)
envs = ss.concat_vec_envs_v1(env, 1, num_cpus=0, base_class="stable_baselines3")
envs = VecVideoRecorder(envs, f"/tmp", schedule)
envs = VecVideoRecorder(envs, "/tmp", schedule)
return envs


Expand Down

0 comments on commit b3ab650

Please sign in to comment.