def nc(levels):
    """
    It returns the NC curve of `levels`. If `levels` is upper than NC-70
    returns '70+'.

    Parameter:

    levels: 1-D NumPy array containing values between 63 Hz and 8 kHz in octave
    bands.
    """
    nc_range = np.arange(15, 71, 5)
    for nc_test in nc_range:
        curve = nc_curve(nc_test)
        if (curve <= levels).all() == True:
            break
        if nc_test == 70:
            nc_test = '70+'
            break
    return nc_test
dataset/ETHPy150Open python-acoustics/python-acoustics/acoustics/criterion.py/nc/swapped operands of `<=`