# with open(os.path.join(root_path, dir_name, 'city_data.json'), 'w') as f:
# json.dump(d_data, f)
# with open(os.path.join(root_path, dir_name, 'distance_map.npy'), 'wb') as f:
# np.save(f, d_map)
# #### DATA COLLECTION *************************
foragentinagents:
agent_speed=agent.speed_data['speed']
agent_shortest_path=shortest_paths[agent.handle]
agent_shortest_path_len=len(agent_shortest_path)
agent_shortest_path_time=int(np.ceil(agent_shortest_path_len/agent_speed))# for fractional speeds 1/3 etc
agent_travel_time_max=min(int(np.ceil(agent_shortest_path_time*travel_buffer_multiplier)),latest_arrival_max)# min(this, latest_arrival_max), SHOULD NOT BE lesser than shortest path time