MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / get_dataset

Function get_dataset

python/graphvite/cmd.py:84–94  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

82def load_config(config_file):
83
84 def get_dataset(x):
85 if not isinstance(x, str):
86 return x
87 result = re.match("<(\w+)\.(\w+)>", x)
88 if result:
89 dataset, key = result.groups()
90 dataset = getattr(gv.dataset, dataset)
91 file_name = getattr(dataset, key)
92 return file_name
93 else:
94 return x
95
96 with open(config_file, "r") as fin:
97 cfg = EasyDict(yaml.safe_load(fin))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected