legacy shell scripts again output legacy ASCIItables

This commit is contained in:
Philip Eisenlohr 2020-09-15 10:19:19 -04:00
parent 2114c51098
commit f52aae3c29
11 changed files with 12 additions and 12 deletions

View File

@ -191,4 +191,4 @@ for name in filenames:
volumeMismatch.reshape(-1,1,order='F'),
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

@ -55,4 +55,4 @@ for name in filenames:
curl.reshape(tuple(grid)+(-1,)).reshape(-1,np.prod(shape),order='F'),
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

@ -71,4 +71,4 @@ for name in filenames:
derivative(table.get(options.coordinates),table.get(label)),
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,7 +60,7 @@ for name in filenames:
.add('fluct({}).{}'.format(options.f,options.pos),
damask.grid_filters.node_displacement_fluct(size,F).reshape(-1,3,order='F'),
scriptID+' '+' '.join(sys.argv[1:]))\
.save_ASCII(sys.stdout if name is None else os.path.splitext(name)[0]+'_nodal.txt')
.save_ASCII((sys.stdout if name is None else os.path.splitext(name)[0]+'_nodal.txt'), legacy=True)
else:
table.add('avg({}).{}'.format(options.f,options.pos),
damask.grid_filters.cell_displacement_avg(size,F).reshape(-1,3,order='F'),
@ -68,4 +68,4 @@ for name in filenames:
.add('fluct({}).{}'.format(options.f,options.pos),
damask.grid_filters.cell_displacement_fluct(size,F).reshape(-1,3,order='F'),
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

@ -55,4 +55,4 @@ for name in filenames:
div.reshape(tuple(grid)+(-1,)).reshape(-1,np.prod(shape)//3,order='F'),
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

@ -184,4 +184,4 @@ for name in filenames:
distance[i,:],
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

@ -73,4 +73,4 @@ for name in filenames:
mode = 'wrap' if options.periodic else 'nearest'),
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

@ -55,4 +55,4 @@ for name in filenames:
grad.reshape(tuple(grid)+(-1,)).reshape(-1,np.prod(shape)*3,order='F'),
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

@ -147,4 +147,4 @@ for name in filenames:
if 'axisangle' in options.output:
table = table.add('om({})'.format(label),o.as_axisangle(options.degrees), 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

@ -189,4 +189,4 @@ for name in filenames:
for i,label in enumerate(labels):
table = table.add(label,S[:,i],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

@ -58,4 +58,4 @@ for name in filenames:
rng.shuffle(uniques)
table = table.set(label,uniques[inverse], 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)