def HasSpace(self, i, datasize):
    """Return True if buffer i has space to add datasize more vectors."""
    buf = self.buffers[i]
    buf_index = self.buffer_index[i]
    return buf.shape[0] > buf_index + datasize
Return True if buffer i has space to add datasize more vectors.
deepnet/datahandler.py