Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed incompatibility between gym and gymnasium
  • Loading branch information
pimpale committed May 27, 2023
commit 3249fa4339b467d6daf3ca3c7c9ecbea3237b15e
1 change: 1 addition & 0 deletions metadrive/engine/base_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ def process_memory():
cm = lm

for manager_name, manager in self.managers.items():
print(manager)
manager.after_reset()

if _debug_memory_usage:
Expand Down
2 changes: 1 addition & 1 deletion metadrive/manager/agent_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from metadrive.policy.idm_policy import TrajectoryIDMPOlicy
from typing import Dict

from gym.spaces import Box, Dict, MultiDiscrete, Discrete
from gymnasium.spaces import Box, Dict, MultiDiscrete, Discrete

from metadrive.constants import DEFAULT_AGENT
from metadrive.manager.base_manager import BaseManager
Expand Down