laurel.pipelines.build_scenarios package

Submodules

laurel.pipelines.build_scenarios.nodes module

Kedro pipeline nodes for the build_scenarios pipeline (scenario configuration generation).

Generates the per-scenario configuration files (YAML partitions) that drive HPC batch execution of the States-of-the-World (SoW) array on the Stanford Sherlock cluster. Each generated partition encodes the full parameter override set for one scenario run of the electrify_trips and evaluate_impacts pipelines.

Pipeline overview

  1. generate_scenario_configs — Discovers the appropriate ScenarioBuilder subclass by name, instantiates it, and returns a dict of YAML partition callables—one per scenario—that Kedro writes to conf/scenarios/.

Key design decisions

  • Registry-based dispatch: generate_scenario_configs() is imported from laurel.scenario_framework.nodes and uses _registry, which is populated automatically when builder modules are imported. The import laurel.scenario_builders line below triggers registration of all bundled builders as a side effect; no manual registry update is required when a new builder is added to that package.

  • Separation of config generation from execution: the build_scenarios pipeline only produces configuration files and a shell script; actual scenario execution is handled by scripts in scripts/ that read those files.

References

Passow, F., & Rajagopal, R. (2026). Identifying indicators to inform proactive substation upgrades for charging electric heavy-duty trucks. Applied Energy.

laurel.pipelines.build_scenarios.pipeline module

Kedro pipeline definition for the build_scenarios pipeline.

Wires the nodes from laurel.pipelines.build_scenarios.nodes into a single Pipeline object. For full documentation of each node’s inputs, outputs, and algorithm, see laurel.pipelines.build_scenarios.nodes.

Sub-pipelines / tags

  • build_scenarios — generates per-scenario YAML configuration partitions and the corresponding SLURM batch script for HPC execution.

To visualise the node graph interactively, run:

kedro viz run

then open http://localhost:4141 in a browser and select build_scenarios from the pipeline dropdown.

laurel.pipelines.build_scenarios.pipeline.create_pipeline(**kwargs)[source]
Return type:

Pipeline

Module contents

This is a boilerplate pipeline ‘build_scenarios’ generated using Kedro 0.18.13

laurel.pipelines.build_scenarios.create_pipeline(**kwargs)[source]
Return type:

Pipeline