80ea9a78eebb1b7d5131fc90193556e6152e212c,cistar-dev/cistar/core/base_env.py,SumoEnvironment,step,#SumoEnvironment#Any#,263

Before Change



        for veh_id in self.ids:
            prev_pos = self.get_x_by_id(veh_id)
            self.vehicles[veh_id]["type"] = self.traci_connection.vehicle.getTypeID(veh_id)
            this_edge = self.traci_connection.vehicle.getRoadID(veh_id)
            if this_edge is None:
                print("Null edge for vehicle:", veh_id)
            else:

After Change


            except ValueError:
                self.vehicles[veh_id]["absolute_position"] = -1001

            if self.vehicles[veh_id]["position"] < 0 or self.vehicles[veh_id]["speed"] < 0:
                print("Traci is returning error codes for some of your values", veh_id)
                sumo_crash = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: flow-project/flow
Commit Name: 80ea9a78eebb1b7d5131fc90193556e6152e212c
Time: 2017-06-12
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: step


Project Name: flow-project/flow
Commit Name: aae224d9f2efb6f86ac8cfe905076a66546dae34
Time: 2017-02-26
Author: dicksteinleah@gmail.com
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: step


Project Name: flow-project/flow
Commit Name: 071b27b1ffc1c38e84f64fafcc126fafa54369a1
Time: 2017-07-05
Author: akreidieh@gmail.com
File Name: cistar-dev/cistar/core/base_env.py
Class Name: SumoEnvironment
Method Name: setup_initial_state