Coverage for backend/flowsheetInternals/unitops/config/objects/decision_node_config.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
« 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 *
4decision_node_config: ObjectType = ObjectType.model_validate({
5 "displayType": "Decision Node",
7 "ports": {
8 "inlet": {
9 "many": True,
10 "displayName": "Inlet",
11 "type": ConType.Inlet,
12 "default": 0, # default number of inlets
13 "minimum": 0, # minimum number of inlets
14 },
15 "outlet": {
16 "many": True,
17 "displayName": "Outlet",
18 "type": ConType.Outlet,
19 "default": 0, # default number of outlets
20 "minimum": 0, # minimum number of outlets
21 },
22 },
23 "indexSets": ["phase","compound"],
24 "propertyPackagePorts": default_property_package_ports(),
25 "graphicObject": stream_graphic(),
26 "properties": {
27 "mole_frac_comp": {
28 "displayName": "Compounds",
29 "type": "numeric",
30 "unitType": "ratio",
31 "indexSets": ["compound"],
32 },
33 },
34 "propertySetGroups": {
35 "default": {
36 "type": "composition",
37 "displayName": "Properties",
38 "stateVars": ("mole_frac_comp",),
39 }
40 },
41})