datasets
- DSM_cts_ind
- calculate_dlr
- ch4_prod
- ch4_storages
- chp_etrago
- database
- electrical_neighbours
- electricity_demand_etrago
- era5
- etrago_helpers
- etrago_setup
- fill_etrago_gen
- fix_ehv_subnetworks
- gas_areas
- gas_grid
- generate_voronoi
- heat_demand_europe
- industrial_gas_demand
- mastr
- mv_grid_districts
- renewable_feedin
- sanity_checks
- scenario_capacities
- society_prognosis
- substation_voronoi
- tyndp
- vg250_mv_grid_districts
- zensus_mv_grid_districts
- zensus_vg250
- chp
- data_bundle
- demandregio
- district_heating_areas
- electricity_demand
- electricity_demand_timeseries
- emobility
- gas_neighbours
- heat_demand
- heat_demand_timeseries
- heat_etrago
- heat_supply
- hydrogen_etrago
- industrial_sites
- industry
- loadarea
- low_flex_scenario
- osm
- osm_buildings_streets
- osmtgmod
- power_etrago
- power_plants
- pypsaeursec
- re_potential_areas
- saltcavern
- scenario_parameters
- storages
- storages_etrago
- substation
- vg250
- zensus
The API for configuring datasets.
- class Dataset(name: 'str', version: 'str', dependencies: 'Dependencies' = (), tasks: 'Tasks' = ())[source]
Bases:
object- dependencies: egon.data.datasets.Dependencies = ()
The first task(s) of this
Datasetwill be marked as downstream of any of the listed dependencies. In case of bareTask, a direct link will be created whereas for aDatasetthe link will be made to all of its last tasks.
- name: str
The name of the Dataset
- tasks: egon.data.datasets.Tasks = ()
The tasks of this
Dataset. ATaskGraphwill automatically be converted toTasks_.
- version: str
The
Dataset’s version. Can be anything from a simple semantic versioning string like “2.1.3”, to a more complex string, like for example “2021-01-01.schleswig-holstein.0” for OpenStreetMap data. Note that the latter encodes theDataset’s date, region and a sequential number in case the data changes without the date or region changing, for example due to implementation changes.
- Dependencies
A dataset can depend on other datasets or the tasks of other datasets.
alias of
Iterable[Union[Dataset,Callable[[],None],airflow.models.baseoperator.BaseOperator]]
- class Model(**kwargs)[source]
Bases:
sqlalchemy.orm.decl_api.Base- dependencies
- epoch
- id
- name
- scenarios
- version
- Task
A
Taskis an AirflowOperatoror anyCallabletaking no arguments and returningNone.Callableswill be converted toOperatorsby wrapping them in aPythonOperatorand setting thetask_idto theCallable’s__name__, with underscores replaced with hyphens. If theCallable’s __module__ attribute contains the string"egon.data.datasets.", thetask_idis also prefixed with the module name, followed by a dot and with"egon.data.datasets."removed.alias of
Union[Callable[[],None],airflow.models.baseoperator.BaseOperator]
- TaskGraph
A graph of tasks is, in its simplest form, just a single node, i.e. a single
Task. More complex graphs can be specified by nestingsetsandtuplesofTaskGraphs. A set ofTaskGraphsmeans that they are unordered and can be executed in parallel. Atuplespecifies an implicit ordering so atupleofTaskGraphswill be executed sequentially in the given order.alias of
Union[Callable[[],None],airflow.models.baseoperator.BaseOperator,Set[TaskGraph],Tuple[TaskGraph, …]]
- Tasks
A type alias to help specifying that something can be an explicit
Tasks_object or aTaskGraph, i.e. something that can be converted toTasks_.alias of
Union[Tasks_,Callable[[],None],airflow.models.baseoperator.BaseOperator,Set[TaskGraph],Tuple[TaskGraph, …]]
- class Tasks_(graph: 'TaskGraph')[source]
Bases:
dict- first: Set[Union[Callable[[], None], airflow.models.baseoperator.BaseOperator]]
- graph: Union[Callable[[], None], airflow.models.baseoperator.BaseOperator, Set[TaskGraph], Tuple[TaskGraph, ...]] = ()
- last: Set[Union[Callable[[], None], airflow.models.baseoperator.BaseOperator]]