MCPcopy Create free account
hub / github.com/comaps/comaps / make_world_road_graph

Function make_world_road_graph

tools/python/maps_generator/generator/steps.py:233–253  ·  view source on GitHub ↗
(
    name_executable,
    path_roads_file,
    path_resources,
    path_res_file,
    logger,
    output=subprocess.DEVNULL,
    error=subprocess.DEVNULL,
)

Source from the content-addressed store, hash-verified

231
232
233def make_world_road_graph(
234 name_executable,
235 path_roads_file,
236 path_resources,
237 path_res_file,
238 logger,
239 output=subprocess.DEVNULL,
240 error=subprocess.DEVNULL,
241):
242 world_roads_builder_tool_cmd = [
243 name_executable,
244 f"--path_roads_file={path_roads_file}",
245 f"--path_resources={path_resources}",
246 f"--path_res_file={path_res_file}",
247 ]
248 logger.info(f"Starting {' '.join(world_roads_builder_tool_cmd)}")
249 world_roads_builder_tool = subprocess.Popen(
250 world_roads_builder_tool_cmd, stdout=output, stderr=error, env=os.environ
251 )
252
253 wait_and_raise_if_fail(world_roads_builder_tool)
254
255
256def step_prepare_routing_world(env: Env, country: AnyStr, logger, **kwargs):

Callers 1

Calls 2

wait_and_raise_if_failFunction · 0.90
joinMethod · 0.45

Tested by

no test coverage detected