def delay_preds(X, delay=100, skip=2, subsample=1, start=0, jump=None):
    if jump is None:
        jump = range(0, delay, skip)
    Ns, Ne = X.shape
    Ns_subsampled = len(range(start, Ns, subsample))
    out = np.zeros((Ns_subsampled, Ne * len(jump)))
    for i, sk in enumerate(jump):
        chunk = X[0:(Ns - sk)][start::subsample]
        out[(Ns_subsampled-chunk.shape[0]):, (i * Ne):((i + 1) * Ne)] = chunk
    return out
Handle errors which occur during an emit() call.
dataset/ETHPy150Open alexandrebarachant/Grasp-and-lift-EEG-challenge/preprocessing/aux.py/delay_preds--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/logging/__init__.py/Handler.handleError