(configname)
| 37 | # NOTE @C-Achard 2026-03-26 duplicate config read/write functions |
| 38 | # should be addressed in config refactor |
| 39 | def read_config(configname): |
| 40 | if not os.path.exists(configname): |
| 41 | raise FileNotFoundError(f"Config {configname} is not found. Please make sure that the file exists.") |
| 42 | yaml = YAML(typ="rt") |
| 43 | with open(configname, encoding="utf-8") as file: |
| 44 | return yaml.load(file) |
| 45 | |
| 46 | |
| 47 | def write_config(configname, cfg): |
no test coverage detected