def get_next_batch( self ):
    if not self.has_next_batch():
      raise StopIteration()
      
    self.curLapPos += 1
    if self.curLapPos >= self.nBatch:
      self.curLapPos = 0
      self.lapID += 1
    
    # Create the DataObj for the current batch
    self.batchOrderCurLap = self.get_rand_order_for_batchIDs_current_lap()
    self.batchID = self.batchOrderCurLap[self.curLapPos]
    obsIDsCurBatch = self.obsIDByBatch[self.batchID]
    
    query = 'select * from data where rowid in (' + ','.join(map(str, obsIDsCurBatch)) + ')'
    bData = WordsData.read_from_db( self.dbpath, query, nDoc=len(obsIDsCurBatch), nDocTotal = self.nDocTotal, vocab_size = self.vocab_size ) 
    return bData
Perform several assertions on the given page attrs.
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/bnpy/data/AdmixMinibatchIteratorDB.py/AdmixMinibatchIteratorDB.get_next_batch--crossover with--dataset/ETHPy150Open frankban/django-endless-pagination/endless_pagination/tests/test_models.py/PageListTest.check_page