X-Git-Url: http://iramuteq.org/git?p=iramuteq;a=blobdiff_plain;f=analysetxt.py;h=cd3ac77c22709caed04a8114ae215611d411cebc;hp=afaf3553c85e466aeea70422ca0412e2695241d6;hb=9bde3d55d2131f1a33234a43c0de8b200ddb8f9a;hpb=655d1e1ab00740c37712f476dc89dff7965c2161 diff --git a/analysetxt.py b/analysetxt.py index afaf355..cd3ac77 100644 --- a/analysetxt.py +++ b/analysetxt.py @@ -52,7 +52,11 @@ class AnalyseText : self.dlg = dlg self.dialok = True self.parametres = parametres - self.pathout = PathOut(corpus.parametres['originalpath'], analyse_type = parametres['type'], dirout = corpus.parametres['pathout']) + self.val = False + if not 'pathout' in self.parametres : + self.pathout = PathOut(corpus.parametres['originalpath'], analyse_type = parametres['type'], dirout = corpus.parametres['pathout']) + else : + self.pathout = PathOut(filename = corpus.parametres['originalpath'], dirout = self.parametres['pathout'], analyse_type = self.parametres['name']) self.parametres = self.make_config(parametres) log.info(self.pathout.dirout) if self.parametres is not None : @@ -125,7 +129,7 @@ class AnalyseText : sleep(0.2) else : sleep(0.2) - check_Rresult(self.ira, pid) + return check_Rresult(self.ira, pid) @@ -146,7 +150,7 @@ class Alceste(AnalyseText) : elif self.parametres['classif_mode'] == 2 : self.corpus.make_and_write_sparse_matrix_from_uci(self.actives, self.pathout['TableUc1'], self.pathout['listeuce1']) Rscript = self.printRscript() - self.doR(Rscript) + self.doR(Rscript, dlg = self.dlg, message = 'CHD...') #self.lc = make_ucecl_from_R(self.pathout['uce']) #self.lc0 = self.lc.pop(0) self.corpus.make_ucecl_from_R(self.pathout['uce']) @@ -157,7 +161,7 @@ class Alceste(AnalyseText) : self.clnb = len(self.corpus.lc) self.parametres['clnb'] = self.clnb Rscript = self.printRscript2() - self.doR(Rscript) + self.doR(Rscript, dlg = self.dlg, message = 'profils et A.F.C. ...') self.time = time() - self.t1 minutes, seconds = divmod(self.time, 60) hours, minutes = divmod(minutes, 60)