Skip to content

Commit 64365d7

Browse files
improve documentation in tooltip text
1 parent b79339a commit 64365d7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/geophires_x/MPFReservoir.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ def __init__(self, model: Model):
4949
AllowableRange=list(range(8, max_allowed_precision + 1)),
5050
UnitType=Units.NONE,
5151
Required=False,
52-
ToolTipText='Sets the numerical precision (decimal places) for the Stehfest '
53-
'algorithm used for the inverse Laplace transform.'
52+
ToolTipText='Sets the numerical precision (decimal places) for the inverse Laplace transform '
53+
'(Stehfest algorithm) used in the Gringarten calculation for the Multiple Parallel Fractures '
54+
'Reservoir Model. '
55+
'The default value provides maximum result stability; '
56+
'lower values calculate faster but may reduce consistency.'
5457
)
5558

5659

@@ -118,11 +121,11 @@ def Calculate(self, model: Model):
118121
# Use the workdps context manager for a robust, thread-safe solution.
119122
# It temporarily sets mp.dps for this block and restores it automatically.
120123
with workdps(precision):
121-
# A list comprehension is a more concise way to build the list.
122124
twnd_list = [
123125
float(invertlaplace(fp, td[t], method='stehfest'))
124126
for t in range(1, len(model.reserv.timevector.value))
125127
]
128+
126129
Twnd = np.asarray(twnd_list)
127130

128131
except Exception as e_:

src/geophires_x_schema_generator/geophires-request.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@
413413
"maximum": 0.2
414414
},
415415
"Gringarten-Stehfest Precision": {
416-
"description": "Sets the numerical precision (decimal places) for the Stehfest algorithm used for the inverse Laplace transform.",
416+
"description": "Sets the numerical precision (decimal places) for the inverse Laplace transform (Stehfest algorithm) used in the Gringarten calculation for the Multiple Parallel Fractures Reservoir Model. The default value provides maximum result stability; lower values calculate faster but may reduce consistency.",
417417
"type": "integer",
418418
"units": null,
419419
"category": "Reservoir",

0 commit comments

Comments
 (0)