94a405c5f6caafc99550d5267a6c94cf20af2d59,flow/envs/loop_accel.py,SimpleMultiAgentAccelerationEnvironment,get_state,#SimpleMultiAgentAccelerationEnvironment#,125

Before Change


        for i in range(self.scenario.num_rl_vehicles):
            speed = [self.vehicles.get_speed(veh_id)
                     for veh_id in self.sorted_ids]
            abs_pos = [self.vehicles.get_absolute_position(veh_id)
                       for veh_id in self.sorted_ids]
            tup = (speed, abs_pos)
            obs_arr.append(tup)

After Change


            sorted_ids = np.array(self.ids)[sorted_indx]

            speed = [self.vehicles.get_speed(veh_id) for veh_id in sorted_ids]
            abs_pos = [(self.vehicles.get_absolute_position(veh_id) -
                        self.vehicles.get_absolute_position(rl_id)) % self.scenario.length
                       for veh_id in sorted_ids]

            tup = (speed, abs_pos)
            obs_arr.append(tup)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: flow-project/flow
Commit Name: 94a405c5f6caafc99550d5267a6c94cf20af2d59
Time: 2017-10-27
Author: eugenevinitsky@airbears2-10-142-37-47.airbears2.1918.berkeley.edu
File Name: flow/envs/loop_accel.py
Class Name: SimpleMultiAgentAccelerationEnvironment
Method Name: get_state


Project Name: flow-project/flow
Commit Name: b45feb97fad98b628e9be476821a329a6cf68327
Time: 2018-04-23
Author: akreidieh@gmail.com
File Name: flow/envs/loop/lane_changing.py
Class Name: LaneChangeAccelEnv
Method Name: get_state


Project Name: flow-project/flow
Commit Name: fcfafff3eb05887529fd4b85a21b3d1c913c3062
Time: 2017-09-25
Author: eugenevinitsky@airbears2-10-142-38-22.airbears2.1918.berkeley.edu
File Name: cistar/envs/two_intersection.py
Class Name: TwoIntersectionEnvironment
Method Name: get_state