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.model_updater

This module contains the ModelUpdater class.

It is used when doing relinearisations, to update a model with an extended database and a new first projection year.

class ModelUpdater(gcubed.base.Base):

Updates a model to do projections starting from a future year, beginning with the projections generated by a previously defined model.

@classmethod
def get_updated_model( cls, projections: gcubed.projections.projections.Projections, new_first_projection_year: int) -> gcubed.model.Model:

Perform the update on the provided model

Arguments

projections: the base projections (either a baseline projections or a simulation layer) that will be used as the source of the information from which the updated model will be produced.

new_first_projection_year: The (YYYY) new first projection year for the updated model.

Returns

The updated model.

Exceptions

Raises an exception if the new base year is not greater than the base year for the projections.