Skip to content

Commit

Permalink
Fixing formatting of modified files
Browse files Browse the repository at this point in the history
  • Loading branch information
pandyah5 committed Jun 24, 2024
1 parent fc23ffc commit 8b992cc
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 13 deletions.
10 changes: 3 additions & 7 deletions pettingzoo/mpe/_mpe_utils/simple_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(
# This will be used to scale the rendering
all_poses = [entity.state.p_pos for entity in self.world.entities]
self.original_cam_range = np.max(np.abs(np.array(all_poses)))

self.steps = 0

self.current_actions = [None] * self.num_agents
Expand Down Expand Up @@ -327,12 +327,8 @@ def draw(self):
else:
radius = entity.size * 350

pygame.draw.circle(
self.screen, entity.color * 200, (x, y), radius
)
pygame.draw.circle(
self.screen, (0, 0, 0), (x, y), radius, 1
) # borders
pygame.draw.circle(self.screen, entity.color * 200, (x, y), radius)
pygame.draw.circle(self.screen, (0, 0, 0), (x, y), radius, 1) # borders
assert (
0 < x < self.width and 0 < y < self.height
), f"Coordinates {(x, y)} are out of bounds."
Expand Down
8 changes: 7 additions & 1 deletion pettingzoo/mpe/simple/simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@


class raw_env(SimpleEnv, EzPickle):
def __init__(self, max_cycles=25, continuous_actions=False, render_mode=None, dynamic_rescaling=False):
def __init__(
self,
max_cycles=25,
continuous_actions=False,
render_mode=None,
dynamic_rescaling=False,
):
EzPickle.__init__(
self,
max_cycles=max_cycles,
Expand Down
9 changes: 8 additions & 1 deletion pettingzoo/mpe/simple_adversary/simple_adversary.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,14 @@


class raw_env(SimpleEnv, EzPickle):
def __init__(self, N=2, max_cycles=25, continuous_actions=False, render_mode=None, dynamic_rescaling=False):
def __init__(
self,
N=2,
max_cycles=25,
continuous_actions=False,
render_mode=None,
dynamic_rescaling=False,
):
EzPickle.__init__(
self,
N=N,
Expand Down
8 changes: 7 additions & 1 deletion pettingzoo/mpe/simple_crypto/simple_crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@


class raw_env(SimpleEnv, EzPickle):
def __init__(self, max_cycles=25, continuous_actions=False, render_mode=None, dynamic_rescaling=False):
def __init__(
self,
max_cycles=25,
continuous_actions=False,
render_mode=None,
dynamic_rescaling=False,
):
EzPickle.__init__(
self,
max_cycles=max_cycles,
Expand Down
8 changes: 7 additions & 1 deletion pettingzoo/mpe/simple_push/simple_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@


class raw_env(SimpleEnv, EzPickle):
def __init__(self, max_cycles=25, continuous_actions=False, render_mode=None, dynamic_rescaling=False):
def __init__(
self,
max_cycles=25,
continuous_actions=False,
render_mode=None,
dynamic_rescaling=False,
):
EzPickle.__init__(
self,
max_cycles=max_cycles,
Expand Down
7 changes: 6 additions & 1 deletion pettingzoo/mpe/simple_reference/simple_reference.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@

class raw_env(SimpleEnv, EzPickle):
def __init__(
self, local_ratio=0.5, max_cycles=25, continuous_actions=False, render_mode=None, dynamic_rescaling=False
self,
local_ratio=0.5,
max_cycles=25,
continuous_actions=False,
render_mode=None,
dynamic_rescaling=False,
):
EzPickle.__init__(
self,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,13 @@


class raw_env(SimpleEnv, EzPickle):
def __init__(self, max_cycles=25, continuous_actions=False, render_mode=None, dynamic_rescaling=False):
def __init__(
self,
max_cycles=25,
continuous_actions=False,
render_mode=None,
dynamic_rescaling=False,
):
EzPickle.__init__(
self,
max_cycles=max_cycles,
Expand Down

0 comments on commit 8b992cc

Please sign in to comment.