Skip to content

Commit

Permalink
Merge pull request #36 from facebookresearch/samvelyan/nle-0.8.0
Browse files Browse the repository at this point in the history
Bump the MiniHack and NLE versions
  • Loading branch information
samvelyan committed Nov 30, 2021
2 parents 69480dc + 4587b25 commit 087bb50
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions minihack/navigation.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.

from minihack import MiniHack
from minihack.envs import register
from nle import nethack
from gym.envs import registration


MOVE_ACTIONS = tuple(nethack.CompassDirection)
Expand Down Expand Up @@ -42,7 +42,7 @@ def __init__(self, *args, des_file: str = None, **kwargs):
super().__init__(*args, des_file=des_file, **kwargs)


registration.register(
register(
id="MiniHack-Navigation-Custom-v0",
entry_point="minihack.navigation:MiniHackNavigation",
)
5 changes: 3 additions & 2 deletions minihack/skills.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright (c) Facebook, Inc. and its affiliates.

from minihack import MiniHack
from minihack.base import MH_DEFAULT_OBS_KEYS
from gym.envs import registration
from minihack.envs import register


class MiniHackSkill(MiniHack):
Expand Down Expand Up @@ -51,7 +52,7 @@ def __init__(
super().__init__(*args, des_file=des_file, **kwargs)


registration.register(
register(
id="MiniHack-Skill-Custom-v0",
entry_point="minihack.skills:MiniHackSkill",
)
4 changes: 1 addition & 3 deletions minihack/tests/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
import minihack # noqa: F401

START_METHODS = [
# TODO uncomment spawn after the next NLE release
# m for m in ("fork", "spawn") if m in mp.get_all_start_methods()
m
for m in ("fork")
for m in ("fork", "spawn")
if m in mp.get_all_start_methods()
]

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

install_requires = ["numpy>=1.16", "gym"]
if not os.getenv("READTHEDOCS"):
install_requires.append("nle>=0.7.3")
install_requires.append("nle>=0.8.0")

extras_deps = {
"dev": [
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.1
0.1.2

0 comments on commit 087bb50

Please sign in to comment.