def __lt__(self, other):
        if self.fitness is not None and other.fitness is not None:
            if self.maximize: 
                return self.fitness < other.fitness
            else:
                return other.fitness > self.fitness
        else:
            raise Error('fitness cannot be None when comparing Individuals')
dataset/ETHPy150Open aarongarrett/inspyred/inspyred/ec/ec.py/Individual.__lt__/swapped operands of `>`