From: PASCALE NOYRET Date: Fri, 17 Jun 2022 13:40:08 +0000 (+0200) Subject: chgt xPath en MCPath X-Git-Tag: merge_uncertainty_odysee_1210~56^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=072bdc5fab6f4dafa4ba92c2ce036280d47f942a;p=tools%2Feficas.git chgt xPath en MCPath --- diff --git a/Ihm/I_MCCOMPO.py b/Ihm/I_MCCOMPO.py index 79881294..f24827fa 100644 --- a/Ihm/I_MCCOMPO.py +++ b/Ihm/I_MCCOMPO.py @@ -224,7 +224,7 @@ class MCCOMPO(I_OBJECT.OBJECT): return 0 if objet.nom == 'VariableProbabiliste' : - if objet[0].variableDeterministe : + if hasattr(objet[0], 'variableDeterministe') and objet[0].variableDeterministe : objet[0].variableDeterministe.variableProbabiliste = None objet[0].variableDeterministe.associeVariableUQ = False self.initModif() diff --git a/Ihm/I_MCSIMP.py b/Ihm/I_MCSIMP.py index 072e15cd..05db2c6c 100644 --- a/Ihm/I_MCSIMP.py +++ b/Ihm/I_MCSIMP.py @@ -920,7 +920,7 @@ class MCSIMP(I_OBJECT.OBJECT): itemConsigne=newVariable.getChild('Consigne') itemConsigne.setValeur('la valeur entrée pour {} est {}'.format(self.nom, self.valeur)) - itemXPath=newVariable.getChild('xPathVariable') + itemXPath=newVariable.getChild('MCPath') itemXPath.setValeur(self.getGenealogiePrecise()) #print (itemXPath) diff --git a/ReacteurNumerique/cata_UQ.py b/ReacteurNumerique/cata_UQ.py index 54cdf793..89a78a80 100644 --- a/ReacteurNumerique/cata_UQ.py +++ b/ReacteurNumerique/cata_UQ.py @@ -1660,7 +1660,7 @@ def creeOperExpressionIncertitude(monDicoVarDeter, monDicoVarSortie): ang = "Probabilistic variable", ModelVariable = modelVariable, Consigne = laConsigne, - xPathVariable = xPathVariable, + MCPath = MCPath, **blocs ), ),