def float_equal(x, y, rtol=1e-05, atol=1e-08):
    return np.less_equal(abs(x - y), atol + rtol * abs(y))
np.delete(x, np.where(np.logical_or.reduce([float_equal(x, y) for y in [0, 
    180, 360]])))
How to remove multiple values from an array at once