+ f.write('\n'.join(act))
+
+
+class ClusterCloud(WordCloud):
+
+ def doanalyse(self):
+ print('ClusterCloud')
+ self.parametres['type'] = 'clustercloud'
+ #FIXME
+ limit = 2
+ res = self.make_option(True) #dialogue d'options de WordCloud.make_option
+ if res == wx.ID_OK :
+ prof = self.parametres['clusterprof']
+ del self.parametres['clusterprof']
+ if self.parametres['indice'] == 0:
+ tokeep = 1
+ else:
+ tokeep = 2
+ prof = [[val[0], int(round(val[tokeep]))] for val in prof]
+ with open(self.pathout['actives_eff.csv'], 'w') as f :
+ f.write('\n'.join(['\t'.join([val[0], repr(val[1])]) for val in prof]))
+ dictcol = dict([[i, val] for i, val in enumerate(prof)])
+ self.actives = [val[0] for val in prof]
+ SelectColumn(self.ira, dictcol, self.actives, self.pathout['selected.csv'], dlg = True)
+ script = WordCloudRScript(self)
+ script.make_script()
+
+ dialProgression = progressbar(self.ira, self.dlg)
+ self.doR(script.scriptout, dlg = dialProgression, message = 'R...')
+ dialProgression.Destroy()
+
+ else:
+ return 'NOK'
+