Skip to content

Commit

Permalink
Merge pull request #4 from dsctt/d/magent2
Browse files Browse the repository at this point in the history
Switch to gymnasium from gym
  • Loading branch information
jjshoots authored Oct 17, 2022
2 parents 9a70ee2 + dcc5020 commit 736dda5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
"""

import numpy as np
from gym.utils import EzPickle
from gymnasium.utils import EzPickle
from pettingzoo.utils.conversions import parallel_to_aec_wrapper

import magent2
Expand Down
2 changes: 1 addition & 1 deletion magent2/environments/battle/battle.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
import math

import numpy as np
from gym.utils import EzPickle
from gymnasium.utils import EzPickle
from pettingzoo.utils.conversions import parallel_to_aec_wrapper

import magent2
Expand Down
2 changes: 1 addition & 1 deletion magent2/environments/battlefield/battlefield.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
import math

import numpy as np
from gym.utils import EzPickle
from gymnasium.utils import EzPickle
from pettingzoo.utils.conversions import parallel_to_aec_wrapper

import magent2
Expand Down
2 changes: 1 addition & 1 deletion magent2/environments/combined_arms/combined_arms.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
import math

import numpy as np
from gym.utils import EzPickle
from gymnasium.utils import EzPickle
from pettingzoo.utils.conversions import parallel_to_aec_wrapper

import magent2
Expand Down
2 changes: 1 addition & 1 deletion magent2/environments/gather/gather.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"""

import numpy as np
from gym.utils import EzPickle
from gymnasium.utils import EzPickle
from pettingzoo.utils.conversions import parallel_to_aec_wrapper

import magent2
Expand Down
6 changes: 3 additions & 3 deletions magent2/environments/magent_env.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np
from gym.spaces import Box, Discrete
from gym.utils import seeding
from gymnasium.spaces import Box, Discrete
from gymnasium.utils import seeding
from pettingzoo.utils import wrappers
from pettingzoo.utils.env import ParallelEnv

Expand Down Expand Up @@ -140,7 +140,7 @@ def _calc_state_shape(self):

def render(self):
if self.render_mode is None:
# gym.logger.WARN(
# gymnasium.logger.WARN(
# "You are calling render method without specifying any render mode."
# )
return
Expand Down
2 changes: 1 addition & 1 deletion magent2/environments/tiger_deer/tiger_deer.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"""

import numpy as np
from gym.utils import EzPickle
from gymnasium.utils import EzPickle
from pettingzoo.utils.conversions import parallel_to_aec_wrapper

import magent2
Expand Down

0 comments on commit 736dda5

Please sign in to comment.