def larger(var1, var_name1, var2, var_name2):
    """
    Check if *var1* larger than *val*.

    :raises ValueError: Parameter *var1* larger than *var2*.
    """
    if var1 >= var2:
        raise ValueError('\n\n{} must be larger than {}.\n'.format(
            var_name1, var_name2))
