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

3 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2026-06-23 21:51 +0000

1from common.config_types import * 

2from common.config_utils import * 

3 

4 

5transformer_stream_config: ObjectType = ObjectType( 

6 displayType="Stream", 

7 is_stream=True, 

8 ports={}, 

9 # TODO: check if streams have inlets and outlets 

10 graphicObject=stream_graphic(), 

11 properties=PropertiesType({ 

12 "current": PropertyType( 

13 displayName="Current", 

14 type="numeric", 

15 unitType="electric", 

16 ), 

17 "voltage": PropertyType( 

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)