Skip to content

Commit c87b4cb

Browse files
Fix 2 minor python issues in Parameter.py
1 parent 034e2db commit c87b4cb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/geophires_x/Parameter.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,10 +253,10 @@ def ReadParameter(ParameterReadIn: ParameterEntry, ParamToModify, model):
253253
"""
254254
ReadParameter: A method to take a single ParameterEntry object and use it to update the associated Parameter.
255255
Does validation as well as Unit and Currency conversion
256-
:param ParameterEntry: The value the user wants to change and the value they want to change it to (as a string)
256+
:param ParameterReadIn: The value the user wants to change and the value they want to change it to (as a string)
257257
and any comment they provided with it (as a string) - all in one object (ParameterEntry) that is passed in
258258
to this method as a parameter itself (ParameterReadIn) - see ParameterEntry class for details on the fields in it
259-
:type ParameterEntry: :class:`~geophires_x.Parameter.ParameterEntry`
259+
:type ParameterReadIn: :class:`~geophires_x.Parameter.ParameterEntry`
260260
:param ParamToModify: The Parameter that will be modified (assuming it passes validation and conversion) - this is
261261
the object that will be modified by this method - see Parameter class for details on the fields in it
262262
:type ParamToModify: :class:`~geophires_x.Parameter.Parameter`
@@ -293,9 +293,9 @@ def ReadParameter(ParameterReadIn: ParameterEntry, ParamToModify, model):
293293

294294
def default_parameter_value_message(new_val: Any, param_to_modify_name: str, default_value: Any) -> str:
295295
return (
296-
f'Parameter given ({str(New_val)}) for {ParamToModify.Name} is the same as the default value. '
297-
f'Consider removing {ParamToModify.Name} from the input file unless you wish '
298-
f'to change it from the default value of ({str(ParamToModify.DefaultValue)})'
296+
f'Parameter given ({str(new_val)}) for {param_to_modify_name} is the same as the default value. '
297+
f'Consider removing {param_to_modify_name} from the input file unless you wish '
298+
f'to change it from the default value of ({str(default_value)})'
299299
)
300300

301301
if isinstance(ParamToModify, intParameter):

0 commit comments

Comments
 (0)