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

4integration_config: ObjectType = ObjectType.model_validate({ 

5 "displayType": "Integration Block", 

6 "displayName": "Integration Block", 

7 "ports": {}, 

8 "graphicObject": unitop_graphic(), 

9 "properties": { 

10 "variable": { 

11 "displayName": "Variable", 

12 "type": "numeric", 

13 "unitType": "dimensionless", 

14 "value": 0 

15 }, 

16 "integral": { 

17 "displayName": "Integral", 

18 "type": "numeric", 

19 "unitType": "dimensionless", 

20 "value": 0, 

21 "hasTimeIndex":False, 

22 }, 

23 }, 

24 "propertySetGroups": { 

25 "default": { 

26 "type": "stateVars", 

27 "displayName": "Properties", 

28 "stateVars": ("variable",), 

29 } 

30 }, 

31 "keyProperties": ["integral"] 

32})