openenergyid 0.1.28__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/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.28.dist-info → openenergyid-0.1.29.dist-info}/RECORD +11 -10
- {openenergyid-0.1.28.dist-info → openenergyid-0.1.29.dist-info}/WHEEL +2 -1
- openenergyid-0.1.29.dist-info/top_level.txt +1 -0
- openenergyid-0.1.28.dist-info/METADATA +0 -41
- {openenergyid-0.1.28.dist-info → openenergyid-0.1.29.dist-info/licenses}/LICENSE +0 -0
|
@@ -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,29 +1,30 @@
|
|
|
1
1
|
openenergyid/__init__.py,sha256=EweBkQt142zR18upgUaoaVkWDGweGyAFquXajtTYX8c,193
|
|
2
|
+
openenergyid/const.py,sha256=D-xUnUyVuLmphClkePgxpFP6z0RDhw_6m7rX0BHBgrw,823
|
|
3
|
+
openenergyid/enums.py,sha256=jdw4CB1gkisx0re_SesrTEyh_T-UxYp6uieE7iYlHdA,357
|
|
4
|
+
openenergyid/models.py,sha256=hH7_ymOQStcO9XeLdrk2rWQMlZHmgvdmDUSL56wNymg,6074
|
|
2
5
|
openenergyid/baseload/__init__.py,sha256=LXgnCnoSB1fyknMvkAv8nbtYczqW8Od_N2v_bp-LYVw,437
|
|
3
|
-
openenergyid/baseload/analysis.py,sha256=
|
|
6
|
+
openenergyid/baseload/analysis.py,sha256=oFawfL4c8WrQxRb9WY74V4rVvslmyHhZ_uQ171C93cQ,7591
|
|
4
7
|
openenergyid/baseload/exceptions.py,sha256=uPPQlFmOikp3wuwdVxj3Mx-45TzPkLF86rKMFjT5qB4,250
|
|
5
8
|
openenergyid/baseload/models.py,sha256=W_WCcdLdkbySH7o5adLE7_txXLZsAVTjJkwzjepwN1Y,917
|
|
6
9
|
openenergyid/capacity/__init__.py,sha256=1En96HlPV8kd1hOJO9RjRbXNInp5ZSkmjsjp0jfZlcQ,221
|
|
7
10
|
openenergyid/capacity/main.py,sha256=G6_EtXs1k_W-fxS33pFrCNKajuH81skdI32zp5RX9bI,3674
|
|
8
11
|
openenergyid/capacity/models.py,sha256=qi0IFyF_QOVleSzN8g0U2Fzqcc9ZDfNKt8oteFLY6Q0,832
|
|
9
|
-
openenergyid/const.py,sha256=D-xUnUyVuLmphClkePgxpFP6z0RDhw_6m7rX0BHBgrw,823
|
|
10
12
|
openenergyid/dyntar/__init__.py,sha256=lUrk7ktS7yAqiafRHFoBE0RvFSI9mzDoO37diwLHuBg,495
|
|
11
13
|
openenergyid/dyntar/const.py,sha256=eJJV9VfpHlS9vWV47DWQkS3ICIXWhDmG4cU-ofbZJ3Q,1100
|
|
12
14
|
openenergyid/dyntar/main.py,sha256=i8EkayRicnMhG66cyrxGwUumFx3UGe7KDSImfFqmK04,10638
|
|
13
|
-
openenergyid/dyntar/models.py,sha256=
|
|
15
|
+
openenergyid/dyntar/models.py,sha256=A3ngK1X6mFDL5-9FpVdTSu5VmDy0s7OeqNyevUiGXsk,3098
|
|
14
16
|
openenergyid/energysharing/__init__.py,sha256=A4JfrUYf-hBCzhUm0qL1GGlNMvpO8OwXJo80dJxFIvw,274
|
|
15
17
|
openenergyid/energysharing/const.py,sha256=X2zEPtTlsmZ66w6RmLS_h8NmdzObAEi5N6-0yrLN5V4,219
|
|
16
18
|
openenergyid/energysharing/data_formatting.py,sha256=Kwuhyn6ao_8Brdm9frlA6VzYOqimNYZsRbYwNXnE7yc,2583
|
|
17
19
|
openenergyid/energysharing/main.py,sha256=QKrtDyAlmKj0qtlqlUMjTJujQeKBK9U1_W80-RZWt-U,4449
|
|
18
20
|
openenergyid/energysharing/models.py,sha256=-FedTqWqoi7AYrbI4S_pX0bMScrbZxncQ21CXFz2cXM,2526
|
|
19
|
-
openenergyid/enums.py,sha256=jdw4CB1gkisx0re_SesrTEyh_T-UxYp6uieE7iYlHdA,357
|
|
20
|
-
openenergyid/models.py,sha256=IA6me6dsXH4mjBzewzHcs7U4jev07JX3pCadEcugeEI,5953
|
|
21
21
|
openenergyid/mvlr/__init__.py,sha256=Glrc218oqa8tq_Y2G9LXaSoN4Yba-vsjXUi9r9iPzaY,471
|
|
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,41 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: openenergyid
|
|
3
|
-
Version: 0.1.28
|
|
4
|
-
Summary: Open Source Python library for energy analytics and simulations
|
|
5
|
-
License: MIT
|
|
6
|
-
Keywords: energy,analytics,simulation
|
|
7
|
-
Author: Jan Pecinovsky
|
|
8
|
-
Author-email: jan@energieid.be
|
|
9
|
-
Requires-Python: >=3.11,<4.0
|
|
10
|
-
Classifier: Development Status :: 3 - Alpha
|
|
11
|
-
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Intended Audience :: Science/Research
|
|
13
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
-
Classifier: Natural Language :: English
|
|
15
|
-
Classifier: Operating System :: OS Independent
|
|
16
|
-
Classifier: Programming Language :: Python :: 3
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
-
Classifier: Topic :: Scientific/Engineering
|
|
21
|
-
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
22
|
-
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
23
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
24
|
-
Requires-Dist: numpy (>=2.0.0,<3.0.0)
|
|
25
|
-
Requires-Dist: pandas (>=2.2.2,<3.0.0)
|
|
26
|
-
Requires-Dist: pandera[polars] (>=0.22.1,<0.23.0)
|
|
27
|
-
Requires-Dist: patsy (>=0.5.6,<0.6.0)
|
|
28
|
-
Requires-Dist: polars (>=1.9.0,<2.0.0)
|
|
29
|
-
Requires-Dist: pydantic (>=2.8.2,<3.0.0)
|
|
30
|
-
Requires-Dist: statsmodels (>=0.14.2,<0.15.0)
|
|
31
|
-
Project-URL: Documentation, https://github.com/EnergieID/OpenEnergyID
|
|
32
|
-
Project-URL: Homepage, https://energyid.eu
|
|
33
|
-
Project-URL: Repository, https://github.com/EnergieID/OpenEnergyID
|
|
34
|
-
Description-Content-Type: text/markdown
|
|
35
|
-
|
|
36
|
-
# OpenEnergyID
|
|
37
|
-
|
|
38
|
-
Open Source Python library for energy data analytics and simulations
|
|
39
|
-
|
|
40
|
-
[*more info for developers*](DEVELOPERS.md)
|
|
41
|
-
|
|
File without changes
|