Salome HOME
Fixes for the import/export methods of the Verima plugin in SMESH.
authorFlorian BRUNET <FB15EB3N@dsp0657834.(none)>
Tue, 20 Jan 2015 16:38:10 +0000 (17:38 +0100)
committerFlorian BRUNET <FB15EB3N@dsp0657834.(none)>
Tue, 20 Jan 2015 16:38:10 +0000 (17:38 +0100)
src/Tools/Verima/Base/importFromCSV.py
src/Tools/Verima/Base/tablePerfs.py

index 33941ea..afc3503 100755 (executable)
@@ -24,6 +24,7 @@ if __name__ == "__main__":
          exit()
 
       maBase=Base(options.database)
+      maBase.create()
       maBase.initialise()
       maBase.importFromCSV(folder,options.partiel,options.force)
       maBase.close()
index e92fb50..8707711 100644 (file)
@@ -4,8 +4,8 @@ from tableDeBase import TableDeBase
 class TablePerfs (TableDeBase):
       def __init__(self):
           TableDeBase.__init__(self,"Perfs")
-          self.setField(('Maillage','Version','NbSecCpu','Memoire'))
-          self.setTypeField(('int','int','int','int'),('idMaillage','idVersion','Machine'))
+          self.setField(('Maillage','Version','Machine','NbSecCpu','Memoire'))
+          self.setTypeField(('int','int','str','int','int'),('idMaillage','idVersion','Machine'))
 
       def createSqlTable(self):
           query=QtSql.QSqlQuery()