From 1667ba5bf57334ab6f83c58fcaae6a5b47a31b64 Mon Sep 17 00:00:00 2001 From: Florian BRUNET Date: Tue, 20 Jan 2015 17:38:10 +0100 Subject: [PATCH] Fixes for the import/export methods of the Verima plugin in SMESH. --- src/Tools/Verima/Base/importFromCSV.py | 1 + src/Tools/Verima/Base/tablePerfs.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Tools/Verima/Base/importFromCSV.py b/src/Tools/Verima/Base/importFromCSV.py index 33941eae4..afc3503fa 100755 --- a/src/Tools/Verima/Base/importFromCSV.py +++ b/src/Tools/Verima/Base/importFromCSV.py @@ -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() diff --git a/src/Tools/Verima/Base/tablePerfs.py b/src/Tools/Verima/Base/tablePerfs.py index e92fb50ba..8707711d6 100644 --- a/src/Tools/Verima/Base/tablePerfs.py +++ b/src/Tools/Verima/Base/tablePerfs.py @@ -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() -- 2.39.2