parameters: (self, data_source)
docstring: Load data from underlying arrays, internal use only
docstring_summary: Load data from underlying arrays, internal use only
docstring_tokens: Load data from underlying arrays internal use only
function: def _getdata(self, data_source):
          """Load data from underlying arrays, internal use only"""
          assert(self.cursor < self.num_data), "DataIter needs reset."
          if self.cursor + self.batch_size <= self.num_data:
              return [array(x[1][self.cursor:self.cursor+self.batch_size]) for x in data_source]
          else:
              pad = self.batch_size - self.num_data + self.cursor
              return [array(np.concatenate((x[1][self.cursor:], x[1][:pad]),
                                           axis=0)) for x in data_source]
function_tokens: def _getdata ( self , data_source ) : assert ( self . cursor < self . num_data ) , "DataIter needs reset." if self . cursor + self . batch_size <= self . num_data : return [ array ( x [ 1 ] [ self . cursor : self . cursor + self . batch_size ] ) for x in data_source ] else : pad = self . batch_size - self . num_data + self . cursor return [ array ( np . concatenate ( ( x [ 1 ] [ self . cursor : ] , x [ 1 ] [ : pad ] ) , axis = 0 ) ) for x in data_source ]