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-13T04:25:24.552499+00:00
Generator
pdoc 16.0.0, CPython 3.14.8
Generation metadata

gcubed.model

This module contains the Model class, used to load:

  • the model configuration
  • the details of the model equations expressed in the SYM files
  • the model database
  • the IO tables
  • the model parameters
  • the exogenous variable baseline effective labor productivity details
  • the exogenous variable energy efficiency adjustments
class Model(gcubed.base.Base):

Encapsulates all of the information about a Model, sufficient to generate baseline projections.

Constructor

Cause the model to load based on the information in its configuration.

Arguments

configuration (ModelConfiguration): the configuration details for the model being created.

The model configuration.

The data provided by SYM about variables and parameters.

The model database.

The linearisation database, used for linearised model runs.

The model parameter values, set by the user and calibrated from the model database and IO tables.

The effective labour productivity growth projections underpinning levels projections that reflect long-run growth prospects.

The energy usage efficiency improvement rate projections for each sector in each region. These impact projections for energy requirements by region and sector.

def create_exogenous_growth_and_efficiency_adjustments(self, *, write_file: bool = True) -> pandas.DataFrame:

Overview

Create a CSV file containing the exogenous variable projections and save them into a CSV file in the data directory. The name of the CSV file is specified in the model configuration.

The projections capture:

  • effective labour productivity projections (based on population and productivity growth rates in each region)
  • energy efficiency improvement projections (based on projections of autonomous energy efficiency improvements)

write_file=False returns the generated frame without writing it, so model setup can first validate preserved growth rows.

Exceptions

Raises an exception if the first-projection-year exogenous variable values include NaNs.

def create_linearisation_database(self, base_year: int) -> None:

Creates a new linearisation database with the specified base year.

Arguments

base_year : The base year for the linearisation database.