'Load data from the parent.'

def LoadData(self):

    if ((self.data == []) or (self._maxpos < self.parent._maxpos)):
        self.data = self.parent.Get(self._maxpos)
        self.datasize = self.data[0].shape[0]
    if self.randomize:
        rng_state = np.random.get_state()
        for (i, d) in enumerate(self.data):
            if sp.issparse(d):
                indices = np.arange(d.shape[0])
                np.random.set_state(rng_state)
                np.random.shuffle(indices)
                self.data[i] = d[indices]
            else:
                np.random.set_state(rng_state)
                np.random.shuffle(d)
