From: Jean-Philippe ARGAUD Date: Thu, 30 Apr 2015 12:19:32 +0000 (+0200) Subject: Correction de collision X-Git-Tag: V7_6_0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae99f483f88b5da7fc10660fe3db528680d97471;p=modules%2Fadao.git Correction de collision --- 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) )