1999266bbaa82eac33a06b0b0a66821f14d77936,rllib/env/pettingzoo_env.py,PettingZooEnv,reset,#PettingZooEnv#,117

Before Change


        for agent in self.agents:

            // For each agent get initial observations
            self.obs[agent] = self.aec_env.observe(agent)

        return self.obs

    def step(self, action_dict):

After Change



    def reset(self):
        self.env.reset()
        return {
            self.env.agent_selection: self.env.observe(
                self.env.agent_selection)
        }

    def step(self, action):
        self.env.step(action[self.env.agent_selection])
        obs_d = {}
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 1999266bbaa82eac33a06b0b0a66821f14d77936
Time: 2020-11-09
Author: weepingwillowben@gmail.com
File Name: rllib/env/pettingzoo_env.py
Class Name: PettingZooEnv
Method Name: reset


Project Name: hyperspy/hyperspy
Commit Name: a01ea76e11eb15ff85f570623b362b205c2b67f9
Time: 2017-04-09
Author: frandelapena@gmail.com
File Name: hyperspy/gui_ipywidgets/model.py
Class Name:
Method Name: get_scalable_fixed_patter_widget


Project Name: facebookresearch/ParlAI
Commit Name: b9a661d7335a7a1c098a98c5085e7252b3c45940
Time: 2020-03-25
Author: jase@fb.com
File Name: parlai/tasks/convai2/worlds.py
Class Name: InteractiveWorld
Method Name: parley