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

Function _get_sections_set

tools/python/maps_generator/checks/check_sections.py:85–91  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

83
84
85def _get_sections_set(path):
86 sections = set()
87 for file in os.listdir(path):
88 p = os.path.join(path, file)
89 if os.path.isfile(p) and file.endswith(".mwm"):
90 sections.update(read_sections(p).keys())
91 return sections
92
93
94def get_sections_size_check_set(old_path: str, new_path: str) -> check.CompareCheckSet:

Callers 1

Calls 3

read_sectionsFunction · 0.85
joinMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected