eptr2 1.2.1.dev0__tar.gz → 1.2.1.dev2__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.
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/PKG-INFO +1 -1
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/6_/360/237/221/250/342/200/215/360/237/222/273_Yeni_Dengesizlik_Hesab/304/261.py +3 -1
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/costs.py +5 -5
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/pyproject.toml +1 -3
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/uv.lock +1 -1
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/.gitignore +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/LICENSE +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/README.md +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/creds/eptr_credentials.json +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/bpm.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/consumption.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/dabi_idm.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/idm_log.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/mms.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/plant_costs.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/price_and_cost.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/production.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/main.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/checks.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/help.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/parameters.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/path.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/processing.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/postprocess/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/postprocess/items.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/preprocess/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/preprocess/calls.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/preprocess/params.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/calc.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/common.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/1_/360/237/221/251/342/200/215/360/237/222/273_Demo.py" +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/2_/360/237/224/256_Pozisyonlar.py" +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/3_/342/232/241/357/270/217_/303/234retim_Planlama.py" +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/4_/360/237/222/260_Fiyat_ve_Maliyetler.py" +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/5_/360/237/222/270_Santral_Dengesizlik.py" +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite//342/255/220/357/270/217_Ana_Sayfa.py" +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/demo.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/main.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/certificate.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/evaluation.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/time.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/__init__.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_consumption.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_mms.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_price_and_cost.py +0 -0
- {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_production.py +0 -0
|
@@ -16,7 +16,9 @@ def new_temp_imbalance_calculation():
|
|
|
16
16
|
"SMF", key="smp", value=2500.0, min_value=0.0, max_value=3400.0, step=0.1
|
|
17
17
|
)
|
|
18
18
|
|
|
19
|
-
res = temp_calculate_imbalance_price_and_costs_new(
|
|
19
|
+
res = temp_calculate_imbalance_price_and_costs_new(
|
|
20
|
+
mcp=round(ss.mcp, 2), smp=round(ss.smp, 2)
|
|
21
|
+
)
|
|
20
22
|
|
|
21
23
|
# res_cols = st.columns(4)
|
|
22
24
|
with calc_cols[2]:
|
|
@@ -382,12 +382,12 @@ def temp_calculate_imbalance_price_and_costs_new(
|
|
|
382
382
|
ceil_margin: Additional margin applied when the maximum of mcp and smp is equal to ceil_price (5%)
|
|
383
383
|
regulation: Direction of system regulation ("up", "down", "balanced") when mcp == smp
|
|
384
384
|
"""
|
|
385
|
-
if mcp > smp:
|
|
386
|
-
neg_margin = high_margin
|
|
387
|
-
pos_margin = low_margin
|
|
388
|
-
elif mcp < smp:
|
|
385
|
+
if mcp > smp: ## system imbalance is positive
|
|
389
386
|
neg_margin = low_margin
|
|
390
387
|
pos_margin = high_margin
|
|
388
|
+
elif mcp < smp: ## system imbalance is negative
|
|
389
|
+
neg_margin = high_margin
|
|
390
|
+
pos_margin = low_margin
|
|
391
391
|
elif mcp == ceil_price: ## system imbalance is still negative
|
|
392
392
|
neg_margin = high_margin
|
|
393
393
|
pos_margin = low_margin
|
|
@@ -400,7 +400,7 @@ def temp_calculate_imbalance_price_and_costs_new(
|
|
|
400
400
|
elif regulation == "down": ## system imbalance is still positive
|
|
401
401
|
neg_margin = low_margin
|
|
402
402
|
pos_margin = high_margin
|
|
403
|
-
else:
|
|
403
|
+
else: ### system is balanced
|
|
404
404
|
neg_margin = low_margin
|
|
405
405
|
pos_margin = low_margin
|
|
406
406
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "eptr2"
|
|
3
|
-
version = "1.2.1.
|
|
3
|
+
version = "1.2.1.dev2"
|
|
4
4
|
description = "EPIAS Transparency Platform v2.0 Python client by Robokami Data"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Tideseed", email = "info@tideseed.com"}
|
|
@@ -38,5 +38,3 @@ dev-dependencies = [
|
|
|
38
38
|
"pytest>=7.4.0",
|
|
39
39
|
"python-dotenv>=0.19.1",
|
|
40
40
|
]
|
|
41
|
-
|
|
42
|
-
|
|
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
|
|
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
|