Skip to content

Commit

Permalink
fixed formatting issue for float value net position
Browse files Browse the repository at this point in the history
  • Loading branch information
fboerman committed Dec 19, 2023
1 parent 9ade261 commit fd411dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion entsoe/entsoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
warnings.filterwarnings('ignore', category=XMLParsedAsHTMLWarning)

__title__ = "entsoe-py"
__version__ = "0.5.11"
__version__ = "0.5.12"
__author__ = "EnergieID.be, Frank Boerman"
__license__ = "MIT"

Expand Down
2 changes: 1 addition & 1 deletion entsoe/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def _parse_netposition_timeseries(soup):
factor = 1
for point in soup.find_all('point'):
positions.append(int(point.find('position').text))
quantities.append(factor * float(point.find('quantity').text))
quantities.append(factor * float(point.find('quantity').text.replace(',', '')))

series = pd.Series(index=positions, data=quantities)
series = series.sort_index()
Expand Down

0 comments on commit fd411dc

Please sign in to comment.