Skip to content

Commit

Permalink
Bugfix to accidental data format change in 0.4.0 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
kipe authored Oct 15, 2024
1 parent 4ac97e7 commit 99d3295
Show file tree
Hide file tree
Showing 4 changed files with 2,865 additions and 2,847 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
nordpool
========
# nordpool

Python library for fetching Nord Pool Elspot and Elbas prices.


#### Installing bleeding edge version from GitHub

##### Installation

`pip install git+https://github.com/kipe/nordpool.git`

##### Upgrading
`pip install -U git+https://github.com/kipe/nordpool.git`

`pip install -U git+https://github.com/kipe/nordpool.git`

#### Example

```
# Import library for fetching Elspot data
from nordpool import elspot, elbas
Expand All @@ -34,7 +34,8 @@ pprint(prices_bas.hourly(areas=['FI']))
```

###### Output
```

```python
{u'areas': {
u'FI': {
u'Average': 32.54,
Expand Down
4 changes: 2 additions & 2 deletions nordpool/elspot.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def _parse_json(self, data, data_type, areas):
if area not in areas:
continue
if area not in area_prices:
area_prices[area] = []
area_prices[area].append(
area_prices[area] = {"values": []}
area_prices[area]["values"].append(
{
"start": start,
"end": end,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nordpool"
version = "0.4.0"
version = "0.4.1"
description = "Python library for fetching Nord Pool spot prices."
authors = ["Kimmo Huoman <[email protected]>"]
license = "MIT"
Expand Down
Loading

0 comments on commit 99d3295

Please sign in to comment.