count = 0 for did, dance in tqdm(enumerate(velocities), total=len(velocities)): if did != 9: f, pgram = genLSP(dance[0], dance[1], s=2000) FTs_V[count, 0] = f FTs_V[count, 1] = pgram count += 1