output file name now contains both position and mode.

e.g. ${prefix}_ipinitialcoord(point).vtr
This commit is contained in:
Chen Zhang 2015-11-03 21:44:36 +00:00
parent 519484233c
commit fe1dbf2ea0
1 changed files with 9 additions and 8 deletions

View File

@ -100,7 +100,8 @@ for name in filenames:
(directory,filename) = os.path.split(name) (directory,filename) = os.path.split(name)
writer.SetDataModeToBinary() writer.SetDataModeToBinary()
writer.SetCompressorTypeToZLib() writer.SetCompressorTypeToZLib()
writer.SetFileName(os.path.join(directory,os.path.splitext(filename)[0]+'_{}'.format(options.mode) \ writer.SetFileName(os.path.join(directory,os.path.splitext(filename)[0] \
+'_{}({})'.format(options.position, options.mode) \
+'.'+writer.GetDefaultFileExtension())) +'.'+writer.GetDefaultFileExtension()))
else: else:
writer = vtk.vtkDataSetWriter() writer = vtk.vtkDataSetWriter()