def ndarray_empty(var, var_name):
    """
    Check if parameter *var* is not an empty numpy array.

    :raises ValueError: Parameter *var* must not be an emptynumpy ndarray.
    """
    if var.size == 0:
        raise ValueError(
            '\n\nParameter {} must not be an emptynumpy ndarray.\n'.format(
            var_name))
