Modify tests based on refactoring
This commit is contained in:
@@ -17,8 +17,7 @@ def test_sb3_compatibility():
|
||||
with open(example_config_path(), "r") as f:
|
||||
cfg = yaml.safe_load(f)
|
||||
|
||||
game = PrimaiteGame.from_config(cfg)
|
||||
gym = PrimaiteGymEnv(game=game)
|
||||
gym = PrimaiteGymEnv(game_config=cfg)
|
||||
model = PPO("MlpPolicy", gym)
|
||||
|
||||
model.learn(total_timesteps=1000)
|
||||
|
||||
Reference in New Issue
Block a user