bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b,tests/test_environment_base_class.py,TestApplyingActionsWithSumo,test_apply_lane_change_target_lane,#TestApplyingActionsWithSumo#,304

Before Change


        np.testing.assert_array_almost_equal(lane1, expected_lane1, 1)

        // update the lane values in the vehicles class
        for i, veh_id in enumerate(ids):
            self.env.vehicles.set_lane(veh_id, lane1[i])

        // perform lane-changing actions using the direction method one more
        // time to test lane changes to the right
        target_lane1 = np.array([-1, -1, 2, -1, -1])
        self.env.apply_lane_change(ids, target_lane=target_lane1)
        self.env.traci_connection.simulationStep()

After Change


        np.testing.assert_array_almost_equal(lane1, expected_lane1, 1)

        // collect new network observations from sumo
        network_observations = \
            self.env.traci_connection.vehicle.getSubscriptionResults()

        // store the network observations in the vehicles class
        self.env.vehicles.set_sumo_observations(network_observations, self.env)

        // perform lane-changing actions using the direction method one more
        // time to test lane changes to the right
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 10

Instances


Project Name: flow-project/flow
Commit Name: bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b
Time: 2017-10-30
Author: akreidieh@gmail.com
File Name: tests/test_environment_base_class.py
Class Name: TestApplyingActionsWithSumo
Method Name: test_apply_lane_change_target_lane


Project Name: flow-project/flow
Commit Name: bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b
Time: 2017-10-30
Author: akreidieh@gmail.com
File Name: tests/test_environment_base_class.py
Class Name: TestApplyingActionsWithSumo
Method Name: test_apply_lane_change_direction


Project Name: flow-project/flow
Commit Name: bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b
Time: 2017-10-30
Author: akreidieh@gmail.com
File Name: tests/test_environment_base_class.py
Class Name: TestApplyingActionsWithSumo
Method Name: test_apply_acceleration