def interpret_arguments(waves, points, arguments):
    output_arguments = {}
    for (key, item) in arguments.items():
        try:
            output_arguments[key] = float(item)
        except:
            raise InvalidArgumentError('{} is invalid.'.format(arguments[key]))
    return output_arguments
def interpret_arguments(waves, points, arguments):
    output_arguments = {}
    for (key, item) in arguments.items():
        try:
            output_arguments[key] = float(item)
        except:
            raise InvalidArgumentError('{} is invalid.'.format(arguments[key]))
    return output_arguments