X-Git-Url: http://iramuteq.org/git?a=blobdiff_plain;f=analysematrix.py;h=cae6ff8198a38aea45e1ebfaa0c85956a6881eb3;hb=03b6e846e98cd128d1ea0c2c3eeba08565f1b2a1;hp=7e3c93fae0acf133a24e4447f839c58d30607a31;hpb=54bbc5135afebc8bcc00973fd25fae383f27bdf4;p=iramuteq diff --git a/analysematrix.py b/analysematrix.py index 7e3c93f..cae6ff8 100644 --- a/analysematrix.py +++ b/analysematrix.py @@ -1,17 +1,26 @@ -#!/bin/env python # -*- coding: utf-8 -*- #Author: Pierre Ratinaud -#Copyright (c) 2013 Pierre Ratinaud -#License: GNU GPL - - +#Copyright (c) 2008-2020 Pierre Ratinaud +#modification pour python 3 : Laurent Mérat, 6x7 - mai 2020 +#License: GNU/GPL +#------------------------------------ +# import des modules python +#------------------------------------ import logging import os from uuid import uuid4 +from time import time, sleep + +#------------------------------------ +# import des modules wx +#------------------------------------ + +#------------------------------------ +# import des fichiers du projet +#------------------------------------ from chemins import PathOut from functions import exec_rcode, check_Rresult, DoConf, progressbar -from time import time, sleep from openanalyse import OpenAnalyse @@ -65,14 +74,17 @@ class AnalyseMatrix : else : self.val = False if self.dlg is not None : - self.dlg.Destroy() + try : + self.dlg.Destroy() + except : + pass def doanalyse(self) : pass - + def doparametres(self, dlg = None): pass - + def doR(self, Rscript, wait = False, dlg = None, message = '') : #log.info('R code...') pid = exec_rcode(self.ira.RPath, Rscript, wait = wait) @@ -82,5 +94,4 @@ class AnalyseMatrix : sleep(0.2) else : sleep(0.2) - return check_Rresult(self.ira, pid) - + return check_Rresult(self.ira, pid) \ No newline at end of file