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

Make space_dict global to reuse outside nle. #139

Merged
merged 2 commits into from
Dec 4, 2020
Merged

Make space_dict global to reuse outside nle. #139

merged 2 commits into from
Dec 4, 2020

Conversation

yobibyte
Copy link
Contributor

@yobibyte yobibyte commented Dec 4, 2020

I made it a tuple to protect the default object from modification.

@yobibyte yobibyte requested a review from heiner December 4, 2020 12:09
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 4, 2020
@@ -37,6 +37,99 @@

SKIP_EXCEPTIONS = (b"eat", b"attack", b"direction?", b"pray")

NLE_SPACE_ITEMS = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for not making this a dict already? Immutability?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly. Modifying the default object seems dangerous.

Co-authored-by: Heinrich Kuttler <hnr@fb.com>
@yobibyte yobibyte merged commit 56625c2 into master Dec 4, 2020
@samvelyan samvelyan deleted the vit_dev branch February 9, 2021 12:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants