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

Function step_update_planet

tools/python/maps_generator/generator/steps.py:91–103  ·  view source on GitHub ↗
(env: Env, **kwargs)

Source from the content-addressed store, hash-verified

89
90
91def step_update_planet(env: Env, **kwargs):
92 tmp = f"{env.paths.planet_o5m}.tmp"
93 osmupdate(
94 env[settings.OSM_TOOL_UPDATE],
95 env.paths.planet_o5m,
96 tmp,
97 output=env.get_subprocess_out(),
98 error=env.get_subprocess_out(),
99 **kwargs,
100 )
101 os.remove(env.paths.planet_o5m)
102 os.rename(tmp, env.paths.planet_o5m)
103 write_md5sum(env.paths.planet_o5m, md5_ext(env.paths.planet_o5m))
104
105
106def step_preprocess(env: Env, **kwargs):

Callers

nothing calls this directly

Calls 5

osmupdateFunction · 0.90
write_md5sumFunction · 0.90
md5_extFunction · 0.90
get_subprocess_outMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected