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

4bus_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "Bus", 

6 "displayName": "Bus", 

7 "ports": { 

8 "inlet": { 

9 "many": True, 

10 "displayName": "Connection", 

11 "type": ConType.Inlet, 

12 "streamType": "energy_stream", 

13 "streamName": "PS", 

14 "default": 1, # default number of inlets 

15 "minimum": 1, # minimum number of inlets 

16 }, 

17 "outlet": { 

18 "many": False, 

19 "displayName": "Residual Power", 

20 "type": ConType.Outlet, 

21 "streamType": "energy_stream", 

22 "streamName": "RP", 

23 

24 "default": 1, # default number of inlets 

25 "minimum": 1, # minimum number of inlets 

26 } 

27 }, 

28 "propertyPackagePorts": default_property_package_ports(), 

29 "graphicObject": unitop_graphic(), 

30 "indexSets": [], 

31 "properties": { 

32 

33 }, 

34 "propertySetGroups": { 

35 }, 

36 "keyProperties": [ 

37 

38 ] 

39})