Skip to content

Commit 01d7fa4

Browse files
Make production wellhead pressure warning log messages readable (decimal places, units)
1 parent 15e10e5 commit 01d7fa4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/geophires_x/WellBores.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -521,9 +521,9 @@ def ProdPressureDropAndPumpingPowerUsingIndexes(
521521
Pprodwellhead = ppwellhead_kPa
522522
if Pprodwellhead < Pminimum_kPa:
523523
Pprodwellhead = Pminimum_kPa
524-
msg = (f'Provided production wellhead pressure ({Pprodwellhead}kPa) '
525-
f'under minimum pressure ({Pminimum_kPa}kPa). '
526-
f'GEOPHIRES will assume minimum wellhead pressure')
524+
msg = (f'Provided production wellhead pressure ({Pprodwellhead:.2f} kPa) '
525+
f'under minimum pressure ({Pminimum_kPa:.2f} kPa). '
526+
f'GEOPHIRES will assume minimum wellhead pressure.')
527527

528528
print(f'Warning: {msg}')
529529
model.logger.warning(msg)
@@ -644,8 +644,8 @@ def InjPressureDropAndPumpingPowerUsingIndexes(
644644
Pprodwellhead = ppwellhead
645645
if Pprodwellhead < Pminimum_kPa:
646646
Pprodwellhead = Pminimum_kPa
647-
msg = (f'Provided production wellhead pressure ({Pprodwellhead}) under minimum pressure ({Pminimum_kPa}). '
648-
f'GEOPHIRES will assume minimum wellhead pressure')
647+
msg = (f'Provided production wellhead pressure ({Pprodwellhead:.2f} kPa) under minimum pressure ({Pminimum_kPa:.2f} kPa). '
648+
f'GEOPHIRES will assume minimum wellhead pressure.')
649649
print(f'Warning: {msg}')
650650
model.logger.warning(msg)
651651

0 commit comments

Comments
 (0)