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

3 statements  

« prev     ^ index     » next       coverage.py v7.10.7, created at 2026-05-13 02:47 +0000

1from common.config_types import * 

2from common.config_utils import * 

3 

4 

5ac_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 "active_power": PropertyType( 

13 displayName="Active Power", 

14 type="numeric", 

15 unitType="heatflow", 

16 ), 

17 "reactive_power": PropertyType( 

18 displayName="Reactive Power", 

19 type="numeric", 

20 unitType="heatflow", 

21 ), 

22 "voltage": PropertyType( 

23 displayName="Voltage", 

24 type="numeric", 

25 unitType="electric", 

26 ), 

27 }), 

28 propertySetGroups={ 

29 "default": { 

30 "type": "stateVars", 

31 "displayName": "Properties", 

32 "stateVars": ("active_power","reactive_power","voltage"), 

33 } 

34 }, 

35 keyProperties=[] 

36)