Coverage for backend/flowsheetInternals/unitops/config/objects/link_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 

4link_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "Bus Coupler", 

6 "ports": { 

7 "inlet": { 

8 "displayName": "Inlet", 

9 "type": ConType.Inlet, 

10 "streamType": "energy_stream" 

11 }, 

12 "outlet": { 

13 "displayName": "Outlet", 

14 "type": ConType.Outlet, 

15 "streamType": "energy_stream" 

16 } 

17 }, 

18 "propertyPackagePorts": default_property_package_ports(), 

19 "graphicObject": unitop_graphic(), 

20 "properties": { 

21 "efficiency": { 

22 "displayName": "Efficiency", 

23 "type": "numeric", 

24 "unitType": "ratio" 

25 } 

26 }, 

27 "propertySetGroups": { 

28 "default": { 

29 "type": "stateVars", 

30 "displayName": "Properties", 

31 "stateVars": ("efficiency",), 

32 } 

33 }, 

34 "keyProperties": [ 

35 "efficiency" 

36 ] 

37})