Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to gymnasium from gym #4

Merged
merged 1 commit into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
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