(bounds)
return lower_bounds, upper_bounds
Check user supplied distribution bounds for validity.

    Parameters
    ----------
    problem : dict
        The problem definition

    Returns
    -------
    tuple : containing upper and lower bounds
Check user supplied distribution bounds for validity.
Check user supplied distribution bounds for validity .
def _check_bounds(bounds):
    """Check user supplied distribution bounds for validity.

    Parameters
    ----------
    problem : dict
        The problem definition

    Returns
    -------
    tuple : containing upper and lower bounds
    """
    b = np.array(bounds)

    lower_bounds = b[:, 0]
    upper_bounds = b[:, 1]

    if np.any(lower_bounds >= upper_bounds):
        raise ValueError("Bounds are not legal")

    return lower_bounds, upper_bounds
def _check_bounds ( bounds ) : b = np . array ( bounds ) lower_bounds = b [ : , 0 ] upper_bounds = b [ : , 1 ] if np . any ( lower_bounds >= upper_bounds ) : raise ValueError ( "Bounds are not legal" ) return lower_bounds , upper_bounds