Coverage for backend/flowsheetInternals/unitops/config/objects/ac_stream_config.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
1from common.config_types import *
2from common.config_utils import *
5ac_stream_config: ObjectType = ObjectType.model_validate({
6 "displayType": "Stream",
7 "is_stream": True,
8 "ports": {},
9 # TODO: check if streams have inlets and outlets
10 "graphicObject": stream_graphic(),
11 "properties": {
12 "active_power": {
13 "displayName": "Active Power",
14 "type": "numeric",
15 "unitType": "heatflow",
16 },
17 "reactive_power": {
18 "displayName": "Reactive Power",
19 "type": "numeric",
20 "unitType": "heatflow",
21 },
22 "voltage": {
23 "displayName": "Voltage",
24 "type": "numeric",
25 "unitType": "electric",
26 },
27 },
28 "propertySetGroups": {
29 "default": {
30 "type": "stateVars",
31 "displayName": "Properties",
32 "stateVars": ("active_power","reactive_power","voltage"),
33 }
34 },
35 "keyProperties": []
36})