fcfafff3eb05887529fd4b85a21b3d1c913c3062,cistar/envs/intersection_env.py,IntersectionEnvironment,get_distance_to_intersection,#IntersectionEnvironment#Any#,16

Before Change


            dist.append((intersection_tuple[1] - this_pos))
            intersection.append(intersection_tuple[0])

        ind = np.argmin(np.abs(dist))

        return dist[ind], intersection[ind]

After Change


                 intersection the vehicle will be arriving at.
        
        if isinstance(veh_ids, list):
            return [self.find_intersection_dist(veh_id)[0] for veh_id in veh_ids]
        else:
            return self.find_intersection_dist(veh_ids)

    def find_intersection_dist(self, veh_id):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


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/intersection_env.py
Class Name: IntersectionEnvironment
Method Name: get_distance_to_intersection


Project Name: PacktPublishing/Deep-Reinforcement-Learning-Hands-On
Commit Name: e70bdb2d089ae283781c45b8d97963823a984baa
Time: 2017-12-15
Author: max.lapan@gmail.com
File Name: ch10/00_pong_pg.py
Class Name:
Method Name:


Project Name: biotite-dev/biotite
Commit Name: dc0f01addc3c31a16ac98688b65a5403730fa33b
Time: 2020-12-04
Author: patrick.kunzm@gmail.com
File Name: doc/examples/scripts/structure/peoe_visualization.py
Class Name:
Method Name: