openenergyid 0.1.21__py3-none-any.whl → 0.1.29__py3-none-any.whl
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.
Potentially problematic release.
This version of openenergyid might be problematic. Click here for more details.
- openenergyid/__init__.py +1 -1
- openenergyid/baseload/analysis.py +5 -3
- openenergyid/dyntar/models.py +2 -12
- openenergyid/models.py +5 -1
- openenergyid/mvlr/mvlr.py +3 -3
- openenergyid-0.1.29.dist-info/METADATA +30 -0
- {openenergyid-0.1.21.dist-info → openenergyid-0.1.29.dist-info}/RECORD +10 -9
- {openenergyid-0.1.21.dist-info → openenergyid-0.1.29.dist-info}/WHEEL +2 -2
- openenergyid-0.1.29.dist-info/top_level.txt +1 -0
- openenergyid-0.1.21.dist-info/METADATA +0 -50
- {openenergyid-0.1.21.dist-info → openenergyid-0.1.29.dist-info}/licenses/LICENSE +0 -0
openenergyid/__init__.py
CHANGED
|
@@ -163,11 +163,13 @@ class BaseloadAnalyzer:
|
|
|
163
163
|
pl.col("total_consumption_in_kilowatthour")
|
|
164
164
|
- pl.col("consumption_due_to_baseload_in_kilowatthour")
|
|
165
165
|
).alias("consumption_not_due_to_baseload_in_kilowatthour"),
|
|
166
|
-
|
|
167
|
-
(
|
|
166
|
+
pl.when(pl.col("total_consumption_in_kilowatthour") != 0)
|
|
167
|
+
.then(
|
|
168
168
|
pl.col("consumption_due_to_baseload_in_kilowatthour")
|
|
169
169
|
/ pl.col("total_consumption_in_kilowatthour")
|
|
170
|
-
)
|
|
170
|
+
)
|
|
171
|
+
.otherwise(None)
|
|
172
|
+
.alias("baseload_ratio"),
|
|
171
173
|
]
|
|
172
174
|
)
|
|
173
175
|
)
|
openenergyid/dyntar/models.py
CHANGED
|
@@ -95,16 +95,6 @@ class DynamicTariffAnalysisOutputSummary(BaseModel):
|
|
|
95
95
|
class DynamicTariffAnalysisOutput(TimeDataFrame):
|
|
96
96
|
"""Output frame for dynamic tariff analysis."""
|
|
97
97
|
|
|
98
|
-
columns: list[
|
|
99
|
-
|
|
100
|
-
max_length=len(OutputColumns.__args__),
|
|
101
|
-
examples=[OutputColumns.__args__],
|
|
102
|
-
)
|
|
103
|
-
data: list[
|
|
104
|
-
conlist(
|
|
105
|
-
item_type=confloat(allow_inf_nan=True),
|
|
106
|
-
min_length=1,
|
|
107
|
-
max_length=len(OutputColumns.__args__),
|
|
108
|
-
) # type: ignore
|
|
109
|
-
] = Field(examples=[[0.0] * len(OutputColumns.__args__)])
|
|
98
|
+
columns: list[str]
|
|
99
|
+
data: list[list[float | None]]
|
|
110
100
|
summary: DynamicTariffAnalysisOutputSummary | None = None
|
openenergyid/models.py
CHANGED
|
@@ -88,7 +88,11 @@ class TimeSeries(TimeSeriesBase):
|
|
|
88
88
|
@classmethod
|
|
89
89
|
def from_pandas(cls, data: pd.Series) -> Self:
|
|
90
90
|
"""Create from a Pandas Series."""
|
|
91
|
-
|
|
91
|
+
if not hasattr(data, "name") or data.name is None:
|
|
92
|
+
name = None
|
|
93
|
+
else:
|
|
94
|
+
name = str(data.name)
|
|
95
|
+
return cls(name=name, data=data.tolist(), index=data.index.tolist())
|
|
92
96
|
|
|
93
97
|
def to_pandas(self, timezone: str = "UTC") -> pd.Series:
|
|
94
98
|
"""Convert to a Pandas Series."""
|
openenergyid/mvlr/mvlr.py
CHANGED
|
@@ -206,9 +206,9 @@ class MultiVariableLinearRegression:
|
|
|
206
206
|
|
|
207
207
|
def _do_analysis_cross_validation(self):
|
|
208
208
|
"""Find the best model (fit) based on cross-valiation (leave one out)"""
|
|
209
|
-
assert (
|
|
210
|
-
|
|
211
|
-
)
|
|
209
|
+
assert len(self.data) < 15, (
|
|
210
|
+
"Cross-validation is not implemented if your sample contains more than 15 datapoints"
|
|
211
|
+
)
|
|
212
212
|
|
|
213
213
|
# initialization: first model is the mean, but compute cv correctly.
|
|
214
214
|
errors = []
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: openenergyid
|
|
3
|
+
Version: 0.1.29
|
|
4
|
+
Summary: Open Source Python library for energy analytics and simulations
|
|
5
|
+
Author-email: Jan Pecinovsky <jan@energieid.be>, Max Helskens <max@energieid.be>, Oscar Swyns <oscar@energieid.be>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Keywords: energy,analytics,simulation
|
|
8
|
+
Classifier: Development Status :: 3 - Alpha
|
|
9
|
+
Classifier: Intended Audience :: Developers
|
|
10
|
+
Classifier: Intended Audience :: Science/Research
|
|
11
|
+
Classifier: Natural Language :: English
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Topic :: Scientific/Engineering
|
|
15
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
16
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
17
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: pandera[polars]>=0.22.1
|
|
22
|
+
Requires-Dist: pydantic>=2.8.2
|
|
23
|
+
Requires-Dist: statsmodels>=0.14.2
|
|
24
|
+
Dynamic: license-file
|
|
25
|
+
|
|
26
|
+
# OpenEnergyID
|
|
27
|
+
|
|
28
|
+
Open Source Python library for energy data analytics and simulations
|
|
29
|
+
|
|
30
|
+
[*more info for developers*](DEVELOPERS.md)
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
openenergyid/__init__.py,sha256=
|
|
1
|
+
openenergyid/__init__.py,sha256=EweBkQt142zR18upgUaoaVkWDGweGyAFquXajtTYX8c,193
|
|
2
2
|
openenergyid/const.py,sha256=D-xUnUyVuLmphClkePgxpFP6z0RDhw_6m7rX0BHBgrw,823
|
|
3
3
|
openenergyid/enums.py,sha256=jdw4CB1gkisx0re_SesrTEyh_T-UxYp6uieE7iYlHdA,357
|
|
4
|
-
openenergyid/models.py,sha256=
|
|
4
|
+
openenergyid/models.py,sha256=hH7_ymOQStcO9XeLdrk2rWQMlZHmgvdmDUSL56wNymg,6074
|
|
5
5
|
openenergyid/baseload/__init__.py,sha256=LXgnCnoSB1fyknMvkAv8nbtYczqW8Od_N2v_bp-LYVw,437
|
|
6
|
-
openenergyid/baseload/analysis.py,sha256=
|
|
6
|
+
openenergyid/baseload/analysis.py,sha256=oFawfL4c8WrQxRb9WY74V4rVvslmyHhZ_uQ171C93cQ,7591
|
|
7
7
|
openenergyid/baseload/exceptions.py,sha256=uPPQlFmOikp3wuwdVxj3Mx-45TzPkLF86rKMFjT5qB4,250
|
|
8
8
|
openenergyid/baseload/models.py,sha256=W_WCcdLdkbySH7o5adLE7_txXLZsAVTjJkwzjepwN1Y,917
|
|
9
9
|
openenergyid/capacity/__init__.py,sha256=1En96HlPV8kd1hOJO9RjRbXNInp5ZSkmjsjp0jfZlcQ,221
|
|
@@ -12,7 +12,7 @@ openenergyid/capacity/models.py,sha256=qi0IFyF_QOVleSzN8g0U2Fzqcc9ZDfNKt8oteFLY6
|
|
|
12
12
|
openenergyid/dyntar/__init__.py,sha256=lUrk7ktS7yAqiafRHFoBE0RvFSI9mzDoO37diwLHuBg,495
|
|
13
13
|
openenergyid/dyntar/const.py,sha256=eJJV9VfpHlS9vWV47DWQkS3ICIXWhDmG4cU-ofbZJ3Q,1100
|
|
14
14
|
openenergyid/dyntar/main.py,sha256=i8EkayRicnMhG66cyrxGwUumFx3UGe7KDSImfFqmK04,10638
|
|
15
|
-
openenergyid/dyntar/models.py,sha256=
|
|
15
|
+
openenergyid/dyntar/models.py,sha256=A3ngK1X6mFDL5-9FpVdTSu5VmDy0s7OeqNyevUiGXsk,3098
|
|
16
16
|
openenergyid/energysharing/__init__.py,sha256=A4JfrUYf-hBCzhUm0qL1GGlNMvpO8OwXJo80dJxFIvw,274
|
|
17
17
|
openenergyid/energysharing/const.py,sha256=X2zEPtTlsmZ66w6RmLS_h8NmdzObAEi5N6-0yrLN5V4,219
|
|
18
18
|
openenergyid/energysharing/data_formatting.py,sha256=Kwuhyn6ao_8Brdm9frlA6VzYOqimNYZsRbYwNXnE7yc,2583
|
|
@@ -22,8 +22,9 @@ openenergyid/mvlr/__init__.py,sha256=Glrc218oqa8tq_Y2G9LXaSoN4Yba-vsjXUi9r9iPzaY
|
|
|
22
22
|
openenergyid/mvlr/helpers.py,sha256=Uzbfrj3IpH26wA206KOl0hNucKE-n9guJNC_EROBVKA,983
|
|
23
23
|
openenergyid/mvlr/main.py,sha256=Daj9UjcX70WETRrKu3QY-1LfMRkKP8Wvu4Ted-Smwzs,1491
|
|
24
24
|
openenergyid/mvlr/models.py,sha256=XvkViOLlYqi0ffgF3AD4Jvk3yL05gsoKdKgBAsGJ7L4,8581
|
|
25
|
-
openenergyid/mvlr/mvlr.py,sha256=
|
|
26
|
-
openenergyid-0.1.
|
|
27
|
-
openenergyid-0.1.
|
|
28
|
-
openenergyid-0.1.
|
|
29
|
-
openenergyid-0.1.
|
|
25
|
+
openenergyid/mvlr/mvlr.py,sha256=zcVWsKDfcS2jdfa-45QPu3YCnhL4p14FHuWpQLLwIL4,18626
|
|
26
|
+
openenergyid-0.1.29.dist-info/licenses/LICENSE,sha256=NgRdcNHwyXVCXZ8sJwoTp0DCowThJ9LWWl4xhbV1IUY,1074
|
|
27
|
+
openenergyid-0.1.29.dist-info/METADATA,sha256=tayyCY0d2D2cilvGl_Z-MiKMju3cZv6FGbBbzQHWuKc,1155
|
|
28
|
+
openenergyid-0.1.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
29
|
+
openenergyid-0.1.29.dist-info/top_level.txt,sha256=vf3DmJCXgD_lJjSPFktonUJJT6vEg6KIPCKMPfCWCFI,13
|
|
30
|
+
openenergyid-0.1.29.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
openenergyid
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: openenergyid
|
|
3
|
-
Version: 0.1.21
|
|
4
|
-
Summary: Open Source Python library for energy analytics and simulations
|
|
5
|
-
Project-URL: Homepage, https://energyid.eu
|
|
6
|
-
Project-URL: Repository, https://github.com/EnergieID/OpenEnergyID
|
|
7
|
-
Project-URL: Bugs Tracker, https://github.com/EnergieID/OpenEnergyID/issues
|
|
8
|
-
Author-email: Jan Pecinovsky <jan@energieid.be>, Max Helskens <max@energieid.be>
|
|
9
|
-
Maintainer-email: Jan Pecinovsky <jan@energieid.be>
|
|
10
|
-
License: MIT License
|
|
11
|
-
|
|
12
|
-
Copyright (c) 2023 EnergieID cvba-so
|
|
13
|
-
|
|
14
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
15
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
16
|
-
in the Software without restriction, including without limitation the rights
|
|
17
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
18
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
19
|
-
furnished to do so, subject to the following conditions:
|
|
20
|
-
|
|
21
|
-
The above copyright notice and this permission notice shall be included in all
|
|
22
|
-
copies or substantial portions of the Software.
|
|
23
|
-
|
|
24
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
25
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
26
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
27
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
28
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
29
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
30
|
-
SOFTWARE.
|
|
31
|
-
License-File: LICENSE
|
|
32
|
-
Keywords: analytics,energy,simulation
|
|
33
|
-
Classifier: Development Status :: 3 - Alpha
|
|
34
|
-
Classifier: Intended Audience :: Developers
|
|
35
|
-
Classifier: Intended Audience :: Science/Research
|
|
36
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
37
|
-
Classifier: Natural Language :: English
|
|
38
|
-
Classifier: Operating System :: OS Independent
|
|
39
|
-
Classifier: Programming Language :: Python :: 3
|
|
40
|
-
Classifier: Topic :: Scientific/Engineering
|
|
41
|
-
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
42
|
-
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
43
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
44
|
-
Description-Content-Type: text/markdown
|
|
45
|
-
|
|
46
|
-
# OpenEnergyID
|
|
47
|
-
|
|
48
|
-
Open Source Python library for energy data analytics and simulations
|
|
49
|
-
|
|
50
|
-
[*more info for developers*](DEVELOPERS.md)
|
|
File without changes
|