Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Import nle._pyconverter in nle.__init__ so it can be found on some
Browse files Browse the repository at this point in the history
systems.
  • Loading branch information
cdmatters committed Apr 14, 2022
1 parent bff3e2e commit 998e1e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions nle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@
# This is needed to register envs
import nle.env

# This is needed to find module on some systems
import nle.dataset

from .version import __version__
2 changes: 1 addition & 1 deletion nle/tests/test_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def convert_n_times(n):

memory_list = memory_usage((convert_n_times, (100,), {}))
# After warmup the last few iterations should be constant memory
memory_array = np.array(memory_list[3:])
memory_array = np.array(memory_list[5:])
memory_change = (memory_array / memory_array[0]) - 1
assert max(memory_change) < 0.001 # 0.1 per cent

Expand Down

0 comments on commit 998e1e8

Please sign in to comment.