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.projections.shock_coordinates

Convert additive database-unit shocks into the model's stored coordinates.

def validate_shock_values( shocks: pandas.DataFrame, *, sym_data: gcubed.sym_data.SymData, source: str) -> None:

Reject nonfinite CSV values, including ignored later state entries.

def apply_database_shocks( previous: pandas.DataFrame, shocks: pandas.DataFrame, *, sym_data: gcubed.sym_data.SymData, scaling_factors: pandas.Series, coordinate_database: gcubed.data.database.Database, source: str) -> pandas.DataFrame:

Return selected updated coordinates without changing the preceding path.

Shocks are additive database increments. GDP normalization and, for actual nominal FX, the coordinate anchor convert them into internal level units. Logged rows then use log1p of the increment relative to the previous level. Zero cells retain their original coordinates exactly.