X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=functions.py;h=a26731b9405ee12015ab8bfd75d8c0e989c69818;hp=7a24001f26ce6941be9592f898dd22a07006d0ac;hb=b5c60c0bc62747f2256137641d239e2edcbe506b;hpb=54d801be487adf479497f03b1ad4557863093f88 diff --git a/functions.py b/functions.py index 7a24001..a26731b 100644 --- a/functions.py +++ b/functions.py @@ -55,6 +55,7 @@ class TGen : def writetable(self, pathout, tgens, totocc): etoiles = totocc.keys() + etoiles.sort() with open(pathout, 'w') as f : line = '\t'.join([u'tgens'] + etoiles) + '\n' f.write(line.encode(self.encoding)) @@ -66,7 +67,7 @@ class TGen : while totname + `i` in tgens : i += 1 totname = totname + `i` - line = '\t'.join([totname] + [`totocc[et]` for et in etoiles]) + line = '\t'.join([totname] + [`totocc[et]` for et in etoiles]) + '\n' f.write(line.encode(self.encoding)) class History :