From ae99f483f88b5da7fc10660fe3db528680d97471 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Thu, 30 Apr 2015 14:19:32 +0200 Subject: [PATCH] Correction de collision --- src/daComposant/daCore/BasicObjects.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daComposant/daCore/BasicObjects.py b/src/daComposant/daCore/BasicObjects.py index e5cccdf..345f04b 100644 --- a/src/daComposant/daCore/BasicObjects.py +++ b/src/daComposant/daCore/BasicObjects.py @@ -318,7 +318,8 @@ class Algorithm: return 0 def _post_run(self,_oH=None): - if "APosterioriCovariance" in self._parameters["StoreSupplementaryCalculations"]: + if self._parameters.has_key("StoreSupplementaryCalculations") and \ + "APosterioriCovariance" in self._parameters["StoreSupplementaryCalculations"]: for _A in self.StoredVariables["APosterioriCovariance"]: if "APosterioriVariances" in self._parameters["StoreSupplementaryCalculations"]: self.StoredVariables["APosterioriVariances"].store( numpy.diag(_A) ) -- 2.39.2