

def find_done(self, outdir):
    success_files = glob.glob(os.path.join(outdir, '*.SUCCESS'))
    r = re.compile('.*?([0-9]+)\\.model\\.npz\\.SUCCESS$')
    done = []
    for path in success_files:
        m = r.match(path)
        ix = int(m.group(1))
        done.append(ix)
    return done

dataset/ETHPy150Open Mendeley/mrec/mrec/parallel/warp.py WARPMFRunner.find_done/original