Skip to content

Commit f9c05ce

Browse files
Generate ReservoirModel tooltip text from enum
1 parent 3f95921 commit f9c05ce

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/geophires_x/Reservoir.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ def __init__(self, model: Model):
5252
AllowableRange=[0, 1, 2, 3, 4, 5, 6, 7],
5353
Required=True,
5454
ErrMessage="run default reservoir model (Thermal Drawdown Percentage Model)",
55-
ToolTipText="0: Cylindrical model, 1: Multiple parallel fractures model, 2: 1D linear heat sweep model, \
56-
3: m/a single fracture drawdown model, 4: Linear thermal drawdown model, \
57-
5: Generic user-provided temperature profile, 6: TOUGH2, 7: SUTRA"
55+
ToolTipText='; '.join([f'{it.int_value}: {it.value}' for it in ReservoirModel])
5856
)
5957

6058
self.depth = self.ParameterDict[self.depth.Name] = floatParameter(

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
],
4343
"properties": {
4444
"Reservoir Model": {
45-
"description": "0: Cylindrical model, 1: Multiple parallel fractures model, 2: 1D linear heat sweep model, 3: m/a single fracture drawdown model, 4: Linear thermal drawdown model, 5: Generic user-provided temperature profile, 6: TOUGH2, 7: SUTRA",
45+
"description": "0: Simple cylindrical; 1: Multiple Parallel Fractures; 2: 1-D Linear Heat Sweep; 3: Single Fracture m/A Thermal Drawdown; 4: Annual Percentage Thermal Drawdown; 5: User-Provided Temperature Profile; 6: TOUGH2 Simulator; 7: SUTRA",
4646
"type": "integer",
4747
"units": null,
4848
"category": "Reservoir",

0 commit comments

Comments
 (0)