def fromFile(filename): if filename == '-': filename = sys.stdin g=Grid() g.center=np.loadtxt(filename,np.single) return g