Skip to content

Commit

Permalink
Fix warnings from waterworld test
Browse files Browse the repository at this point in the history
These came because of numpy changes that didn't like using a
numpy array of 1 item as a scalar.
  • Loading branch information
dm-ackerman committed Jan 21, 2024
1 parent bc62f82 commit d1b3638
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pettingzoo/sisl/waterworld/waterworld_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def add_obj(self):
Evaders(
x,
y,
vx,
vy,
vx[0],
vy[0],
radius=2 * self.base_radius,
collision_type=i + 1000,
max_speed=self.evader_speed,
Expand All @@ -198,8 +198,8 @@ def add_obj(self):
Poisons(
x,
y,
vx,
vy,
vx[0],
vy[0],
radius=0.75 * self.base_radius,
collision_type=i + 2000,
max_speed=self.poison_speed,
Expand Down

0 comments on commit d1b3638

Please sign in to comment.