Salome HOME
Remove temporary KalmanFilter before introducing EvolutionModel in OptLoop for ADAO
[modules/adao.git] / src / daSalome / daYacsSchemaCreator / infos_daComposant.py
index 7e7c2b1557120543b0853798ca18e022e5693cae..16b8625e2d7724bc03f61a54c74c64d4067e7855 100644 (file)
@@ -1,34 +1,36 @@
-#-*-coding:iso-8859-1-*-
-#  Copyright (C) 2010 EDF R&D
+#-*- coding: utf-8 -*-
+# 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 --
 
 AnalysisData = {}
-AnalysisFromList = ["String", "File"]
+AnalysisFromList = ["String", "Script"]
 
 # -- Infos from daCore --
 AssimData = ["Background", "BackgroundError",
-             "Observation", "ObservationError", "ObservationOperator", "ObservationOperatorAppliedToX",
-             "EvolutionModel", "EvolutionError"]
+             "Observation", "ObservationError",
+             "ObservationOperator",
+             "EvolutionModel", "EvolutionError",
+             "AlgorithmParameters"]
 
 AssimType = {}
 AssimType["Background"] = ["Vector"]
@@ -36,24 +38,129 @@ AssimType["BackgroundError"] = ["Matrix"]
 AssimType["Observation"] = ["Vector"]
 AssimType["ObservationError"] = ["Matrix"]
 AssimType["ObservationOperator"] = ["Matrix", "Function"]
-AssimType["ObservationOperatorAppliedToX"] = ["List"]
+AssimType["EvolutionModel"] = ["Matrix", "Function"]
+AssimType["EvolutionError"] = ["Matrix"]
+AssimType["AlgorithmParameters"] = ["Dict"]
+AssimType["UserDataInit"] = ["Dict"]
 
 FromNumpyList = {}
-FromNumpyList["Vector"] = ["String", "Script"]
-FromNumpyList["Matrix"] = ["String", "Script"]
-FromNumpyList["Function"] = ["Dict"]
-FromNumpyList["List"] = ["List"]
+FromNumpyList["Vector"]   = ["String", "Script"]
+FromNumpyList["Matrix"]   = ["String", "Script"]
+FromNumpyList["Function"] = ["FunctionDict"]
+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"] = "Direct"
-AlgoType["Blue"] = "Optim"
 AlgoType["3DVAR"] = "Optim"
+AlgoType["Blue"] = "Optim"
+AlgoType["EnsembleBlue"] = "Optim"
+# AlgoType["KalmanFilter"] = "Optim"
+AlgoType["LinearLeastSquares"] = "Optim"
+AlgoType["NonLinearLeastSquares"] = "Optim"
+
+# Variables qui sont partages avec le generateur de
+# catalogue Eficas
+
+# Basic data types
+BasicDataInputs = ["String", "Script", "FunctionDict"]
+
+# Data input dict
+DataTypeDict = {}
+DataTypeDict["Vector"]   = ["String", "Script"]
+DataTypeDict["Matrix"]   = ["String", "Script"]
+DataTypeDict["Function"] = ["FunctionDict"]
+DataTypeDict["Dict"]     = ["Script"]
+
+DataTypeDefaultDict = {}
+DataTypeDefaultDict["Vector"]   = "Script"
+DataTypeDefaultDict["Matrix"]   = "Script"
+DataTypeDefaultDict["Function"] = "FunctionDict"
+DataTypeDefaultDict["Dict"]     = "Script"
+
+# Assimilation data input
+AssimDataDict = {}
+AssimDataDict["Background"] = ["Vector"]
+AssimDataDict["BackgroundError"] = ["Matrix"]
+AssimDataDict["Observation"] = ["Vector"]
+AssimDataDict["ObservationError"] = ["Matrix"]
+AssimDataDict["ObservationOperator"] = ["Matrix", "Function"]
+AssimDataDict["EvolutionModel"] = ["Matrix", "Function"]
+AssimDataDict["EvolutionError"] = ["Matrix"]
+AssimDataDict["AlgorithmParameters"] = ["Dict"]
+AssimDataDict["UserDataInit"] = ["Dict"]
+
+AssimDataDefaultDict = {}
+AssimDataDefaultDict["Background"]          = "Vector"
+AssimDataDefaultDict["BackgroundError"]     = "Matrix"
+AssimDataDefaultDict["Observation"]         = "Vector"
+AssimDataDefaultDict["ObservationError"]    = "Matrix"
+AssimDataDefaultDict["ObservationOperator"] = "Function"
+AssimDataDefaultDict["EvolutionModel"]      = "Function"
+AssimDataDefaultDict["EvolutionError"]      = "Matrix"
+AssimDataDefaultDict["AlgorithmParameters"] = "Dict"
+AssimDataDefaultDict["UserDataInit"]        = "Dict"
+
+# Assimilation optional nodes
+OptDict = {}
+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",
+    ]