(env: Env, **kwargs)
| 121 | |
| 122 | |
| 123 | def step_features(env: Env, **kwargs): |
| 124 | if any(x not in WORLDS_NAMES for x in env.countries): |
| 125 | kwargs.update({"generate_packed_borders": True}) |
| 126 | if any(x == WORLD_NAME for x in env.countries): |
| 127 | kwargs.update({"generate_world": True}) |
| 128 | if len(env.countries) == len(get_all_countries_list(PathProvider.borders_path())): |
| 129 | kwargs.update({"have_borders_for_whole_world": True}) |
| 130 | |
| 131 | run_gen_tool( |
| 132 | env.gen_tool, |
| 133 | out=env.get_subprocess_out(), |
| 134 | err=env.get_subprocess_out(), |
| 135 | data_path=env.paths.data_path, |
| 136 | intermediate_data_path=env.paths.intermediate_data_path, |
| 137 | cache_path=env.paths.cache_path, |
| 138 | osm_file_type="o5m", |
| 139 | osm_file_name=env.paths.planet_o5m, |
| 140 | node_storage=env.node_storage, |
| 141 | user_resource_path=env.paths.user_resource_path, |
| 142 | cities_boundaries_data=env.paths.cities_boundaries_path, |
| 143 | generate_features=True, |
| 144 | threads_count=settings.THREADS_COUNT_FEATURES_STAGE, |
| 145 | **kwargs, |
| 146 | ) |
| 147 | |
| 148 | |
| 149 | def run_gen_tool_with_recovery_country(env: Env, *args, **kwargs): |
nothing calls this directly
no test coverage detected