Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes/#1102 tyndp certificate #1106

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ Bug Fixes
* Fix URL of TYNDP scenario dataset
* Automatically generated tasks now get unique :code:`task_id`\s.
Fixes issue `#985`_ via PR `#986`_.
* Bypass SSL verification
`#1102 <https://github.com/openego/eGon-data/issues/1102>`_
* Fix faulty DSM time series
`#1088 <https://github.com/openego/eGon-data/issues/1088>`_
* Set upper limit on commissioning date for units from MaStR
Expand Down
5 changes: 5 additions & 0 deletions src/egon/data/datasets/gas_neighbours/eGon2035.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from pathlib import Path
from urllib.request import urlretrieve
import ast
import ssl
import zipfile

from shapely.geometry import LineString, MultiLineString
Expand Down Expand Up @@ -1122,7 +1123,11 @@ def calculate_ch4_grid_capacities():
url = "https://www.entsog.eu/sites/default/files/2021-07/" + basename
target_file = Path(".") / "datasets" / "gas_data" / basename

context_backup = ssl._create_default_https_context
ssl._create_default_https_context = ssl._create_unverified_context
urlretrieve(url, target_file)
ssl._create_default_https_context = context_backup

map_pipelines = {
"NORDSTREAM": "RU00",
"NORDSTREAM 2": "RU00",
Expand Down