INNER CODE UNIT · Python

load_config

Future-House/BixBench · bixbench/generate_trajectories.py:68

    def load_config(self, config_path) -> BixbenchConfig:
        """
        Load and process configuration from the provided path.

        Args:
            config_path: Path to the configuration file

        Returns:
            BixbenchConfig: Processed configuration object with validation
        """
        config_path = Path(config_path)
        logger.info(f"Loading configuration from: {config_path}")

        with open(config_path, encoding="utf-8") as f:
            config_dict = yaml.safe_load(f)

        # Create and validate the config using Pydantic
        return BixbenchConfig(**config_dict)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…