-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove unused params in oxygen module for iswO2 #135
Conversation
@jimc101 from the description in the issue you say that "legacy ERSEM" and "Weiss 1970" are the only options to choice from though it looks like the options are "legacy ERSEM" and "Wanninkhof 2014" from the code Lines 101 to 109 in 7acae16
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, this isn't right. The option relates to the code here and the way the saturation concentration is calculated.
This option should be reduced to legacy (or old) ERSEM and Weiss 1970. I would put Weiss first, since this is the option most users are likely to select. Also, there is no guard for invalid values. So something like:
if weiss:
...
elif old_ersem:
...
else
throw exception
fi
could work. These would need to be matched up in the call to get_parameter
. What do you think?
Ahh I see, is |
@jimc101 having a safe guide for an incorrect parameter would be good in most places in the code though that would be done in a separate issue |
Sorry - I recommend you switch to just deleting the invalid options in the text string and not reordering the loop. This can be addressed in a separate issue (under optimisations). As you say, all valid options should also be tested, but again this can be addressed through a separate issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay - looks good.
Description of Work
Fixes #51
Testing Instructions