2e58550f70b9897130fa5a72f57b4f71064062dd,cistar-dev/cistar/envs/lane_changing.py,SimpleLaneChangingAccelerationEnvironment,getState,#SimpleLaneChangingAccelerationEnvironment#,74

Before Change


        return np.array([[self.vehicles[vehicle]["speed"],
                          self.vehicles[vehicle]["lane"],
                          // self.vehicles[vehicle]["absolute_position"],
                          self.get_headway(vehicle, lane=abs(self.vehicles[vehicle]["lane"]-1)),  // adjacent-lane head
                          self.get_headway(vehicle)] for vehicle in self.vehicles]).T             // current lane head

    def render(self):

After Change


        return np.array([[self.vehicles[vehicle]["speed"],
                          self.vehicles[vehicle]["lane"],
                          self.vehicles[vehicle]["absolute_position"],
                          self.timer - self.vehicles[vehicle]["last_lc"]] for vehicle in self.vehicles]).T
                          // self.get_headway(vehicle, lane=abs(self.vehicles[vehicle]["lane"]-1)),  // adjacent-lane head
                          // self.get_headway(vehicle)] for vehicle in self.vehicles]).T             // current lane head
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: flow-project/flow
Commit Name: 2e58550f70b9897130fa5a72f57b4f71064062dd
Time: 2017-06-13
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: getState


Project Name: flow-project/flow
Commit Name: 76a15cc5cae3cbd4ed77917d18047a727a86a8d7
Time: 2018-02-26
Author: akreidieh@gmail.com
File Name: flow/core/vehicles.py
Class Name: Vehicles
Method Name: get_headway


Project Name: flow-project/flow
Commit Name: 2fe232c86fa5ef76d3acebec1135df7a4bf6c60f
Time: 2017-05-31
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: getState


Project Name: flow-project/flow
Commit Name: b85c67b7465be793a0646da90378fcdf7f9d063f
Time: 2017-06-16
Author: eugenevinitsky@Eugenes-MacBook-Pro.local
File Name: cistar-dev/cistar/envs/loop_emission.py
Class Name: SimpleEmissionEnvironment
Method Name: getState