Skip to content

Commit caab94e

Browse files
Merge pull request #221 from CLOVER-energy/220-grid-prioritisation-bug
220 grid prioritisation bug
2 parents 52267f0 + 501c6f0 commit caab94e

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

.zenodo.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"id": "MIT"
2424
},
2525
"notes": "If you use this software, please cite it as below.",
26-
"publication_date": "2023-07-18",
26+
"publication_date": "2023-07-25",
2727
"title": "CLOVER",
2828
"upload_type": "software",
29-
"version": "v5.1.0.post1"
29+
"version": "v5.1.1"
3030
}

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ authors:
1414
given-names: Philip
1515
orcid: https://orcid.org/0000-0003-1117-5095
1616
title: CLOVER
17-
version: v5.1.0.post1
17+
version: v5.1.1
1818
doi: 10.5281/zenodo.6925535
1919
date-released: 2023-07-18

codemeta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
"identifier": "https://zenodo.org/badge/latestdoi/476703736",
3535
"codeRepository": "https://github.com/CLOVER-energy/CLOVER",
3636
"datePublished": "2022-08-17",
37-
"dateModified": "2023-07-14",
37+
"dateModified": "2023-07-25",
3838
"dateCreated": "2022-08-17",
3939
"description": "A modelling framework for sustainable community-scale energy systems",
4040
"keywords": "minigrid,optimisation,pv,simulation",
4141
"license": "MIT",
4242
"title": "CLOVER",
43-
"version": "v5.1.0.post1"
43+
"version": "v5.1.1"
4444
}

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = clover-energy
3-
version = 5.1.0.post1
3+
version = 5.1.1
44
author = Phil Sandwell, Ben Winchester and Hamish Beath
55
66
description = Continuous Lifetime Optimisation of Variable Electricity Resources

src/clover/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
1818
"""
1919

20-
__version__ = "5.1.0.post1"
20+
__version__ = "5.1.1"
2121

2222
import collections
2323
import datetime

src/clover/simulation/storage.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ def get_electric_battery_storage_profile( # pylint: disable=too-many-locals, to
656656
else:
657657
# Take energy from grid first if available
658658
if scenario.grid:
659-
grid_energy = pd.DataFrame(grid_profile.mul(load_energy[0])) # type: ignore
659+
grid_energy = pd.DataFrame( # type: ignore
660+
grid_profile.mul(load_energy[0].values).values
661+
)
660662
else:
661663
grid_energy = pd.DataFrame([0] * (end_hour - start_hour))
662664
# as needed for load

0 commit comments

Comments
 (0)