Ejemplo n.º 1
0
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
Ejemplo n.º 2
0
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))
Ejemplo n.º 3
0
 def __init__(self, path):
     self.path = path 
     self.a = np.load(path)
     self.fdig = digest_(path)
     self.stmp = stamp_(path)