From 831ad6d9c8e803d0dfaf4e6ef157c4501e494d10 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 20 Feb 2013 14:50:01 +0000 Subject: [PATCH] added leading zeros to names of microstructures and phases, spaces caused problems during initialization --- processing/pre/geom_fromAng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/pre/geom_fromAng.py b/processing/pre/geom_fromAng.py index 62bf46645..a58812c84 100755 --- a/processing/pre/geom_fromAng.py +++ b/processing/pre/geom_fromAng.py @@ -97,7 +97,7 @@ for file in files: else: # finished with comments block if options.config: # write configuration (line by line) point += 1 - me = str(point).rjust(formatwidth) + me = str(point).zfill(formatwidth) microstructure += ['[Grain%s]\n'%me + \ 'crystallite\t%i\n'%options.crystallite + \ '(constituent)\tphase %i\ttexture %s\tfraction 1.0\n'%(options.phase[{True:0,False:1}[float(words[options.column-1])