if self.parametres.get('tohistory', True) :
self.time = time() - self.t1
minutes, seconds = divmod(self.time, 60)
- hours, minutes = divmod(minutes, 60)
+ hours, minutes = divmod(minutes, 60)
self.parametres['time'] = '%.0fh %.0fm %.0fs' % (hours, minutes, seconds)
self.parametres['ira'] = self.pathout['Analyse.ira']
DoConf().makeoptions([self.parametres['type']], [self.parametres], self.pathout['Analyse.ira'])
sleep(0.2)
else :
sleep(0.2)
- return check_Rresult(self.ira, pid)
\ No newline at end of file
+ return check_Rresult(self.ira, pid)
f = os.path.join(self.dirout, self.d[key]).replace('\\', '\\\\')
return normpath_win32(f)
#return os.path.join(self.dirout, self.d[key]).replace('\\', '\\\\')
-
+
def getF(self, key) :
return self.__getitem__(key).replace('\\', '/')
'prof_type' : 'profil_type.csv',
'antiprof_type' : 'antiprof_type.csv',
'type_cl' : 'type_cl.csv',
- 'db' : 'analyse.db',
+ 'db' : 'analyse'#.db,
}
def StatTxtPathOut(pathout):
'afct_col_csv': ffr(os.path.join(pathout, 'afct_col.csv')),
'afct_facteur_csv': ffr(os.path.join(pathout, 'afct_facteur.csv')),
'ira' : ffr(os.path.join(pathout, 'Analyse.ira')),
- 'db' : os.path.join(pathout, 'analyse.db'),
+ 'db' : os.path.join(pathout, 'analyse'),
'zipf' : ffr(os.path.join(pathout, 'zipf.png')),
}
return d
'liste_graph' :'liste_graph.txt',
'ira' : 'Analyse.ira',
'film' : '',
- 'db' : 'analyse.db',
+ 'db' : 'analyse',
'corpus' : 'corpus.db',
}
else :
corpname = self.corpus.parametres['matrix_name']
if os.path.exists(self.pathout['analyse.db']) :
- self.corpus.read_tableau(self.pathout['analyse.db'])
+ self.corpus.read_tableau(self.pathout['analyse'])
clnb = parametres['clnb']
dlg = progressbar(self, maxi = 4 + clnb)
self.clnb = clnb
self.tableau = tableau
self.parametres = parametres
if os.path.exists(self.pathout['analyse.db']) :
- self.tableau.read_tableau(self.pathout['analyse.db'])
+ self.tableau.read_tableau(self.pathout['analyse'])
self.dolayout()
self.ira.nb.SetSelection(self.ira.nb.GetPageCount() - 1)
self.ira.ShowAPane("Tab_content")
class CateLayout(DefaultMatLayout) :
def dolayout(self) :
- self.tableau.read_tableau(self.pathout['analyse.db'])
+ self.tableau.read_tableau(self.pathout['analyse'])
TabCate = ElCategorizator(self.ira.nb, self.pathout, self.tableau)
self.ira.nb.AddPage(TabCate, ' - '.join([_('ElCaTeGoRiZaToR'), self.parametres['name']]))
cate['TOCATE'][val] = self.tableau.actives[val][0]
with open(self.pathout['cate.json'], 'w', encoding='utf8') as f :
f.write(json.dumps(cate))
- self.tableau.save_tableau(self.pathout['analyse.db'])
+ self.tableau.save_tableau(self.pathout['analyse'])
self.dlg.Destroy()
self.parametres['type'] = 'matrix'
self.parametres['matrix_name'] = os.path.basename(filename)
self.parametres['uuid'] = str(uuid4())
- self.parametres['shelves'] = os.path.join(self.parametres['pathout'], 'shelve.db')
+ self.parametres['shelves'] = os.path.join(self.parametres['pathout'], 'shelve')
self.parametres['ira'] = os.path.join(self.parametres['pathout'], 'Matrix.ira')
else :
self.parametres = parametres
self.tableau.parametres['mineff'] = 0
if not self.fromprof :
dialcol = FreqDialog(self.parent, self.tableau.get_colnames(), _("Select columns"), size=(600, 250), showNA = False)
- dialcol.CenterOnParent()
+ dialcol.CenterOnParent()
res = dialcol.ShowModal()
else :
res = wx.ID_OK
self.paramsimi = self.make_param()
self.parametres.update(self.paramsimi)
#self.parametres['type'] = 'simimatrix'
- if not self.pathout :
+ if not self.pathout :
self.parametres['pathout'] = ConstructPathOut(self.parametres['pathout'], 'SimiMatrix')
else :
self.parametres['pathout'] = self.dirout
self.pathout.createdir(self.parametres['pathout'])
self.pathout.dirout = self.parametres['pathout']
self.dial.Destroy()
- #self.doanalyse2()
+ #self.doanalyse2()
else :
self.dial.Destroy()
self.parametres = None
tab = Tableau(self.ira, os.path.join(self.tableau.pathout['%s.csv' % mod]).replace('*',''))
if not os.path.exists(tab.pathout.dirout) :
os.mkdir(tab.pathout.dirout)
- tab.linecontent = newtabs[mod]
+ tab.linecontent = newtabs[mod]
tab.make_content_simple()
tab.parametres['matrix'] = tab.parametres['uuid']
self.ira.tree.OnItemAppend(tab.parametres, select = False)
self.parametres['typegraph'] = 'plan'
self.dial.Destroy()
else :
- self.dial.Destroy()
+ self.dial.Destroy()
self.parametres = None
def doanalyse(self) :