Skip to content

Commit 0c48842

Browse files
Generate end-use option tooltip text from enum instead of hardcoding
1 parent 77c1957 commit 0c48842

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/geophires_x/SurfacePlant.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,7 @@ def __init__(self, model: Model):
237237
UnitType=Units.NONE,
238238
ErrMessage="assume default end-use option (1: electricity only)",
239239
ToolTipText="Select the end-use application of the geofluid heat: " +
240-
"1: Electricity; " +
241-
"2: Direct-Use Heat; " +
242-
"31: Cogeneration Topping Cycle, Heat sales considered as extra income; " +
243-
"32: Cogeneration Topping Cycle, Electricity sales considered as extra income; " +
244-
"41: Cogeneration Bottoming Cycle, Heat sales considered as extra income; " +
245-
"42: Cogeneration Bottoming Cycle, Electricity sales considered as extra income; " +
246-
"51: Cogeneration Parallel Cycle, Heat sales considered as extra income; " +
247-
"52: Cogeneration Parallel Cycle, Electricity sales considered as extra income"
240+
'; '.join([f'{it._numerical_input_value}: {it.value}' for it in EndUseOptions])
248241
)
249242
self.plant_type = self.ParameterDict[self.plant_type.Name] = intParameter(
250243
"Power Plant Type",

0 commit comments

Comments
 (0)