From: Jean-Philippe ARGAUD Date: Mon, 14 Nov 2011 13:11:52 +0000 (+0100) Subject: Correction d'un diagnostic d'erreur de donnees X-Git-Tag: V6_4_0rc3~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3d6085a747bee477260aba04b2bac0a94201d14f;p=modules%2Fadao.git Correction d'un diagnostic d'erreur de donnees --- diff --git a/src/daComposant/daCore/AssimilationStudy.py b/src/daComposant/daCore/AssimilationStudy.py index c77797d..bdd9597 100644 --- a/src/daComposant/daCore/AssimilationStudy.py +++ b/src/daComposant/daCore/AssimilationStudy.py @@ -206,7 +206,9 @@ class AssimilationStudy: - toBeStored : booléen indiquant si la donnée d'entrée est sauvée pour être rendue disponible au même titre que les variables de calcul """ - if (type(asFunction) is type({})) and (asFunction["Tangent"] is not None) and (asFunction["Adjoint"] is not None): + if (type(asFunction) is type({})) and \ + asFunction.has_key("Tangent") and asFunction.has_key("Adjoint") and \ + (asFunction["Tangent"] is not None) and (asFunction["Adjoint"] is not None): if not asFunction.has_key("Direct") or (asFunction["Direct"] is None): self.__H["Direct"] = Operator( fromMethod = asFunction["Tangent"] ) else: