Better to have actual increment num in output file

This commit is contained in:
Vitesh Shah 2019-05-08 17:31:18 +02:00
parent 1060b13c1f
commit feb1465803
2 changed files with 2 additions and 2 deletions

View File

@ -79,5 +79,5 @@ for filename in options.filenames:
os.mkdir(dirname)
except FileExistsError:
pass
file_out = '{}_inc{:04d}.txt'.format(filename.split('.')[0],i)
file_out = '{}_inc{:04d}.txt'.format(filename.split('.')[0],inc['inc'])
np.savetxt(os.path.join(dirname,file_out),data,header=header,comments='')

View File

@ -88,7 +88,7 @@ for filename in options.filenames:
os.mkdir(dirname)
except FileExistsError:
pass
file_out = '{}_inc{:04d}.{}'.format(filename.split('.')[0],i,writer.GetDefaultFileExtension())
file_out = '{}_inc{:04d}.{}'.format(filename.split('.')[0],inc['inc'],writer.GetDefaultFileExtension())
writer.SetCompressorTypeToZLib()
writer.SetDataModeToBinary()