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

4 

5transformer_stream_config: ObjectType = ObjectType.model_validate({ 

6 "displayType": "Stream", 

7 "is_stream": True, 

8 "ports": {}, 

9 # TODO: check if streams have inlets and outlets 

10 "graphicObject": stream_graphic(), 

11 "properties": { 

12 "current": { 

13 "displayName": "Current", 

14 "type": "numeric", 

15 "unitType": "electric", 

16 }, 

17 "voltage": { 

18 "displayName": "Voltage", 

19 "type": "numeric", 

20 "unitType": "electric", 

21 }, 

22 }, 

23 "propertySetGroups": { 

24 "default": { 

25 "type": "stateVars", 

26 "displayName": "Properties", 

27 "stateVars": ("current","voltage"), 

28 } 

29 }, 

30 "keyProperties": [] 

31})