X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=tabchddist.py;h=39c50acc4014c254e97182299e0f2eb5c83a44d2;hp=2508bb4ebb5890f378fa8a5b9ed0d01e7dff1add;hb=b5c29c4ff9eaa0979a0bb524d9395301c447783d;hpb=8fa853a25a9d62b1446e1bc543e5a3a4d0e03dcf diff --git a/tabchddist.py b/tabchddist.py index 2508bb4..39c50ac 100644 --- a/tabchddist.py +++ b/tabchddist.py @@ -1,19 +1,14 @@ # -*- coding: utf-8 -*- #Author: Pierre Ratinaud #Copyright (c) 2008 Pierre Ratinaud -#Lisense: GNU/GPL +#License: GNU/GPL import wx import os -#from rchdng import RchdFunct from chemins import ffr, ConstructPathOut,ChdTxtPathOut -#from layout import PrintRapport -from openanalyse import OpenAnalyse -from ConfigParser import ConfigParser from functions import CreateIraFile, print_liste, exec_rcode, check_Rresult -from dialog import CHDDialog, PrefQuestAlc, ClusterNbDialog +from dialog import PrefQuestAlc, ClusterNbDialog import tempfile -from numpy import * import time @@ -52,9 +47,9 @@ def RchdFunct(self,parent, rep_out, CLASSIF, encode, RscriptsPath): time.sleep(0.2) check_Rresult(parent, pid) - file=open(fileout,'rU') - lcl=file.readlines() - file.close() + f=open(fileout,'rU') + lcl=f.readlines() + f.close() ListClasseOk=[line.replace('\n','').replace('"','') for line in lcl] ListClasseOk.pop(0) @@ -172,9 +167,9 @@ def RchdFunct(self,parent, rep_out, CLASSIF, encode, RscriptsPath): txt += """ PlotAfc2dCoul(afc, as.data.frame(chistabletot), "%s", col = TRUE, what='crl') """ % (rep_out['AFC2DCoulCl']) - file=open(Rtmp,'w') - file.write(txt) - file.close() + f=open(Rtmp,'w') + f.write(txt) + f.close() pid = exec_rcode(parent.RPath, Rtmp, wait = False) while pid.poll() == None : time.sleep(0.2)