Coverage for backend/flowsheetInternals/unitops/config/objects/hydro_config.py: 100%
4 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 core.auxiliary.enums.unitsOfMeasure import UnitOfMeasure
3from common.config_types import *
4from common.config_utils import *
6hydro_config: ObjectType = ObjectType.model_validate({
7 "displayType": "Hydro",
8 "displayName": "Hydro",
9 "ports": {
10 "outlet": {
11 "displayName": "Generated Power",
12 "type": ConType.Outlet,
13 "streamType": "energy_stream",
14 "streamName": "PS",
15 }
16 },
17 "propertyPackagePorts": default_property_package_ports(),
18 "graphicObject": unitop_graphic(),
19 "properties": {
20 "efficiency": {
21 "displayName": "Efficiency",
22 "type": "numeric",
23 "unitType": "ratio",
24 "hasTimeIndex": False,
25 },
26 "flow_rate": {
27 "displayName": "Flow Rate",
28 "type": "numeric",
29 "unitType": "volumetricFlow"
30 },
31 "static_head": {
32 "displayName": "Static Head",
33 "type": "numeric",
34 "unitType": "head",
35 "hasTimeIndex": False,
36 },
38 },
39 "propertySetGroups": {
40 "default": {
41 "type": "stateVars",
42 "displayName": "Properties",
43 "stateVars": ("efficiency","flow_rate","static_head"),
44 }
45 },
46 "keyProperties": [
47 "efficiency"
48 ]
49})