-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #107 from thegridelectric/fudge-factor
Updated LayoutLite with FudgeFactor in Ha1Params
- Loading branch information
Showing
14 changed files
with
136 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"""Type ha1.params, version 001""" | ||
|
||
from typing import Literal | ||
|
||
from gw.named_types import GwBase | ||
from pydantic import StrictInt | ||
|
||
|
||
class Ha1Params001(GwBase): | ||
alpha_times10: StrictInt | ||
beta_times100: StrictInt | ||
gamma_ex6: StrictInt | ||
intermediate_power_kw: float | ||
intermediate_rswt_f: StrictInt | ||
dd_power_kw: float | ||
dd_rswt_f: StrictInt | ||
dd_delta_t_f: StrictInt | ||
hp_max_kw_th: float | ||
max_ewt_f: StrictInt | ||
type_name: Literal["ha1.params"] = "ha1.params" | ||
version: Literal["001"] = "001" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"""Type layout.lite, version 003""" | ||
|
||
from typing import List, Literal | ||
|
||
from gw.named_types import GwBase | ||
from pydantic import PositiveInt | ||
|
||
from gjk.named_types.data_channel_gt import DataChannelGt | ||
from gjk.named_types.i2c_multichannel_dt_relay_component_gt import ( | ||
I2cMultichannelDtRelayComponentGt, | ||
) | ||
from gjk.named_types.pico_flow_module_component_gt import PicoFlowModuleComponentGt | ||
from gjk.named_types.pico_tank_module_component_gt import PicoTankModuleComponentGt | ||
from gjk.named_types.spaceheat_node_gt import SpaceheatNodeGt | ||
from gjk.named_types.synth_channel_gt import SynthChannelGt | ||
from gjk.old_types.ha1_params_001 import Ha1Params001 | ||
from gjk.property_format import ( | ||
LeftRightDot, | ||
UTCMilliseconds, | ||
UUID4Str, | ||
) | ||
|
||
|
||
class LayoutLite003(GwBase): | ||
from_g_node_alias: LeftRightDot | ||
from_g_node_instance_id: UUID4Str | ||
message_created_ms: UTCMilliseconds | ||
message_id: UUID4Str | ||
strategy: str | ||
zone_list: List[str] | ||
total_store_tanks: PositiveInt | ||
sh_nodes: List[SpaceheatNodeGt] | ||
data_channels: List[DataChannelGt] | ||
synth_channels: List[SynthChannelGt] | ||
tank_module_components: List[PicoTankModuleComponentGt] | ||
flow_module_components: List[PicoFlowModuleComponentGt] | ||
ha1_params: Ha1Params001 | ||
i2c_relay_component: I2cMultichannelDtRelayComponentGt | ||
type_name: Literal["layout.lite"] = "layout.lite" | ||
version: Literal["003"] = "003" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""Type scada.params, version 002""" | ||
|
||
from typing import Literal, Optional | ||
|
||
from gw.named_types import GwBase | ||
from gw.utils import snake_to_pascal | ||
from pydantic import ConfigDict | ||
|
||
from gjk.old_types.ha1_params_001 import Ha1Params001 | ||
from gjk.property_format import ( | ||
LeftRightDot, | ||
SpaceheatName, | ||
UTCMilliseconds, | ||
UUID4Str, | ||
) | ||
|
||
|
||
class ScadaParams002(GwBase): | ||
from_g_node_alias: LeftRightDot | ||
from_name: SpaceheatName | ||
to_name: SpaceheatName | ||
unix_time_ms: UTCMilliseconds | ||
message_id: UUID4Str | ||
new_params: Optional[Ha1Params001] = None | ||
old_params: Optional[Ha1Params001] = None | ||
type_name: Literal["scada.params"] = "scada.params" | ||
version: Literal["002"] = "002" | ||
|
||
model_config = ConfigDict( | ||
alias_generator=snake_to_pascal, | ||
extra="allow", | ||
frozen=True, | ||
populate_by_name=True, | ||
use_enum_values=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters