def __init__(self, channels, range=(0, 1023)):
        for chan_num in channels:
            if 7 > chan_num or chan_num < 0:
                raise ValueError('Valid channels on MCP3008 are 0-7')
        self.channels = channels
        self.num_values = len(channels)
        self.range = range
dataset/ETHPy150Open jminardi/RobotBrain/robot_brain/sensors/mcp3008_analog_sensor.py/MCP3008AnalogSensor.__init__/swapped operands of `>`