scenario_parameters¶
The central module containing all code dealing with scenario table.
-
class
EgonScenario
(**kwargs)[source]¶ Bases:
sqlalchemy.ext.declarative.api.Base
-
description
¶
-
electricity_parameters
¶
-
gas_parameters
¶
-
global_parameters
¶
-
heat_parameters
¶
-
mobility_parameters
¶
-
name
¶
-
-
class
ScenarioParameters
(dependencies)[source]¶ Bases:
egon.data.datasets.Dataset
Create and fill table with central parameters for each scenario
This dataset creates and fills a table in the database that includes central parameters for each scenarios. These parameters are mostly from extrernal sources, they are defined and referenced within this dataset. The table is acced by various datasets to access the parameters for all sectors.
- Dependencies
- Resulting tables
scenario.egon_scenario_parameters
is created and filled
-
name
= 'ScenarioParameters'¶
-
version
= '0.0.12'¶
-
get_sector_parameters
(sector, scenario=None)[source]¶ Returns parameters for each sector as dictionary.
If scenario=None data for all scenarios is returned as pandas.DataFrame. Otherwise the parameters of the specific scenario are returned as a dict.
Parameters: - sector (str) – Name of the sector. Options are: [‘global’, ‘electricity’, ‘heat’, ‘gas’, ‘mobility’]
- scenario (str, optional) – Name of the scenario. The default is None.
Returns: values (dict or pandas.DataFrane) – List or table of parameters for the selected sector