mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-05-23 07:16:44 +02:00
Agents not smear Dirt
This commit is contained in:
parent
4841336e31
commit
0161197cd8
@ -281,7 +281,7 @@ class BaseFactory(gym.Env):
|
|||||||
else:
|
else:
|
||||||
obs = self._obs_cube
|
obs = self._obs_cube
|
||||||
|
|
||||||
if self.combin_agent_slices_in_obs and self.n_agents >= 1:
|
if self.combin_agent_slices_in_obs and self.n_agents > 1:
|
||||||
agent_obs = np.sum(obs[[key for key, slice in self._slices.items() if c.AGENT.name in slice.name and
|
agent_obs = np.sum(obs[[key for key, slice in self._slices.items() if c.AGENT.name in slice.name and
|
||||||
(not self.omit_agent_slice_in_obs and slice.name != agent.name)]],
|
(not self.omit_agent_slice_in_obs and slice.name != agent.name)]],
|
||||||
axis=0, keepdims=True)
|
axis=0, keepdims=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user