euromod_linking.methods.base

What every linking method is handed and what it returns.

A method implements apply and check_dataset, plus an optional preview, and must be deterministic: same input data, same shocks, same params gives bit-identical output.

Exceptions

MethodError

Raised by a method for domain failures (infeasible targets, bad state).

Classes

Module Contents

exception euromod_linking.methods.base.MethodError[source]

Raised by a method for domain failures (infeasible targets, bad state).

class euromod_linking.methods.base.MethodContext[source]
country_code: str
dataset_name: str | None = None
extensions: list | None = None
system_name: str
class euromod_linking.methods.base.MethodResult[source]
baseline: pandas.DataFrame | None = None
constants: dict | None = None
data: pandas.DataFrame
diagnostics: dict