Skip to content

Commit 1f0d817

Browse files
Fix multi-line tooltip texts
1 parent 0bdc3e1 commit 1f0d817

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

src/geophires_x_schema_generator/hip-ra-x-request.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"maximum": 10000000000000.0
108108
},
109109
"Rock Recoverable Heat": {
110-
"description": "percent of heat that is recoverable from the rock in the reservoir 0.66 for high-T reservoirs, 0.43 for low-T reservoirs (Garg and Combs (2011)",
110+
"description": "percent of heat that is recoverable from the rock in the reservoir 0.66 for high-T reservoirs, 0.43 for low-T reservoirs (Garg and Combs (2011)",
111111
"type": "number",
112112
"units": "",
113113
"category": null,
@@ -116,7 +116,7 @@
116116
"maximum": 1.0
117117
},
118118
"Fluid Recoverable Heat": {
119-
"description": "percent of heat that is recoverable from the fluid in the reservoir 0.66 for high-T reservoirs, 0.43 for low-T reservoirs (Garg and Combs (2011)",
119+
"description": "percent of heat that is recoverable from the fluid in the reservoir 0.66 for high-T reservoirs, 0.43 for low-T reservoirs (Garg and Combs (2011)",
120120
"type": "number",
121121
"units": "",
122122
"category": null,
@@ -134,7 +134,7 @@
134134
"maximum": 1.0
135135
},
136136
"Reservoir Depth": {
137-
"description": "depth to top of reservoir (km). Calculated based on an assumed gradient and the reservoir temperature if no value given",
137+
"description": "depth to top of reservoir (km). Calculated based on an assumed gradient and the reservoir temperature if no value given",
138138
"type": "number",
139139
"units": "kilometer",
140140
"category": null,
@@ -143,7 +143,7 @@
143143
"maximum": 15.0
144144
},
145145
"Reservoir Pressure": {
146-
"description": "pressure of the of reservoir (in mPa). Calculated assuming hydrostatic pressure and reservoir depth & water density if no value given",
146+
"description": "pressure of the of reservoir (in mPa). Calculated assuming hydrostatic pressure and reservoir depth & water density if no value given",
147147
"type": "number",
148148
"units": "mPa",
149149
"category": null,

src/hip_ra_x/hip_ra_x.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,10 @@ def parameter_dict_entry(param: Parameter) -> Parameter:
260260
PreferredUnits=PercentUnit.TENTH,
261261
CurrentUnits=PercentUnit.TENTH,
262262
Required=False,
263-
ErrMessage='assume 0.66 for high-T reservoirs (>150C), 0.43 for low-T reservoirs \
264-
(>90, Garg and Combs (2011)',
265-
ToolTipText='percent of heat that is recoverable from the rock in the reservoir 0.66 for high-T reservoirs,\
266-
0.43 for low-T reservoirs (Garg and Combs (2011)',
263+
ErrMessage='assume 0.66 for high-T reservoirs (>150C), 0.43 for low-T reservoirs '
264+
'(>90, Garg and Combs (2011)',
265+
ToolTipText='percent of heat that is recoverable from the rock in the reservoir 0.66 for high-T reservoirs, '
266+
'0.43 for low-T reservoirs (Garg and Combs (2011)',
267267
)
268268
)
269269
self.fluid_recoverable_heat: Parameter = parameter_dict_entry(
@@ -276,10 +276,10 @@ def parameter_dict_entry(param: Parameter) -> Parameter:
276276
PreferredUnits=PercentUnit.TENTH,
277277
CurrentUnits=PercentUnit.TENTH,
278278
Required=False,
279-
ErrMessage='assume 0.66 for high-T reservoirs (>150C), 0.43 for low-T reservoirs \
280-
(>90, Garg and Combs (2011)',
281-
ToolTipText='percent of heat that is recoverable from the fluid in the reservoir 0.66 for high-T reservoirs,\
282-
0.43 for low-T reservoirs (Garg and Combs (2011)',
279+
ErrMessage='assume 0.66 for high-T reservoirs (>150C), 0.43 for low-T reservoirs '
280+
'(>90, Garg and Combs (2011)',
281+
ToolTipText='percent of heat that is recoverable from the fluid in the reservoir 0.66 for high-T reservoirs, '
282+
'0.43 for low-T reservoirs (Garg and Combs (2011)',
283283
)
284284
)
285285
self.recoverable_fluid_factor: Parameter = parameter_dict_entry(
@@ -308,8 +308,8 @@ def parameter_dict_entry(param: Parameter) -> Parameter:
308308
Required=False,
309309
Provided=False,
310310
ErrMessage='calculate based on an assumed gradient of 30 C/km and the reservoir temperature',
311-
ToolTipText='depth to top of reservoir (km). Calculated based on an assumed gradient \
312-
and the reservoir temperature if no value given',
311+
ToolTipText='depth to top of reservoir (km). Calculated based on an assumed gradient '
312+
'and the reservoir temperature if no value given',
313313
)
314314
)
315315
self.reservoir_pressure: Parameter = parameter_dict_entry(
@@ -324,8 +324,8 @@ def parameter_dict_entry(param: Parameter) -> Parameter:
324324
Required=False,
325325
Provided=False,
326326
ErrMessage='calculate assuming hydrostatic pressure and the reservoir depth & water density',
327-
ToolTipText='pressure of the of reservoir (in mPa). Calculated assuming hydrostatic pressure and \
328-
reservoir depth & water density if no value given',
327+
ToolTipText='pressure of the of reservoir (in mPa). Calculated assuming hydrostatic pressure and '
328+
'reservoir depth & water density if no value given',
329329
)
330330
)
331331
self.recoverable_rock_heat: Parameter = parameter_dict_entry(

0 commit comments

Comments
 (0)