Skip to content

Commit be73076

Browse files
Update currency conversion failure messages to reference NREL#236
1 parent 7290e92 commit be73076

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/geophires_x/Parameter.py

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ def _parameter_with_currency_units_converted_back_to_preferred_units(param: Para
698698
print(str(ex))
699699
msg = (
700700
f'Error: GEOPHIRES failed to convert your currency for {param.Name} to something it understands.'
701-
f'You gave {currType} - Are these currency units defined for forex-python? '
702-
f'or perhaps the currency server is down? Please change your units to {param.PreferredUnits.value} '
701+
f'You gave {currType} - conversion may be affected by https://github.com/NREL/GEOPHIRES-X/issues/236. '
702+
f'Please change your units to {param.PreferredUnits.value} '
703703
f'to continue. Cannot continue unless you do. Exiting.'
704704
)
705705
print(msg)
@@ -990,9 +990,9 @@ def ConvertOutputUnits(oparam: OutputParameter, newUnit: Units, model):
990990
symbol = cc.get_symbol(currShort)
991991
if symbol is None:
992992
msg = (
993-
f'Error: GEOPHIRES failed to convert your currency for {oparam.Name} to something it understands. '
994-
f'You gave {currType} - Are these currency units defined for forex-python? '
995-
f' or perhaps the currency server is down? Please change your units to {oparam.PreferredUnits.value}'
993+
f'Error: GEOPHIRES failed to convert your currency for {oparam.Name} to something it understands.'
994+
f'You gave {currType} - conversion may be affected by https://github.com/NREL/GEOPHIRES-X/issues/236. '
995+
f'Please change your units to {oparam.PreferredUnits.value} '
996996
f'to continue. Cannot continue unless you do. Exiting.'
997997
)
998998
print(msg)
@@ -1005,9 +1005,9 @@ def ConvertOutputUnits(oparam: OutputParameter, newUnit: Units, model):
10051005
# try some tricks to make it into something it does do recognize
10061006
if symbol is None:
10071007
msg = (
1008-
f'Error: GEOPHIRES failed to convert your currency for {oparam.Name} to something it understands. '
1009-
f'You gave {prefType} - Are these currency units defined for forex-python? '
1010-
f' or perhaps the currency server is down? Please change your units to {oparam.PreferredUnits.value}'
1008+
f'Error: GEOPHIRES failed to convert your currency for {oparam.Name} to something it understands.'
1009+
f'You gave {currType} - conversion may be affected by https://github.com/NREL/GEOPHIRES-X/issues/236. '
1010+
f'Please change your units to {oparam.PreferredUnits.value} '
10111011
f'to continue. Cannot continue unless you do. Exiting.'
10121012
)
10131013

@@ -1022,11 +1022,10 @@ def ConvertOutputUnits(oparam: OutputParameter, newUnit: Units, model):
10221022
print(str(ex))
10231023

10241024
msg = (
1025-
f'Error: GEOPHIRES failed to convert your currency for {oparam.Name} to something it understands. '
1026-
f'You gave {currType} - Are these currency units defined for forex-python?'
1027-
f'or perhaps the currency server is down? '
1028-
f'Please change your units to {oparam.PreferredUnits.value} to continue.'
1029-
f'Cannot continue unless you do. Exiting.'
1025+
f'Error: GEOPHIRES failed to convert your currency for {oparam.Name} to something it understands.'
1026+
f'You gave {currType} - conversion may be affected by https://github.com/NREL/GEOPHIRES-X/issues/236. '
1027+
f'Please change your units to {oparam.PreferredUnits.value} '
1028+
f'to continue. Cannot continue unless you do. Exiting.'
10301029
)
10311030

10321031
print(msg)

0 commit comments

Comments
 (0)