From 3d6085a747bee477260aba04b2bac0a94201d14f Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Mon, 14 Nov 2011 14:11:52 +0100 Subject: [PATCH] Correction d'un diagnostic d'erreur de donnees --- src/daComposant/daCore/AssimilationStudy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- 2.39.2