X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;f=tabverges.py;h=24bcce793105f3e23421e07d26d79fd5f3c131dc;hb=refs%2Fheads%2F3.0;hp=48ee8444ce61a08cc1d3ea97190283fb919c1285;hpb=eaa044d1147e26b82942ce56d5965c83fdddf069;p=iramuteq diff --git a/tabverges.py b/tabverges.py index 48ee844..55c2efd 100644 --- a/tabverges.py +++ b/tabverges.py @@ -72,7 +72,7 @@ class Prototypical(AnalyseMatrix) : self.parametres['typegraph'] = 'plan' self.dial.Destroy() else : - self.dial.Destroy() + self.dial.Destroy() self.parametres = None def doanalyse(self) : @@ -100,7 +100,7 @@ class Prototypical(AnalyseMatrix) : else : words[word] = [1, []] res = [[word, words[word][0], float(sum(words[word][1])) / len(words[word][1])] for word in words if len(words[word][1]) != 0 and words[word][0] >= self.parametres['freqmin']] - with open(self.pathout['table.csv'], 'w') as f : + with open(self.pathout['table.csv'], 'w', encoding='utf8') as f : f.write('\n'.join(['\t'.join(['"' + val[0] +'"', repr(val[1]), repr(val[2])]) for val in res])) #self.parent.tableau.parametres = self.parent.tableau.parametre #self.parent.tableau.save_tableau(self.pathout['analyse.db'])