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

Method __init__

tools/python/airmaps/dags/build_maps.py:25–53  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

23
24class MapsGenerationDAG(DAG):
25 def __init__(self, *args, **kwargs):
26 super().__init__(*args, **kwargs)
27
28 build_prolog_task = PythonOperator(
29 task_id="Build_prolog_task",
30 provide_context=True,
31 python_callable=MapsGenerationDAG.build_prolog,
32 dag=self,
33 )
34
35 build_epilog_task = PythonOperator(
36 task_id="Build_epilog_task",
37 provide_context=True,
38 python_callable=MapsGenerationDAG.build_epilog,
39 dag=self,
40 )
41
42 publish_maps_task = PythonOperator(
43 task_id="Publish_maps_task",
44 provide_context=True,
45 python_callable=MapsGenerationDAG.publish_maps,
46 dag=self,
47 )
48
49 rm_build_task = make_rm_build_task(self)
50
51 build_epilog_task >> publish_maps_task >> rm_build_task
52 for country in get_all_countries_list(PathProvider.borders_path()):
53 build_prolog_task >> self.make_mwm_operator(country) >> build_epilog_task
54
55 @staticmethod
56 def get_params(namespace="env", **kwargs):

Callers

nothing calls this directly

Calls 4

make_mwm_operatorMethod · 0.95
make_rm_build_taskFunction · 0.90
get_all_countries_listFunction · 0.90
borders_pathMethod · 0.80

Tested by

no test coverage detected