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.
Files changed (54) hide show
  1. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/PKG-INFO +1 -1
  2. {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
  3. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/costs.py +5 -5
  4. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/pyproject.toml +1 -3
  5. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/uv.lock +1 -1
  6. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/.gitignore +0 -0
  7. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/LICENSE +0 -0
  8. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/README.md +0 -0
  9. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/creds/eptr_credentials.json +0 -0
  10. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/__init__.py +0 -0
  11. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/__init__.py +0 -0
  12. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/bpm.py +0 -0
  13. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/consumption.py +0 -0
  14. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/dabi_idm.py +0 -0
  15. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/idm_log.py +0 -0
  16. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/mms.py +0 -0
  17. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/plant_costs.py +0 -0
  18. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/price_and_cost.py +0 -0
  19. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/composite/production.py +0 -0
  20. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/main.py +0 -0
  21. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/__init__.py +0 -0
  22. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/checks.py +0 -0
  23. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/help.py +0 -0
  24. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/parameters.py +0 -0
  25. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/path.py +0 -0
  26. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/mapping/processing.py +0 -0
  27. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/__init__.py +0 -0
  28. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/postprocess/__init__.py +0 -0
  29. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/postprocess/items.py +0 -0
  30. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/preprocess/__init__.py +0 -0
  31. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/preprocess/calls.py +0 -0
  32. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/processing/preprocess/params.py +0 -0
  33. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/__init__.py +0 -0
  34. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/calc.py +0 -0
  35. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/__init__.py +0 -0
  36. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/common.py +0 -0
  37. {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
  38. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/2_/360/237/224/256_Pozisyonlar.py" +0 -0
  39. {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
  40. {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
  41. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite/pages/5_/360/237/222/270_Santral_Dengesizlik.py" +0 -0
  42. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/composite//342/255/220/357/270/217_Ana_Sayfa.py" +0 -0
  43. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/demo.py +0 -0
  44. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/tutorials/main.py +0 -0
  45. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/__init__.py +0 -0
  46. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/certificate.py +0 -0
  47. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/evaluation.py +0 -0
  48. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/eptr2/util/time.py +0 -0
  49. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/__init__.py +0 -0
  50. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/__init__.py +0 -0
  51. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_consumption.py +0 -0
  52. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_mms.py +0 -0
  53. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_price_and_cost.py +0 -0
  54. {eptr2-1.2.1.dev0 → eptr2-1.2.1.dev2}/tests/composite/test_production.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: eptr2
3
- Version: 1.2.1.dev0
3
+ Version: 1.2.1.dev2
4
4
  Summary: EPIAS Transparency Platform v2.0 Python client by Robokami Data
5
5
  Author-email: Tideseed <info@tideseed.com>
6
6
  License: Apache License 2.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(mcp=ss.mcp, smp=ss.smp)
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.dev0"
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
-
@@ -178,7 +178,7 @@ wheels = [
178
178
 
179
179
  [[package]]
180
180
  name = "eptr2"
181
- version = "1.2.0"
181
+ version = "1.2.1.dev1"
182
182
  source = { editable = "." }
183
183
  dependencies = [
184
184
  { name = "pytz" },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes