G-Cubed
Python G-Cubed 5.0.2.0 · build 1
Generation details
Source revision
4c4a95aded1b5ca5e8f9c292ad8250440cd9c18b (modified inputs)
Source fingerprint
e2c719b38e03c6b1748f10e26bc1caf1ead5674dd1beee6628a6ccf7b90fd39b
Generated (UTC)
2026-11-11T03:06:22.844261+00:00
Generator
pdoc 16.0.0, CPython 3.14.8
Generation metadata

gcubed.baseline_shl_migration

Stage and atomically migrate generated baseline SHL projections.

The operation constructs a model only in a disposable copy. It promotes the validated SHL block and leaves every other canonical model file untouched.

@dataclass(frozen=True)
class BaselineShlMigrationResult:

Describe one successfully promoted SHL baseline block.

BaselineShlMigrationResult( baseline_file: pathlib.Path, shl_rows: int, projection_years: tuple[str, ...], staged_input_hashes: dict[str, str])
baseline_file: pathlib.Path
shl_rows: int
projection_years: tuple[str, ...]
staged_input_hashes: dict[str, str]
def migrate_baseline_shl( configuration_file: pathlib.Path) -> BaselineShlMigrationResult:

Generate SHL in a disposable model copy and promote only that block.

The explicit generation call makes this independent of the destination's preserve_baseline_exogenous_projections_file setting. Any regenerated labour-productivity file must remain byte-identical to the canonical input copied into staging, preventing promotion from temporary inputs that would be discarded.

def main(argv: Sequence[str] | None = None) -> int:

Run one explicit staged baseline SHL migration.