Skip to content

Commit

Permalink
fix: fix typo in conflict stateful init
Browse files Browse the repository at this point in the history
  • Loading branch information
RuanJohn committed Jan 14, 2024
1 parent 9c96101 commit 0cf3550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions matrax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from jumanji.registration import make, register
from jumanji.version import __version__
from jumanji.registration import register

from matrax.env import MatrixGame
from matrax.games import climbing_game, conflict_games, no_conflict_games, penalty_games
from matrax.types import Observation, State

"""Environment Registration"""

Expand Down Expand Up @@ -92,7 +89,7 @@
)
register(
f"Conflict-{_id}-stateful-v0",
entry_point="matrix:MatrixGame",
entry_point="matrax:MatrixGame",
kwargs={
"payoff_matrix": payoff_matrix,
"keep_state": True,
Expand Down
3 changes: 2 additions & 1 deletion matrax/env_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
from jumanji.testing.pytrees import assert_is_jax_array_tree
from jumanji.types import TimeStep

from matrax import MatrixGame, State
from matrax.env import MatrixGame
from matrax.games import climbing_game
from matrax.types import State


@pytest.fixture
Expand Down

0 comments on commit 0cf3550

Please sign in to comment.