Loads and parses a yaml file into a JETWorkloadManifest
(config_path: str)
| 60 | |
| 61 | |
| 62 | def load_config(config_path: str) -> jetclient.JETWorkloadManifest: |
| 63 | """Loads and parses a yaml file into a JETWorkloadManifest""" |
| 64 | with open(config_path) as stream: |
| 65 | try: |
| 66 | return jetclient.JETWorkloadManifest(**yaml.safe_load(stream)) |
| 67 | except yaml.YAMLError as exc: |
| 68 | raise exc |
| 69 | |
| 70 | |
| 71 | def load_and_flatten(config_path: str) -> List[jetclient.JETWorkloadManifest]: |
no outgoing calls
no test coverage detected