Coverage for backend/flowsheetInternals/unitops/config/objects/transmission_line_config.py: 100%

3 statements  

« 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 * 

3 

4transmission_line_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "Distribution Line", 

6 "displayName": "Distribution Line", 

7 "ports": { 

8 "outlet_1": { 

9 "many": False, 

10 "displayName": "Power Source", 

11 "type": ConType.Outlet, 

12 "streamType": "energy_stream", 

13 "streamName": "PS" 

14 }, 

15 "outlet_2": { 

16 "many": False, 

17 "displayName": "Power Destination", 

18 "type": ConType.Outlet, 

19 "streamType": "energy_stream", 

20 "streamName": "PS" 

21 }, 

22 

23 }, 

24 "propertyPackagePorts": default_property_package_ports(), 

25 "graphicObject": unitop_graphic(), 

26 "properties": { 

27 "power_transfer": { 

28 "displayName": "Power transfer", 

29 "type": "numeric", 

30 "unitType": "heatflow", 

31 }, 

32 }, 

33 "propertySetGroups": { 

34 "default": { 

35 "type": "stateVars", 

36 "displayName": "Properties", 

37 "stateVars": ("power_transfer",), 

38 } 

39 }, 

40 "keyProperties": [ 

41 

42 ] 

43})