Skip to content

Commit

Permalink
Merge pull request #467 from instadeepai/develop
Browse files Browse the repository at this point in the history
Feature / Release 0.1.2 v2
  • Loading branch information
KaleabTessera authored Mar 28, 2022
2 parents 25d87f0 + a8f0c3b commit cc51546
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: pypi

on:
release:
types: [created]
types: [published]

jobs:
deploy:
Expand Down
2 changes: 0 additions & 2 deletions mava/systems/tf/mappo/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def make_default_networks(
# Create the shared observation network; here simply a state-less operation.
if observation_network is None:
observation_network = tf2_utils.to_sonnet_module(tf.identity)
else:
observation_network = observation_network

# Note: The discrete case must be placed first as it inherits from BoundedArray.
if isinstance(specs[key].actions, dm_env.specs.DiscreteArray): # discrete
Expand Down
1 change: 0 additions & 1 deletion mava/utils/environments/open_spiel_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
_has_open_spiel = True
except ModuleNotFoundError:
_has_open_spiel = False
pass


def load_open_spiel_env(game_name: str) -> "rl_environment.Environment":
Expand Down
3 changes: 0 additions & 3 deletions mava/utils/environments/pettingzoo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,20 @@
_has_supersuit = True
except ModuleNotFoundError:
_has_supersuit = False
pass

try:
from smac.env.pettingzoo import StarCraft2PZEnv

_has_smac = True
except ModuleNotFoundError:
_has_smac = False
pass

try:
import pettingzoo # noqa: F401

_has_petting_zoo = True
except ModuleNotFoundError:
_has_petting_zoo = False
pass

from mava.wrappers import (
ParallelEnvWrapper,
Expand Down
1 change: 0 additions & 1 deletion mava/utils/wrapper_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
_has_petting_zoo = True
except ModuleNotFoundError:
_has_petting_zoo = False
pass
# Need to install typing_extensions since we support pre python 3.8
from typing_extensions import TypedDict

Expand Down
2 changes: 0 additions & 2 deletions mava/wrappers/env_preprocess_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
_has_supersuit = True
except ModuleNotFoundError:
_has_supersuit = False
pass


try:
Expand All @@ -38,7 +37,6 @@
_has_petting_zoo = True
except ModuleNotFoundError:
_has_petting_zoo = False
pass

if _has_petting_zoo:
from pettingzoo.utils import BaseParallelWraper
Expand Down
2 changes: 0 additions & 2 deletions mava/wrappers/environment_loop_wrappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ def _retrieve_render(self) -> Optional[np.ndarray]:
)
except Exception as ex:
print(f"Render frames exception: {ex}")
pass
return render

def _append_frame(self) -> None:
Expand Down Expand Up @@ -382,7 +381,6 @@ def _write_frames(self) -> None:
self._save_gif(path)
except Exception as ex:
print(f"Write frames exception: {ex}")
pass
self._frames = []
# Clear matplotlib figures in memory
plt.close("all")
Expand Down

0 comments on commit cc51546

Please sign in to comment.