Skip to content

Commit 7b155a9

Browse files
authored
Merge pull request #456 from OpenEnergyPlatform/bugfix-455-update-gsgk-tablename
Hotfix 455 update gsgk tablename
2 parents 2c7de28 + dcecf72 commit 7b155a9

File tree

9 files changed

+23
-18
lines changed

9 files changed

+23
-18
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.13.1
2+
current_version = 0.13.2
33
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>(a|na))+(?P<build>\d+))?
44
serialize =
55
{major}.{minor}.{patch}{release}{build}

.github/workflows/ci-production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: create package
3535
run: python setup.py sdist
3636
- name: import open-mastr
37-
run: python -m pip install ./dist/open_mastr-0.13.1.tar.gz
37+
run: python -m pip install ./dist/open_mastr-0.13.2.tar.gz
3838
- name: Create credentials file
3939
env:
4040
MASTR_TOKEN: ${{ secrets.MASTR_TOKEN }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ repos:
33
rev: 22.6.0
44
hooks:
55
- id: black
6-
language_version: python3.9
6+
language_version: python3.10

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ For each version important additions, changes and removals are listed here.
66
The format is inspired from [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
77
and the versioning aims to respect [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
88

9+
## [v0.13.2] Hotfix - 2023-08-07
10+
### Changed
11+
- Changed the name of the bulk tables for technology=gsgk [#456](https://github.com/OpenEnergyPlatform/open-MaStR/pull/456)
12+
913
## [v0.13.1] Hotfix - 2023-04-11
1014

1115
### Added

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ authors:
2828
title: "open-MaStR"
2929
type: software
3030
license: AGPL-3.0
31-
version: 0.13.1
31+
version: 0.13.2
3232
doi:
33-
date-released: 2023-04-11
33+
date-released: 2023-08-07
3434
url: "https://github.com/OpenEnergyPlatform/open-MaStR/"

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx>=2
1+
sphinx<7
22
sphinx-rtd-theme
33
sphinx-tabs
44
m2r2

open_mastr/utils/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
"biomass": ["anlageneegbiomasse", "einheitenbiomasse"],
8383
"hydro": ["anlageneegwasser", "einheitenwasser"],
8484
"gsgk": [
85-
"anlageneeggeosolarthermiegrubenklaerschlammdruckentspannung",
86-
"einheitengeosolarthermiegrubenklaerschlammdruckentspannung",
85+
"anlageneeggeothermiegrubengasdruckentspannung",
86+
"einheitengeothermiegrubengasdruckentspannung",
8787
],
8888
"combustion": ["anlagenkwk", "einheitenverbrennung"],
8989
"nuclear": ["einheitenkernkraft"],

open_mastr/xml_download/utils_download_bulk.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import requests
2-
from tqdm import tqdm
3-
import time
4-
from bs4 import BeautifulSoup
5-
import numpy as np
61
import os
72
import shutil
8-
from zipfile import ZipFile, BadZipfile
3+
import time
4+
from zipfile import BadZipfile, ZipFile
5+
6+
import numpy as np
7+
import requests
8+
from bs4 import BeautifulSoup
9+
from tqdm import tqdm
910

1011
# setup logger
1112
from open_mastr.utils.config import setup_logger
@@ -71,9 +72,9 @@ def download_xml_Mastr(
7172
url = get_url_from_Mastr_website()
7273
time_a = time.perf_counter()
7374
r = requests.get(url, stream=True)
74-
total_length = int(10000 * 1024 * 1024)
75+
total_length = int(18000 * 1024 * 1024)
7576
with open(save_path, "wb") as zfile, tqdm(
76-
desc=save_path, total=(total_length / 1024 / 1024), unit="MB"
77+
desc=save_path, total=(total_length / 1024 / 1024), unit=""
7778
) as bar:
7879
for chunk in r.iter_content(chunk_size=1024 * 1024):
7980
# chunk size of 1024 * 1024 needs 9min 11 sek = 551sek

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
"open_mastr.utils.config",
1919
"open_mastr.xml_download",
2020
],
21-
version="0.13.1",
21+
version="0.13.2",
2222
description="A package that provides an interface for downloading and"
2323
" processing the data of the Marktstammdatenregister (MaStR)",
2424
long_description=long_description,
2525
long_description_content_type="text/x-rst",
2626
url="https://github.com/OpenEnergyPlatform/open-MaStR",
2727
download_url="https://github.com/OpenEnergyPlatform/open-MaStR/archive"
28-
"/refs/tags/v0.13.1.tar.gz",
28+
"/refs/tags/v0.13.2.tar.gz",
2929
author="Open Energy Family",
3030
author_email="datenzentrum@rl-institut.de",
3131
maintainer="Ludwig Hülk",

0 commit comments

Comments
 (0)