def do_birth_at_lap(self, lapFrac):
    ''' Returns True/False for whether birth happens at given lap
    '''
    if self.algParams not in 'birth':
      return False
    nLapTotal = self.algParams['nLap']
    frac = self.algParams['birth']['fracLapsBirth']
    if lapFrac > nLapTotal:
      return False
    return (nLapTotal <= 5) or (lapFrac <= np.ceil(frac * nLapTotal))
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/learnalg/LearnAlg.py/LearnAlg.do_birth_at_lap/swapped operands of `not in`