Skip to content

Commit dd1d166

Browse files
Fix/optimize CLGS read_parameters warning messages
1 parent 4e38b3b commit dd1d166

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/geophires_x/AGSWellBores.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -584,22 +584,22 @@ def read_parameters(self, model: Model) -> None:
584584
# handle error checking and special cases:
585585

586586
if model.reserv.numseg.value > 1:
587-
msg = ('Warning: CLGS model can only handle a single layer gradient segment. '
587+
msg = ('CLGS model can only handle a single layer gradient segment. '
588588
'Number of Segments set to 1, Gradient set to Gradient[0], and Depth set to Reservoir Depth.')
589-
print(msg)
589+
print(f'Warning: {msg}')
590590
model.logger.warning(msg)
591591
model.reserv.numseg.value = 1
592592

593593
if self.ninj.value > 0:
594-
msg = ('Warning: CLGS model considers the only the production wellbore parameters. '
594+
msg = ('CLGS model considers the only the production wellbore parameters. '
595595
'Anything related to the injection wellbore is ignored.')
596-
print(msg)
596+
print(f'Warning: {msg}')
597597
model.logger.warning(msg)
598598

599599
if self.nprod.value != 1:
600-
msg = ('Warning: CLGS model considers the only a single production wellbore (coaxial or uloop). '
601-
'Number of production wellboreset set 1.')
602-
print(msg)
600+
msg = ('CLGS model considers the only a single production wellbore (coaxial or uloop). '
601+
'Number of production wellbores set to 1.')
602+
print(f'Warning: {msg}')
603603
model.logger.warning(msg)
604604

605605
# inputs we already have - needs to be set at ReadParameter time so values set at the latest possible time

0 commit comments

Comments
 (0)