'Loads a squence file stored in a pickle.'

def LoadSequence(self, inputfile):

    data_pkl = dh.Disk.LoadPickle(inputfile)
    data_list = []
    for (i, key) in enumerate(self.keys):
        seq = data_pkl[key].T
        if (len(seq.shape) == 1):
            seq = seq.reshape((-1), 1)
        lw = self.left_window[i]
        rw = self.right_window[i]
        if ((lw > 0) or (rw > 0)):
            padded_length = ((lw + seq.shape[0]) + rw)
            numdims = seq.shape[1]
            seq_padded = dh.np.zeros((padded_length, numdims))
            if (lw > 0):
                seq_padded[0:lw, :] = dh.np.tile(seq[0], (lw, 1))
            start = lw
            end = (seq.shape[0] + lw)
            seq_padded[start:end, :] = seq
            if (rw > 0):
                seq_padded[end:(end + rw), :] = dh.np.tile(seq[(-1)], (rw, 1))
            data_list.append(seq_padded)
        else:
            data_list.append(seq)
    return data_list
