upload_scenario
NexusePlugin
Bases: Plugin
Source code in src/plugins/upload_scenario/nexus_e_plugin.py
get_default_parameters
classmethod
get_default_parameters() -> dict
run
Source code in src/plugins/upload_scenario/nexus_e_plugin.py
Config
dataclass
Config(
excel_file_path: str = "src/plugins/data/source_excel/input.xlsx",
push_to_mysql: bool = True,
database_name: str = "project_date_version",
database_author: str = "FirstName LastName",
dump_file_path: str = "src/plugins/upload_scenario/schemas/Dump_STRUC_clean_v9.sql",
include_flex_params: bool = False,
demand_profiles_path: str = "src/data/source_excel/Nexuse_DB-Input_v47_TYNDP22-GA08_CentIvPV_base_DemandProfiles",
include_tyndp24: bool = False,
tyndp24_data_path: str = "src/data/TYNDP24_datasets/TYNDP24_nbc",
tyndp24_scope: Literal["nbc", "EU"] = "nbc",
tyndp24_policy: str = "DE",
tyndp24_climate_year: int = 2009,
ntc_type: str | NtcType = "modelResults",
use_new_line_types: bool = True,
preset_line_types: bool = True,
new_line_types: str = "NTC",
config_years: list[str] = (
lambda: ["2018", "2020", "2030", "2040", "2050"]
)(),
config_years_int: list[int] = (lambda: [2018, 2020, 2030, 2040, 2050])(),
create_excel: bool = False,
excel_file_target_path: str = "output.xlsx",
include_branch_sheet: bool = True,
update_only_specific_columns: bool = False,
columns_to_update: dict[str, list[str]] = (
lambda: {"branch": ["line_id", "start_year", "S_max_win (MVA)"]}
)(),
)
columns_to_update
class-attribute
instance-attribute
columns_to_update: dict[str, list[str]] = field(
default_factory=lambda: {
"branch": ["line_id", "start_year", "S_max_win (MVA)"]
}
)
config_years
class-attribute
instance-attribute
config_years_int
class-attribute
instance-attribute
demand_profiles_path
class-attribute
instance-attribute
demand_profiles_path: str = "src/data/source_excel/Nexuse_DB-Input_v47_TYNDP22-GA08_CentIvPV_base_DemandProfiles"
dump_file_path
class-attribute
instance-attribute
dump_file_path: str = (
"src/plugins/upload_scenario/schemas/Dump_STRUC_clean_v9.sql"
)
excel_file_path
class-attribute
instance-attribute
excel_file_path: str = 'src/plugins/data/source_excel/input.xlsx'
excel_file_target_path
class-attribute
instance-attribute
excel_file_target_path: str = 'output.xlsx'
tyndp24_data_path
class-attribute
instance-attribute
tyndp24_data_path: str = 'src/data/TYNDP24_datasets/TYNDP24_nbc'
update_only_specific_columns
class-attribute
instance-attribute
update_only_specific_columns: bool = False
NtcType
Bases: Enum
ref_grid: NTCs are based on the reference grid, fixed values, do not change for 2040 and 2050 (no upgrades)
Expansion1: NTCs are based on the reference grid + real investment candidates
Expansion2: NTCs are based on the reference grid + real investment candidates + concept investment candidates
modelResults: NTCs are based on the modelling results from TYNDP24 (depend on scenario)