Skip to content

Config

Configuration loading and dataclasses.

pitch_sequencing.config

Configuration loading and dataclasses for the pitch sequencing package.

load_config(path)

Read a YAML config file and return a dict.

Source code in src/pitch_sequencing/config.py
def load_config(path: str) -> dict:
    """Read a YAML config file and return a dict."""
    with open(path) as f:
        return yaml.safe_load(f)