bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b,tests/test_controllers.py,TestOVMController,test_get_action,#TestOVMController#,136
Before Change
ids = self.env.vehicles.get_ids()
test_headways = [0, 10, 5, 5, 5]
test_speeds = [5, 10, 5, 10, 5]
for i, veh_id in enumerate(ids):
self.env.vehicles.set_headway(veh_id, test_headways[i])
self.env.vehicles.set_speed(veh_id, test_speeds[i])
requested_accel = [self.env.vehicles.get_acc_controller(
veh_id).get_action(self.env) for veh_id in ids]
After Change
requested_accel = [self.env.vehicles.get_acc_controller(
veh_id).get_action(self.env) for veh_id in ids]
expected_accel = [0., 15., 3.772339, 3.772339, 3.772339]
np.testing.assert_array_almost_equal(requested_accel, expected_accel)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: flow-project/flow
Commit Name: bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b
Time: 2017-10-30
Author: akreidieh@gmail.com
File Name: tests/test_controllers.py
Class Name: TestOVMController
Method Name: test_get_action
Project Name: flow-project/flow
Commit Name: bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b
Time: 2017-10-30
Author: akreidieh@gmail.com
File Name: tests/test_controllers.py
Class Name: TestCFMController
Method Name: test_get_action
Project Name: flow-project/flow
Commit Name: bd8a96d9d8ad2b4dfc2d86d359d56c4eb3390c5b
Time: 2017-10-30
Author: akreidieh@gmail.com
File Name: tests/test_controllers.py
Class Name: TestLinearOVM
Method Name: test_get_action