Skip to content

Commit

Permalink
Merge pull request #174 from openego/fixes/#159-mastr-on-zenodo
Browse files Browse the repository at this point in the history
Fixes/#159 mastr on zenodo
  • Loading branch information
nesnoj authored Jan 11, 2024
2 parents 37f0f5c + 6385ca3 commit ab9b7ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ Bug Fixes
`#1098 <https://github.com/openego/eGon-data/issues/1098>`_
* Fix conversion factor for CH4 loads abroad in eGon2035
`#1104 <https://github.com/openego/eGon-data/issues/1104>`_
* Fix URLs of MaStR datasets

.. _PR #692: https://github.com/openego/eGon-data/pull/692
.. _#343: https://github.com/openego/eGon-data/issues/343
Expand Down
4 changes: 2 additions & 2 deletions src/egon/data/datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ mastr:
- "gsgk"
- "storage"
file_basename: "bnetza_mastr"
deposit_id: 808086
deposit_id: 10480930

mastr_new:
technologies:
Expand All @@ -306,7 +306,7 @@ mastr_new:
- "combustion"
- "nuclear"
file_basename: "bnetza_mastr"
deposit_id: 1132987
deposit_id: 10480958
egon2021_date_max: "2021-12-31 23:59:00"
status2019_date_max: "2019-12-31 23:59:00"

Expand Down
10 changes: 5 additions & 5 deletions src/egon/data/datasets/mastr.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
Download Marktstammdatenregister (MaStR) datasets unit registry.
It incorporates two different datasets:
Dump 2021-05-03
* Source: https://sandbox.zenodo.org/record/808086
Dump 2021-04-30
* Source: https://zenodo.org/records/10480930
* Used technologies: PV plants, wind turbines, biomass, hydro plants,
combustion, nuclear, gsgk, storage
* Data is further processed in dataset
:py:class:`egon.data.datasets.power_plants.PowerPlants`
Dump 2022-11-17
* Source: https://sandbox.zenodo.org/record/1132839
* Source: https://zenodo.org/records/10480958
* Used technologies: PV plants, wind turbines, biomass, hydro plants
* Data is further processed in module
:py:mod:`egon.data.datasets.power_plants.mastr` `PowerPlants`
Expand Down Expand Up @@ -39,7 +39,7 @@ def download(dataset_name, download_dir):
# Get parameters from config and set download URL
data_config = egon.data.config.datasets()[dataset_name]
zenodo_files_url = (
f"https://sandbox.zenodo.org/record/"
f"https://zenodo.org/record/"
f"{data_config['deposit_id']}/files/"
)

Expand Down Expand Up @@ -69,7 +69,7 @@ def download(dataset_name, download_dir):
mastr_data_setup = partial(
Dataset,
name="MastrData",
version="0.0.1",
version="0.0.2",
dependencies=[],
tasks=(download_mastr_data,),
)
4 changes: 2 additions & 2 deletions src/egon/data/datasets_original.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ mastr:
- "gsgk"
- "storage"
file_basename: "bnetza_mastr"
deposit_id: 808086
deposit_id: 10480930

mastr_new:
technologies:
Expand All @@ -304,7 +304,7 @@ mastr_new:
- "solar"
- "biomass"
file_basename: "bnetza_mastr"
deposit_id: 1132987
deposit_id: 10480958

re_potential_areas:
target:
Expand Down

0 comments on commit ab9b7ae

Please sign in to comment.