Skip to content

Commit

Permalink
Restore get env if config exists
Browse files Browse the repository at this point in the history
  • Loading branch information
romaf5 committed Feb 3, 2023
1 parent eacfd0f commit 49edcfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rl_games/common/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ def __init__(self, params):
self.env_info = self.env.get_env_info()
self.num_agents = 1
else:
# is there any way 'self.env' can be used in this scenario?
# self.env = config.get('vec_env')
self.env = config.get('vec_env')
self.num_agents = self.env_info['agents']
self.value_size = self.env_info.get('value_size', 1)
self.action_space = self.env_info['action_space']
Expand Down

0 comments on commit 49edcfd

Please sign in to comment.