From: Jean-Philippe ARGAUD Date: Thu, 30 Apr 2015 09:18:42 +0000 (+0200) Subject: Correction of catalogue and version setting X-Git-Tag: V7_6_0~13^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e1753f0ec183d13a6936f7634e4f4090c4bc41b3;p=modules%2Fadao.git Correction of catalogue and version setting --- diff --git a/bin/AdaoCatalogGenerator.py b/bin/AdaoCatalogGenerator.py index fd32062..dd7842f 100644 --- a/bin/AdaoCatalogGenerator.py +++ b/bin/AdaoCatalogGenerator.py @@ -78,27 +78,27 @@ NoCheckInNS.info = "" def DirectOperatorInNS(filename): if os.path.exists(filename): fc = open(filename, 'r').readlines() - cr = re.compile("^DirectOperator[\s]*=") + cr = re.compile("^def[\s]*DirectOperator[\s]*\(") for ln in fc: if cr.match(ln): return 1 return 0 -DirectOperatorInNS.info = u"The Python file has to contain explicitly a \\"DirectOperator\\" variable." +DirectOperatorInNS.info = u"The Python file has to contain explicitly a \\"DirectOperator\\" function definition with only one vector as argument." def TangentOperatorInNS(filename): if os.path.exists(filename): fc = open(filename, 'r').readlines() - cr = re.compile("^TangentOperator[\s]*=") + cr = re.compile("^def[\s]*TangentOperator[\s]*\(") for ln in fc: if cr.match(ln): return 1 return 0 -TangentOperatorInNS.info = u"The Python file has to contain explicitly a \\"TangentOperator\\" variable." +TangentOperatorInNS.info = u"The Python file has to contain explicitly a \\"TangentOperator\\" function definition with only one pair of vectors as argument." def AdjointOperatorInNS(filename): if os.path.exists(filename): fc = open(filename, 'r').readlines() - cr = re.compile("^AdjointOperator[\s]*=") + cr = re.compile("^def[\s]*AdjointOperator[\s]*\(") for ln in fc: if cr.match(ln): return 1 return 0 -AdjointOperatorInNS.info = u"The Python file has to contain explicitly a \\"AdjointOperator\\" variable." +AdjointOperatorInNS.info = u"The Python file has to contain explicitly an \\"AdjointOperator\\" function definition with only one pair of vectors as argument." """%(module_version.name,module_version.version) # Important : validators=[...] pour que les conditions soient traitées simultanément, en "ET", et pas en "OU" (choisi dans le cas du tuple à la place de la liste) diff --git a/resources/SalomeApp.xml b/resources/SalomeApp.xml index 683cd79..8b9a8e5 100644 --- a/resources/SalomeApp.xml +++ b/resources/SalomeApp.xml @@ -28,7 +28,7 @@ - +
diff --git a/src/daComposant/daCore/BasicObjects.py b/src/daComposant/daCore/BasicObjects.py index d1715d6..e5cccdf 100644 --- a/src/daComposant/daCore/BasicObjects.py +++ b/src/daComposant/daCore/BasicObjects.py @@ -284,7 +284,7 @@ class Algorithm: self._m = PlatformInfo.SystemUsage() # self._name = str( name ) - self._parameters = {} + self._parameters = {"StoreSupplementaryCalculations":[]} self.__required_parameters = {} self.StoredVariables = {} # @@ -318,8 +318,7 @@ class Algorithm: return 0 def _post_run(self,_oH=None): - if self._parameters.has_key("StoreSupplementaryCalculations") and \ - "APosterioriCovariance" in self._parameters["StoreSupplementaryCalculations"]: + if "APosterioriCovariance" in self._parameters["StoreSupplementaryCalculations"]: for _A in self.StoredVariables["APosterioriCovariance"]: if "APosterioriVariances" in self._parameters["StoreSupplementaryCalculations"]: self.StoredVariables["APosterioriVariances"].store( numpy.diag(_A) ) diff --git a/src/daComposant/daCore/version.py b/src/daComposant/daCore/version.py index 72427a4..ec2d175 100644 --- a/src/daComposant/daCore/version.py +++ b/src/daComposant/daCore/version.py @@ -21,5 +21,5 @@ # Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D name = "Data Assimilation Package" -version = "0.10.1" -date = "vendredi 30 janvier 2015, 12:12:12 (UTC+0100)" +version = "0.11.0" +date = "jeudi 30 avril 2015, 12:12:12 (UTC+0100)"