def findCycle(self, cycNum):
        '''
        Method that looks through the self.cycles and returns the
        nearest cycle:

        Parameters
        ----------
        cycNum : int
            int of the cycle desired cycle.

        '''
        cycNum=int(cycNum)
        i=0

        while i < len(self.cycles):
            if cycNum < int(self.cycles[i]):
                break
            i+=1

        if i ==0:
            return self.cycles[i]
        elif i == len(self.cycles):
            return self.cycles[i-1]
        lower=int(self.cycles[i-1])
        higher=int(self.cycles[i])

        if higher- cycNum >= cycNum-lower:
            return self.cycles[i-1]
        else:
            return self.cycles[i]
Method that looks through the self.cycles and returns the
        nearest cycle:

        Parameters
        ----------
        cycNum : int
            int of the cycle desired cycle.