From 909ca02093b444499688a6643627e48e7b523674 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Fri, 23 Sep 2011 14:34:12 +0000 Subject: [PATCH] Fix for OpenTURNS 0.15 --- generator/OpenturnsSTD.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/generator/OpenturnsSTD.py b/generator/OpenturnsSTD.py index 7b845bcb..56187753 100644 --- a/generator/OpenturnsSTD.py +++ b/generator/OpenturnsSTD.py @@ -8,8 +8,6 @@ Ce module contient le generateur Etude pour Openturns __revision__ = "V1.0" -import os - defaultSTD = """#! /usr/bin/env python class StudyFileGenerationError: @@ -269,13 +267,11 @@ class STDGenerateur : ''' Importe le modele physique ''' - fonction = None if ( self.DictMCVal.has_key( 'FileName' ) ): name = self.DictMCVal[ 'FileName' ] - #fonction = name[name.rfind('/')+1:name.rfind('.xml')] txt = "# Charge le modele physique\n" - txt = "%s = WrapperFile( '%s' )\n" % (self.variable["wrapper"], name) + txt += "%s = WrapperFile( '%s' )\n" % (self.variable["wrapper"], name) txt += "%s = %s.getWrapperData()\n" % (self.variable["wrapperdata"], self.variable["wrapper"]) txt += "# Ces lignes sont utiles pour le fonctionnement du script sous Salome\n" @@ -289,7 +285,7 @@ class STDGenerateur : txt += "# Fin des lignes pour Salome\n" txt += "%s = NumericalMathFunction( %s )\n" % (self.variable["model"], self.variable["wrapper"],) - txt += "%s = %s.getInputNumericalPointDimension()\n" % (self.variable["n"], self.variable["model"]) + txt += "%s = %s.getInputDimension()\n" % (self.variable["n"], self.variable["model"]) txt += "\n" return txt -- 2.39.2