You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
detail=f"{pct_missing:.1f}% of '{col_to_predict}' fields are missing, but {pct_to_fill:.1f}% can be calculated"
160
-
" using redundant microgrid metering data",
159
+
detail=f"{pct_missing:.1f}% of '{col_to_predict}' fields are missing, but {pct_to_fill:.1f}% can be calculated using redundant microgrid metering data",
This is just a container to hold the various rate objects
22
22
"""
23
23
mkt_vol: VolRatesForEnergyFlows=field(default_factory=VolRatesForEnergyFlows) # Volume-based (p/kWh) market rates for each energy flow, as predicted in real-time
24
-
mkt_fix: Dict[str, List[FixedRate]] =field(default_factory=dict) # Fixed p/day rates associated with market/suppliers, keyed by user-specified string which can be used to categorise
25
-
customer: Dict[str, List[Rate]] =field(default_factory=dict) # Volume and fixed rates charged to customers, keyed by user-specified string which can be used to categorise
24
+
mkt_fix: Dict[str, List[FixedRate]] =field(default_factory=dict) # Fixed p/day rates associated with market/suppliers, keyed by a string which can be used to categorise
25
+
customer_vol: Dict[str, List[VolRate]] =field(default_factory=dict) # Volume rates charged to customers, keyed by a string which can be used to categorise
26
+
customer_fix: Dict[str, List[FixedRate]] =field(default_factory=dict) # Fixed rates charged to customers, keyed by a string which can be used to categorise
live_mkt_vol: VolRatesForEnergyFlows=field(default_factory=VolRatesForEnergyFlows) # Volume-based (p/kWh) market/supplier rates for each energy flow, as predicted in real-time
53
53
final_mkt_vol: VolRatesForEnergyFlows=field(default_factory=VolRatesForEnergyFlows) # Volume-based (p/kWh) market/supplier rates for each energy flow
Copy file name to clipboardExpand all lines: src/skypro/common/config/rates_dataclasses.py
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,15 @@ class SiteSpecifier:
19
19
bands: List[str]
20
20
21
21
22
+
@dataclass
23
+
classCustomerRatesDB:
24
+
"""
25
+
Configures rates for customers (i.e. domestic homes) to be pulled from a database
26
+
"""
27
+
import_bundles: List[str] =field_with_opts(key="importBundles") # Names of any import rate bundles to use for the customer load
28
+
export_bundles: List[str] =field_with_opts(key="exportBundles") # Names of any export rate bundles to use for the customer export
29
+
30
+
22
31
@dataclass
23
32
classRatesDB:
24
33
"""
@@ -29,6 +38,7 @@ class RatesDB:
29
38
import_bundles: List[str] =field_with_opts(key="importBundles") # Names of any import rate bundles to use in addition to the site specific ones (e.g. Supplier arrangements)
30
39
export_bundles: List[str] =field_with_opts(key="exportBundles") # Names of any export rate bundles to use in addition to the site specific ones (e.g. Supplier arrangements).
31
40
future_offset_str: Optional[str] =field_with_opts(key="futureOffset") # For simulations, it can be useful to bring the rates forwards in time, for example we might want to use the 2025 rates for a simulation run over 2024
41
+
customer: Optional[CustomerRatesDB] # Optionally define rates for customers - these are only really used for reporting purposes as this doesn't affect control algorithms
0 commit comments