From: Jean-Philippe ARGAUD Date: Tue, 1 Oct 2013 12:54:12 +0000 (+0200) Subject: Making similar algorithm parameters more similar X-Git-Tag: V7_3_0~12 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ff5246b9af74cf24f5676905cbd48a6735d7c48d;p=modules%2Fadao.git Making similar algorithm parameters more similar --- diff --git a/src/daComposant/daAlgorithms/ExtendedKalmanFilter.py b/src/daComposant/daAlgorithms/ExtendedKalmanFilter.py index 4b4bc1d..cf8406d 100644 --- a/src/daComposant/daAlgorithms/ExtendedKalmanFilter.py +++ b/src/daComposant/daAlgorithms/ExtendedKalmanFilter.py @@ -30,11 +30,11 @@ class ElementaryAlgorithm(BasicObjects.Algorithm): def __init__(self): BasicObjects.Algorithm.__init__(self, "EXTENDEDKALMANFILTER") self.defineRequiredParameter( - name = "StoreSupplementaryCalculations", - default = [], - typecast = tuple, - message = "Liste de calculs supplémentaires à stocker et/ou effectuer", - listval = ["APosterioriCovariance", "BMA", "Innovation"] + name = "ConstrainedBy", + default = "EstimateProjection", + typecast = str, + message = "Prise en compte des contraintes", + listval = ["EstimateProjection"], ) self.defineRequiredParameter( name = "EstimationOf", @@ -43,19 +43,19 @@ class ElementaryAlgorithm(BasicObjects.Algorithm): message = "Estimation d'etat ou de parametres", listval = ["State", "Parameters"], ) - self.defineRequiredParameter( - name = "ConstrainedBy", - default = "EstimateProjection", - typecast = str, - message = "Prise en compte des contraintes", - listval = ["EstimateProjection"], - ) self.defineRequiredParameter( name = "StoreInternalVariables", default = False, typecast = bool, message = "Stockage des variables internes ou intermédiaires du calcul", ) + self.defineRequiredParameter( + name = "StoreSupplementaryCalculations", + default = [], + typecast = tuple, + message = "Liste de calculs supplémentaires à stocker et/ou effectuer", + listval = ["APosterioriCovariance", "BMA", "Innovation"] + ) def run(self, Xb=None, Y=None, U=None, HO=None, EM=None, CM=None, R=None, B=None, Q=None, Parameters=None): logging.debug("%s Lancement"%self._name) diff --git a/src/daComposant/daAlgorithms/KalmanFilter.py b/src/daComposant/daAlgorithms/KalmanFilter.py index dc8fe79..84a835b 100644 --- a/src/daComposant/daAlgorithms/KalmanFilter.py +++ b/src/daComposant/daAlgorithms/KalmanFilter.py @@ -29,13 +29,6 @@ import numpy class ElementaryAlgorithm(BasicObjects.Algorithm): def __init__(self): BasicObjects.Algorithm.__init__(self, "KALMANFILTER") - self.defineRequiredParameter( - name = "StoreSupplementaryCalculations", - default = [], - typecast = tuple, - message = "Liste de calculs supplémentaires à stocker et/ou effectuer", - listval = ["APosterioriCovariance", "BMA", "Innovation"] - ) self.defineRequiredParameter( name = "EstimationOf", default = "State", @@ -49,6 +42,13 @@ class ElementaryAlgorithm(BasicObjects.Algorithm): typecast = bool, message = "Stockage des variables internes ou intermédiaires du calcul", ) + self.defineRequiredParameter( + name = "StoreSupplementaryCalculations", + default = [], + typecast = tuple, + message = "Liste de calculs supplémentaires à stocker et/ou effectuer", + listval = ["APosterioriCovariance", "BMA", "Innovation"] + ) def run(self, Xb=None, Y=None, U=None, HO=None, EM=None, CM=None, R=None, B=None, Q=None, Parameters=None): logging.debug("%s Lancement"%self._name)