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

4 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 * 

3from ..spec_helpers import * 

4 

5custom_variable_config: ObjectType = ObjectType( 

6 displayType="Custom Variable", 

7 displayName="Custom Variable", 

8 ports={}, 

9 propertyPackagePorts={}, 

10 graphicObject=unitop_graphic(), 

11 properties=PropertiesType({ 

12 "variable": PropertyType( 

13 displayName="Variable", 

14 type="numeric", 

15 unitType="ratio", 

16 ), 

17 }), 

18 propertySetGroups={ 

19 "default": { 

20 "type": "stateVars", 

21 "displayName": "Properties", 

22 "stateVars": ("variable",), 

23 } 

24 }, 

25 keyProperties=[], 

26 idaes_adapter=UnitModelAdapter( 

27 args=ArgAdapter({ 

28 }), 

29 properties=SerialisePropertiesAdapter(), 

30 ports=SerialisePortAdapter() 

31 ), 

32)