frequenz-gridpool 0.2.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {frequenz_gridpool-0.2.0/src/frequenz_gridpool.egg-info → frequenz_gridpool-0.3.0}/PKG-INFO +3 -3
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/RELEASE_NOTES.md +2 -4
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/pyproject.toml +2 -2
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/_microgrid_config.py +16 -3
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0/src/frequenz_gridpool.egg-info}/PKG-INFO +3 -3
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/requires.txt +2 -2
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/LICENSE +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/MANIFEST.in +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/README.md +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/setup.cfg +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/__init__.py +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/_graph_generator.py +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/cli/__init__.py +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/cli/__main__.py +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/conftest.py +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/py.typed +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/SOURCES.txt +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/dependency_links.txt +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/entry_points.txt +0 -0
- {frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frequenz-gridpool
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: High-level interface to grid pools for the Frequenz platform.
|
|
5
5
|
Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ License-File: LICENSE
|
|
|
23
23
|
Requires-Dist: marshmallow-dataclass<9,>=8.7.1
|
|
24
24
|
Requires-Dist: asyncclick<9,>=8.3.0.4
|
|
25
25
|
Requires-Dist: typing-extensions<5,>=4.14.1
|
|
26
|
-
Requires-Dist: frequenz-microgrid-component-graph<0.
|
|
26
|
+
Requires-Dist: frequenz-microgrid-component-graph<0.4,>=0.3.4
|
|
27
27
|
Requires-Dist: frequenz-client-assets<0.3,>=0.2.0
|
|
28
28
|
Provides-Extra: dev-flake8
|
|
29
29
|
Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
|
|
@@ -60,7 +60,7 @@ Requires-Dist: pylint==4.0.4; extra == "dev-pytest"
|
|
|
60
60
|
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.7; extra == "dev-pytest"
|
|
61
61
|
Requires-Dist: pytest-mock==3.15.1; extra == "dev-pytest"
|
|
62
62
|
Requires-Dist: pytest-asyncio==1.3.0; extra == "dev-pytest"
|
|
63
|
-
Requires-Dist: async-solipsism==0.
|
|
63
|
+
Requires-Dist: async-solipsism==0.9; extra == "dev-pytest"
|
|
64
64
|
Provides-Extra: dev
|
|
65
65
|
Requires-Dist: frequenz-gridpool[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
|
|
66
66
|
Dynamic: license-file
|
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
<!-- Here goes a general summary of what this release is about -->
|
|
6
6
|
|
|
7
7
|
## Upgrading
|
|
8
|
-
* Microgrid_config is updated from AC_ACTIVE_POWER to AC_POWER_ACTIVE in accordance with the update in client-reporting - v0.20.0
|
|
9
|
-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
* The minimum required version of `frequenz-microgrid-component-graph` is now `v0.3.4`.
|
|
12
10
|
|
|
13
|
-
|
|
11
|
+
## New Features
|
|
14
12
|
|
|
15
13
|
<!-- Here goes the main new features and examples or instructions on how to use them -->
|
|
16
14
|
|
|
@@ -29,7 +29,7 @@ dependencies = [
|
|
|
29
29
|
"marshmallow-dataclass >= 8.7.1, < 9",
|
|
30
30
|
"asyncclick >= 8.3.0.4, < 9",
|
|
31
31
|
"typing-extensions >= 4.14.1, < 5",
|
|
32
|
-
"frequenz-microgrid-component-graph >= 0.
|
|
32
|
+
"frequenz-microgrid-component-graph >= 0.3.4, < 0.4",
|
|
33
33
|
"frequenz-client-assets >= 0.2.0, < 0.3",
|
|
34
34
|
]
|
|
35
35
|
dynamic = ["version"]
|
|
@@ -83,7 +83,7 @@ dev-pytest = [
|
|
|
83
83
|
"frequenz-repo-config[extra-lint-examples] == 0.13.7",
|
|
84
84
|
"pytest-mock == 3.15.1",
|
|
85
85
|
"pytest-asyncio == 1.3.0",
|
|
86
|
-
"async-solipsism == 0.
|
|
86
|
+
"async-solipsism == 0.9",
|
|
87
87
|
]
|
|
88
88
|
dev = [
|
|
89
89
|
"frequenz-gridpool[dev-mkdocs,dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]",
|
{frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/_microgrid_config.py
RENAMED
|
@@ -41,11 +41,24 @@ class ComponentTypeConfig:
|
|
|
41
41
|
def __post_init__(self) -> None:
|
|
42
42
|
"""Set the default formula if none is provided."""
|
|
43
43
|
self.formula = self.formula or {}
|
|
44
|
-
if "
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
if "AC_ACTIVE_POWER" in self.formula:
|
|
45
|
+
_logger.warning(
|
|
46
|
+
"ComponentTypeConfig: 'AC_ACTIVE_POWER' formula is deprecated, "
|
|
47
|
+
"please use 'AC_POWER_ACTIVE' instead."
|
|
47
48
|
)
|
|
48
49
|
|
|
50
|
+
if "AC_POWER_ACTIVE" not in self.formula:
|
|
51
|
+
if "AC_ACTIVE_POWER" in self.formula:
|
|
52
|
+
self.formula["AC_POWER_ACTIVE"] = self.formula["AC_ACTIVE_POWER"]
|
|
53
|
+
else:
|
|
54
|
+
_logger.warning(
|
|
55
|
+
"ComponentTypeConfig: No formula provided for 'AC_POWER_ACTIVE', "
|
|
56
|
+
"using default summation formula."
|
|
57
|
+
)
|
|
58
|
+
self.formula["AC_POWER_ACTIVE"] = "+".join(
|
|
59
|
+
[f"#{cid}" for cid in self._default_cids()]
|
|
60
|
+
)
|
|
61
|
+
|
|
49
62
|
def cids(self, metric: str = "") -> list[int]:
|
|
50
63
|
"""Get component IDs for this component.
|
|
51
64
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: frequenz-gridpool
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: High-level interface to grid pools for the Frequenz platform.
|
|
5
5
|
Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
|
|
6
6
|
License: MIT
|
|
@@ -23,7 +23,7 @@ License-File: LICENSE
|
|
|
23
23
|
Requires-Dist: marshmallow-dataclass<9,>=8.7.1
|
|
24
24
|
Requires-Dist: asyncclick<9,>=8.3.0.4
|
|
25
25
|
Requires-Dist: typing-extensions<5,>=4.14.1
|
|
26
|
-
Requires-Dist: frequenz-microgrid-component-graph<0.
|
|
26
|
+
Requires-Dist: frequenz-microgrid-component-graph<0.4,>=0.3.4
|
|
27
27
|
Requires-Dist: frequenz-client-assets<0.3,>=0.2.0
|
|
28
28
|
Provides-Extra: dev-flake8
|
|
29
29
|
Requires-Dist: flake8==7.3.0; extra == "dev-flake8"
|
|
@@ -60,7 +60,7 @@ Requires-Dist: pylint==4.0.4; extra == "dev-pytest"
|
|
|
60
60
|
Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.7; extra == "dev-pytest"
|
|
61
61
|
Requires-Dist: pytest-mock==3.15.1; extra == "dev-pytest"
|
|
62
62
|
Requires-Dist: pytest-asyncio==1.3.0; extra == "dev-pytest"
|
|
63
|
-
Requires-Dist: async-solipsism==0.
|
|
63
|
+
Requires-Dist: async-solipsism==0.9; extra == "dev-pytest"
|
|
64
64
|
Provides-Extra: dev
|
|
65
65
|
Requires-Dist: frequenz-gridpool[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
|
|
66
66
|
Dynamic: license-file
|
{frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/requires.txt
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
marshmallow-dataclass<9,>=8.7.1
|
|
2
2
|
asyncclick<9,>=8.3.0.4
|
|
3
3
|
typing-extensions<5,>=4.14.1
|
|
4
|
-
frequenz-microgrid-component-graph<0.
|
|
4
|
+
frequenz-microgrid-component-graph<0.4,>=0.3.4
|
|
5
5
|
frequenz-client-assets<0.3,>=0.2.0
|
|
6
6
|
|
|
7
7
|
[dev]
|
|
@@ -48,4 +48,4 @@ pylint==4.0.4
|
|
|
48
48
|
frequenz-repo-config[extra-lint-examples]==0.13.7
|
|
49
49
|
pytest-mock==3.15.1
|
|
50
50
|
pytest-asyncio==1.3.0
|
|
51
|
-
async-solipsism==0.
|
|
51
|
+
async-solipsism==0.9
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz/gridpool/_graph_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{frequenz_gridpool-0.2.0 → frequenz_gridpool-0.3.0}/src/frequenz_gridpool.egg-info/top_level.txt
RENAMED
|
File without changes
|