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

Function get_data_files

tools/python/data/base.py:28–38  ·  view source on GitHub ↗
(relative_data_paths)

Source from the content-addressed store, hash-verified

26
27
28def get_data_files(relative_data_paths):
29 data_files = defaultdict(lambda: [])
30 for p in relative_data_paths:
31 path = os.path.join(DATA_PATH, p)
32 b = os.path.join("omim-data", path.replace(DATA_PATH + os.path.sep, ""))
33 if os.path.isdir(path):
34 get_files_from_dir(path, b, data_files)
35 else:
36 b = os.path.dirname(b)
37 data_files[b].append(path)
38 return data_files.items()
39
40
41def setup(

Callers 1

setupFunction · 0.85

Calls 3

get_files_from_dirFunction · 0.85
joinMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected