detquantlib 5.7.0__tar.gz → 5.7.1__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.
- {detquantlib-5.7.0 → detquantlib-5.7.1}/PKG-INFO +2 -1
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/assets/battery.py +6 -6
- {detquantlib-5.7.0 → detquantlib-5.7.1}/pyproject.toml +2 -1
- {detquantlib-5.7.0 → detquantlib-5.7.1}/LICENSE.txt +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/README.md +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/assets/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/assets/wind_turbine.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/converters/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/converters/definitions.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/converters/energy.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/converters/helpers.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/converters/price.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/databases/detdatabase.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/databases/helpers.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/databases/snowflake_client.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/entsoe/entsoe.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/sftp/sftp.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/data/tennet/tennet_client.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/dates/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/dates/dates.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/figures/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/figures/plotly_figures.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/forecasting/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/forecasting/forecasting.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/outputs/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/outputs/outputs_interface.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/stats/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/stats/data_analysis.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/tradable_products/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/tradable_products/tradable_products.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/utils/__init__.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/utils/logging.py +0 -0
- {detquantlib-5.7.0 → detquantlib-5.7.1}/detquantlib/utils/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: detquantlib
|
|
3
|
-
Version: 5.7.
|
|
3
|
+
Version: 5.7.1
|
|
4
4
|
Summary: An internal library containing functions and classes that can be used across Quant models.
|
|
5
5
|
License-File: LICENSE.txt
|
|
6
6
|
Author: Dynamic Energy Trading
|
|
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.15
|
|
|
15
15
|
Requires-Dist: colorlog (>=6.10.1,<7.0.0)
|
|
16
16
|
Requires-Dist: cryptography (>=50.0.2,<51.0.0)
|
|
17
17
|
Requires-Dist: numpy (>=2.2.6,<3.0.0)
|
|
18
|
+
Requires-Dist: openpyxl (>=3.1.5,<4.0.0)
|
|
18
19
|
Requires-Dist: pandas (>=2.3.3,<3.0.0)
|
|
19
20
|
Requires-Dist: paramiko (>=4.0.0,<5.0.0)
|
|
20
21
|
Requires-Dist: plotly (>=6.3.1,<7.0.0)
|
|
@@ -284,6 +284,12 @@ class BatteryState:
|
|
|
284
284
|
.rename(columns={"site_node_id": "site_node_ids"})
|
|
285
285
|
)
|
|
286
286
|
|
|
287
|
+
# Filter on desired capacity:power ratio
|
|
288
|
+
if cp_ratio is not None:
|
|
289
|
+
df_vpp = df_vpp[df_vpp["cp_ratio"] == cp_ratio]
|
|
290
|
+
if df_vpp.empty:
|
|
291
|
+
raise ValueError(f"Capacity:power ratio of {cp_ratio} not found.")
|
|
292
|
+
|
|
287
293
|
df_vpp.drop(columns="cp_ratio", inplace=True)
|
|
288
294
|
|
|
289
295
|
# Round to avoid machine precision issues caused by 'group by'
|
|
@@ -299,12 +305,6 @@ class BatteryState:
|
|
|
299
305
|
# Create battery objects
|
|
300
306
|
batteries = [BatteryState(**df_vpp.loc[i, :].to_dict()) for i in df_vpp.index]
|
|
301
307
|
|
|
302
|
-
# Filter on desired capacity:power ratio
|
|
303
|
-
if cp_ratio is not None:
|
|
304
|
-
batteries = next((b for b in batteries if b.cp_ratio == cp_ratio), None)
|
|
305
|
-
if batteries is None:
|
|
306
|
-
raise ValueError(f"Capacity:power ratio of {cp_ratio} not found.")
|
|
307
|
-
|
|
308
308
|
return batteries
|
|
309
309
|
|
|
310
310
|
@staticmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "detquantlib"
|
|
3
|
-
version = "5.7.
|
|
3
|
+
version = "5.7.1"
|
|
4
4
|
description = "An internal library containing functions and classes that can be used across Quant models."
|
|
5
5
|
authors = ["Dynamic Energy Trading"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -23,6 +23,7 @@ colorlog = "^6.10.1"
|
|
|
23
23
|
redis = "^7.4.0"
|
|
24
24
|
snowflake-connector-python = {extras = ["pandas"], version = "^4.8.0"}
|
|
25
25
|
cryptography = "^50.0.2"
|
|
26
|
+
openpyxl = "^3.1.5"
|
|
26
27
|
|
|
27
28
|
[tool.poetry.group.dev.dependencies]
|
|
28
29
|
toml = "^0.10.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|