Commit 671ca3ff authored by Niklas Selke's avatar Niklas Selke
Browse files

Changed the argument and variable names as well as the docstring in the...

Changed the argument and variable names as well as the docstring in the 'check_sampling' function in 'input_checks.py'.
parent c8b6eaf2
......@@ -12,20 +12,20 @@ from toarstats import stats
from toarstats.stats_utils import RSTAGS
def check_sampling(input_argument):
def check_sampling(sampling_in):
"""Check the given sampling argument.
:param input_argument: the given argument
:param sampling_in: the given sampling argument
:return: The processed argument or None if there was a problem with
the input
:return: The processed sampling argument or None if there was a
problem while processing the given sampling argument
"""
if not isinstance(input_argument, str):
if not isinstance(sampling_in, str):
return None
sampling = input_argument.strip()
if sampling not in RSTAGS.keys() | {"vegseason"}:
sampling_out = sampling_in.strip()
if sampling_out not in RSTAGS.keys() | {"vegseason"}:
return None
return sampling
return sampling_out
def check_statistics(input_argument):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment