#-*- coding: utf-8 -*-
-# Copyright (C) 2010 EDF R&D
+# Copyright (C) 2010-2011 EDF R&D
#
-# This library is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public
-# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License.
#
-# This library is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
#
-# You should have received a copy of the GNU Lesser General Public
-# License along with this library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
-# --
-# Author : André RIBES (EDF R&D)
-# --
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# Author: Andre Ribes, andre.ribes@edf.fr, EDF R&D
# -- Infos pour le parser --
AnalysisFromList = ["String", "Script"]
# -- Infos from daCore --
-#AssimData = ["Background", "BackgroundError",
-# "Observation", "ObservationError", "ObservationOperator", "ObservationOperatorAppliedToX",
-# "EvolutionModel", "EvolutionError", "AlgorithmParameters"]
-
AssimData = ["Background", "BackgroundError",
- "Observation", "ObservationError", "ObservationOperator",
- "EvolutionModel", "EvolutionError", "AlgorithmParameters"]
-
+ "Observation", "ObservationError",
+ "ObservationOperator",
+ "EvolutionModel", "EvolutionError",
+ "AlgorithmParameters"]
AssimType = {}
AssimType["Background"] = ["Vector"]
AssimType["Observation"] = ["Vector"]
AssimType["ObservationError"] = ["Matrix"]
AssimType["ObservationOperator"] = ["Matrix", "Function"]
+AssimType["EvolutionModel"] = ["Matrix", "Function"]
+AssimType["EvolutionError"] = ["Matrix"]
AssimType["AlgorithmParameters"] = ["Dict"]
AssimType["UserDataInit"] = ["Dict"]
-#AssimType["ObservationOperatorAppliedToX"] = ["List"]
FromNumpyList = {}
-FromNumpyList["Vector"] = ["String", "Script"]
-FromNumpyList["Matrix"] = ["String", "Script"]
+FromNumpyList["Vector"] = ["String", "Script"]
+FromNumpyList["Matrix"] = ["String", "Script"]
FromNumpyList["Function"] = ["FunctionDict"]
-FromNumpyList["Dict"] = ["Script"]
+FromNumpyList["Dict"] = ["Script"]
# -- Infos from daAlgorithms --
-AssimAlgos = ["Blue", "EnsembleBlue", "Kalman", "LinearLeastSquares", "3DVAR"]
+AssimAlgos = [
+ "3DVAR",
+ "Blue",
+ "EnsembleBlue",
+# "KalmanFilter", # Removed because EvolutionModel must be available in OptLoop
+ "LinearLeastSquares",
+ "NonLinearLeastSquares",
+ ]
AlgoDataRequirements = {}
-AlgoDataRequirements["Blue"] = ["Background", "BackgroundError",
- "Observation", "ObservationOperator", "ObservationError"]
+AlgoDataRequirements["3DVAR"] = [
+ "Background", "BackgroundError",
+ "Observation", "ObservationError",
+ "ObservationOperator",
+ ]
+AlgoDataRequirements["Blue"] = [
+ "Background", "BackgroundError",
+ "Observation", "ObservationError",
+ "ObservationOperator",
+ ]
+AlgoDataRequirements["EnsembleBlue"] = [
+ "Background", "BackgroundError",
+ "Observation", "ObservationError",
+ "ObservationOperator",
+ ]
+# AlgoDataRequirements["KalmanFilter"] = [
+# "Background", "BackgroundError",
+# "Observation", "ObservationError",
+# "EvolutionModel", "EvolutionError",
+# "ObservationOperator",
+# ]
+AlgoDataRequirements["LinearLeastSquares"] = [
+ "Observation", "ObservationError",
+ "ObservationOperator",
+ ]
+AlgoDataRequirements["NonLinearLeastSquares"] = [
+ "Observation", "ObservationError",
+ "ObservationOperator",
+ ]
-AlgoDataRequirements["3DVAR"] = ["Background", "BackgroundError",
- "Observation", "ObservationOperator", "ObservationError"]
AlgoType = {}
-AlgoType["Blue"] = "Optim"
AlgoType["3DVAR"] = "Optim"
+AlgoType["Blue"] = "Optim"
AlgoType["EnsembleBlue"] = "Optim"
-AlgoType["Kalman"] = "Optim"
+# AlgoType["KalmanFilter"] = "Optim"
AlgoType["LinearLeastSquares"] = "Optim"
-#AlgoType["Blue"] = "Direct"
-
+AlgoType["NonLinearLeastSquares"] = "Optim"
-# Variables qui sont partagés avec le générateur de
+# Variables qui sont partages avec le generateur de
# catalogue Eficas
# Basic data types
AssimDataDict["Observation"] = ["Vector"]
AssimDataDict["ObservationError"] = ["Matrix"]
AssimDataDict["ObservationOperator"] = ["Matrix", "Function"]
+AssimDataDict["EvolutionModel"] = ["Matrix", "Function"]
+AssimDataDict["EvolutionError"] = ["Matrix"]
AssimDataDict["AlgorithmParameters"] = ["Dict"]
AssimDataDict["UserDataInit"] = ["Dict"]
AssimDataDefaultDict["Observation"] = "Vector"
AssimDataDefaultDict["ObservationError"] = "Matrix"
AssimDataDefaultDict["ObservationOperator"] = "Function"
+AssimDataDefaultDict["EvolutionModel"] = "Function"
+AssimDataDefaultDict["EvolutionError"] = "Matrix"
AssimDataDefaultDict["AlgorithmParameters"] = "Dict"
AssimDataDefaultDict["UserDataInit"] = "Dict"
OptDict["UserPostAnalysis"] = ["String", "Script"]
OptDefaultDict = {}
OptDefaultDict["UserPostAnalysis"] = "Script"
+
+# Observers
+ObserversList = [
+ "Analysis",
+ "CurrentState",
+ "Innovation",
+ "OMA",
+ "OMB",
+ "BMA",
+ "CostFunctionJ",
+ "CostFunctionJb",
+ "CostFunctionJo",
+ "GradientOfCostFunctionJ",
+ "GradientOfCostFunctionJb",
+ "GradientOfCostFunctionJo",
+ "SigmaObs2",
+ "SigmaBck2",
+ "APosterioriCovariance",
+ ]