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

4machine_learning_block_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "Machine Learning", 

6 "displayName": "Machine Learning", 

7 "graphicObject": unitop_graphic(), 

8 "propertyPackagePorts": default_property_package_ports(), 

9 "ports": { 

10 "inlet": { 

11 "many": True, 

12 "displayName": "Inlet", 

13 "type": ConType.Inlet, 

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

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

16 "streamName": "S" 

17 }, 

18 "outlet": { 

19 "many": True, 

20 "displayName": "Outlet", 

21 "type": ConType.Outlet, 

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

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

24 "streamName": "S" 

25 } 

26 }, 

27 "properties": { 

28 }, 

29 "propertySetGroups": { 

30 "default": { 

31 "type": "All", 

32 "displayName": "Properties", 

33 }, 

34 }, 

35 "keyProperties": [] 

36})