switched save_ASCII() in more legacy scripts to legacy mode

This commit is contained in:
Philip Eisenlohr 2020-09-15 22:38:50 -04:00
parent f52aae3c29
commit b57e8e69a8
8 changed files with 8 additions and 8 deletions

@ -1 +1 @@
Subproject commit 5b7c34e586589141d1e061f021512e65308fc1f7
Subproject commit 3e789fc515dc2bdc63e042286dc06d8d072d096f

View File

@ -48,4 +48,4 @@ for name in filenames:
coord[:,2] += table.get(options.depth)[:,0]
table.add('coord',rot_to_TSL.broadcast_to(coord.shape[0]) @ coord,scriptID+' '+' '.join(sys.argv[1:]))\
.save_ASCII(sys.stdout if name is None else name)
.save_ASCII((sys.stdout if name is None else name),legacy=True)

View File

@ -45,4 +45,4 @@ for name in filenames:
np.cumprod(table.get(label),0) if options.product else np.cumsum(table.get(label),0),
scriptID+' '+' '.join(sys.argv[1:]))
table.save_ASCII(sys.stdout if name is None else name)
table.save_ASCII((sys.stdout if name is None else name),legacy=True)

View File

@ -60,4 +60,4 @@ for filename in options.filenames:
os.mkdir(dirname,0o755)
file_out = '{}_inc{}.txt'.format(os.path.splitext(os.path.split(filename)[-1])[0],
inc[3:].zfill(N_digits))
table.save_ASCII(os.path.join(dirname,file_out))
table.save_ASCII(os.path.join(dirname,file_out),legacy=True)

View File

@ -89,7 +89,7 @@ class myThread (threading.Thread):
coords[i]=newCoords
direction[i]*=2.
i+= 1
perturbedSeedsTable.set('pos',coords).save_ASCII(perturbedSeedsVFile)
perturbedSeedsTable.set('pos',coords).save_ASCII(perturbedSeedsVFile,legacy=True)
#--- do tesselation with perturbed seed file ------------------------------------------------------
perturbedGeomVFile.close()

View File

@ -65,4 +65,4 @@ for name in filenames:
damask.Table(seeds[mask],{'pos':(3,)},comments)\
.add('microstructure',microstructure[mask].astype(int))\
.save_ASCII(sys.stdout if name is None else os.path.splitext(name)[0]+'.seeds')
.save_ASCII(sys.stdout if name is None else os.path.splitext(name)[0]+'.seeds',legacy=True)

View File

@ -93,4 +93,4 @@ for name in filenames:
table = damask.Table(seeds,{'pos':(3,),'microstructure':(1,)},comments)
table.set('microstructure',table.get('microstructure').astype(np.int))\
.save_ASCII(sys.stdout if name is None else \
os.path.splitext(name)[0]+f'_poked_{options.N}.seeds')
os.path.splitext(name)[0]+f'_poked_{options.N}.seeds',legacy=True)

View File

@ -162,4 +162,4 @@ for name in filenames:
else np.random.normal(loc = options.mean, scale = options.sigma, size = options.N)
table = table.add('weight',weights)
table.save_ASCII(sys.stdout if name is None else name)
table.save_ASCII(sys.stdout if name is None else name,legacy=True)