Skip to content

obs space with max entity id#110

Open
keraJLi wants to merge 1 commit intoepignatelli:mainfrom
keraJLi:main
Open

obs space with max entity id#110
keraJLi wants to merge 1 commit intoepignatelli:mainfrom
keraJLi:main

Conversation

@keraJLi
Copy link
Copy Markdown

@keraJLi keraJLi commented Feb 6, 2026

Fixes #109

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #109 where observations were outside the observation space. The hardcoded maximum of 8 (from n_elements=9) was insufficient to represent all entity IDs, particularly the PLAYER entity ID which has value 10.

Changes:

  • Dynamically calculates the maximum entity ID from the EntityIds class at module level
  • Replaces hardcoded n_elements=9 with the calculated _MAX_CATEGORICAL_VALUE (11) in categorical, categorical_first_person, and symbolic observation space definitions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Observations are outside the observation space

2 participants