Coverage for backend/flowsheetInternals/unitops/config/objects/transformer_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 *
4transformer_config: ObjectType = ObjectType.model_validate({
5 "displayType": "Substation",
6 "displayName": "Substation",
8 "ports": {
9 "inlet": {
10 "displayName": "Inlet",
11 "type": ConType.Inlet,
12 "streamType": "energy_stream",
13 "streamName": "PS"
14 },
15 "outlet": {
16 "displayName": "Outlet",
17 "type": ConType.Outlet,
18 "streamType": "energy_stream",
19 "streamName": "PS"
20 }
21 },
22 "propertyPackagePorts": default_property_package_ports(),
23 "graphicObject": unitop_graphic(),
24 "properties": {
25 "n_capacity": {
26 "displayName": "Capacity",
27 "type": "numeric",
28 "unitType": "heatflow"
29 },
30 "voltage": {
31 "displayName": "Voltage",
32 "type": "numeric",
33 "unitType": "electric"
34 },
35 "efficiency": {
36 "displayName": "Efficiency",
37 "type": "numeric",
38 "unitType": "ratio"
39 },
40 },
41 "propertySetGroups": {
42 "default": {
43 "type": "stateVars",
44 "displayName": "Properties",
45 "stateVars": ("n_capacity", "voltage", "efficiency"),
46 }
47 },
48 "keyProperties": [
50 ]
51})