(x)
| 82 | def 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)) |
nothing calls this directly
no outgoing calls
no test coverage detected