def npy_brief( path, args, label="."): a = np.load(path) fdig = digest_(path) stmp = stamp_(path) print("%s : %60s : %20s : %s : %s " % ( label, path, repr(a.shape), fdig, stmp )) if args.verbose > 0: dump_one(a, args) pass return a
def txt_brief(path, label="."): fdig = digest_(path) stmp = stamp_(path) lines = len(file(path, "r").readlines()) print("%s : %60s : %20s : %s : %s " % (label, path, lines, fdig, stmp))
def __init__(self, path): self.path = path self.a = np.load(path) self.fdig = digest_(path) self.stmp = stamp_(path)