Skip to content

Commit

Permalink
made dummy obs zero length
Browse files Browse the repository at this point in the history
  • Loading branch information
kywch committed Jun 14, 2023
1 parent 1cb6038 commit 222c795
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nmmo/core/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ def _compute_observations(self):
market = Item.Query.for_sale(self.realm.datastore) # the same for all agents

# dummy obs
dummy_tiles = np.zeros((1, len(Tile.State.attr_name_to_col)))
dummy_entities = np.zeros((1, len(Entity.State.attr_name_to_col)))
dummy_inventory = np.zeros((1, len(Item.State.attr_name_to_col)))
dummy_market = np.zeros((1, len(Item.State.attr_name_to_col)))
dummy_tiles = np.zeros((0, len(Tile.State.attr_name_to_col)))
dummy_entities = np.zeros((0, len(Entity.State.attr_name_to_col)))
dummy_inventory = np.zeros((0, len(Item.State.attr_name_to_col)))
dummy_market = np.zeros((0, len(Item.State.attr_name_to_col)))

for agent_id in self.agents:
if agent_id not in self.realm.players:
Expand Down

0 comments on commit 222c795

Please sign in to comment.