SUBDIRS += src
if SALOME_MODULE
-SUBDIRS += resources bin samples
+SUBDIRS += resources bin examples
endif
if SPHINX_IS_OK
testsdasalomedir = $(testsdir)/daSalome
testsplateformedir = $(testsdir)/daComposant/Plateforme
-# Directory for installing samples files
-samplesdir = $(prefix)/share/salome/adao_samples
-samplesdasalomedir = $(samplesdir)/daSalome
+# Directory for installing examples files
+examplesdir = $(prefix)/share/salome/adao_examples
+examplesdasalomedir = $(examplesdir)/daSalome
# Directories for installing admin files
admlocaldir = $(prefix)/adm_local
src/daSalome/daGUI/daUtils/Makefile
src/daSalome/daGUI/daGuiImpl/Makefile
src/daSalome/daGUI/daEficasWrapper/Makefile
- samples/Makefile
- samples/daSalome/Makefile
- samples/daSalome/test003_ADAO_JDC_using_scripts.comm
- samples/daSalome/test004_ADAO_JDC_using_scripts.comm
+ examples/Makefile
+ examples/daSalome/Makefile
+ examples/daSalome/test003_ADAO_JDC_using_scripts.comm
+ examples/daSalome/test004_ADAO_JDC_using_scripts.comm
bin/Makefile
bin/qtEficas_adao_study.py
doc/Makefile
--- /dev/null
+SUBDIRS = daSalome
+
--- /dev/null
+include $(top_srcdir)/adm_local/make_common_starter.am
+
+DATA_INST = \
+ test001_ADAO_JDC_using_strings.comm \
+ test002_ADAO_JDC_using_strings.comm \
+ test003_ADAO_JDC_using_scripts.comm \
+ test003_ADAO_scripts_for_JDC.py \
+ test004_ADAO_JDC_using_scripts.comm \
+ test004_ADAO_scripts_for_JDC.py
+
+examplesdasalome_DATA = ${DATA_INST}
+
+EXTRA_DIST = \
+ test001_ADAO_JDC_using_strings.comm \
+ test002_ADAO_JDC_using_strings.comm \
+ test003_ADAO_JDC_using_scripts.comm.in \
+ test003_ADAO_scripts_for_JDC.py \
+ test004_ADAO_JDC_using_scripts.comm.in \
+ test004_ADAO_scripts_for_JDC.py
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Debug=0,
+ Algorithm='Blue',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='0 0 0',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='1 1 1',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Debug=0,
+ Algorithm='3DVAR',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='0 0 0',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='String',
+ STRING='1 1 1',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='String',
+ STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Study_repertory='@prefix@/share/salome/adao_examples/daSalome',
+ Debug=0,
+ Algorithm='3DVAR',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),);
--- /dev/null
+#-*-coding:iso-8859-1-*-
+import numpy
+#
+# Definition of the Background as a vector
+# ----------------------------------------
+Background = [0, 0, 0]
+#
+# Definition of the Observation as a vector
+# -----------------------------------------
+Observation = "1 1 1"
+#
+# Definition of the Background Error covariance as a matrix
+# ---------------------------------------------------------
+BackgroundError = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])
+#
+# Definition of the Observation Error covariance as a matrix
+# ----------------------------------------------------------
+ObservationError = numpy.matrix("1 0 0 ; 0 1 0 ; 0 0 1")
+#
+# Definition of the Observation Operator as a matrix
+# --------------------------------------------------
+ObservationOperator = numpy.identity(3)
--- /dev/null
+
+ASSIMILATION_STUDY(Study_name='Test',
+ Study_repertory='@prefix@/share/salome/adao_examples/daSalome',
+ Debug=0,
+ Algorithm='Blue',
+ Background=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ BackgroundError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ Observation=_F(INPUT_TYPE='Vector',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ ObservationError=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ ObservationOperator=_F(INPUT_TYPE='Matrix',
+ data=_F(FROM='Script',
+ SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
+ UserPostAnalysis=_F(FROM='String',
+ STRING=
+"""import numpy
+Xa = ADD.get("Analysis").valueserie(-1)
+print
+print "Size of Analysis = %i"%len(Xa)
+print "Min, mean, max = %8.3f, %8.3f, %8.3f"%(min(Xa),numpy.mean(Xa),max(Xa))
+print
+""",),);
--- /dev/null
+#-*-coding:iso-8859-1-*-
+import numpy
+#
+n = 100
+#
+# Definition of the Background as a vector
+# ----------------------------------------
+Background = n * [0]
+#
+# Definition of the Observation as a vector
+# -----------------------------------------
+Observation = n * "1 "
+Observation = Observation.strip()
+#
+# Definition of the Background Error covariance as a matrix
+# ---------------------------------------------------------
+BackgroundError = numpy.identity(n)
+#
+# Definition of the Observation Error covariance as a matrix
+# ----------------------------------------------------------
+ObservationError = numpy.identity(n)
+#
+# Definition of the Observation Operator as a matrix
+# --------------------------------------------------
+ObservationOperator = numpy.identity(n)
+++ /dev/null
-SUBDIRS = daSalome
-
+++ /dev/null
-include $(top_srcdir)/adm_local/make_common_starter.am
-
-DATA_INST = \
- test001_ADAO_JDC_using_strings.comm \
- test002_ADAO_JDC_using_strings.comm \
- test003_ADAO_JDC_using_scripts.comm \
- test003_ADAO_scripts_for_JDC.py \
- test004_ADAO_JDC_using_scripts.comm \
- test004_ADAO_scripts_for_JDC.py
-
-samplesdasalome_DATA = ${DATA_INST}
-
-EXTRA_DIST = \
- test001_ADAO_JDC_using_strings.comm \
- test002_ADAO_JDC_using_strings.comm \
- test003_ADAO_JDC_using_scripts.comm.in \
- test003_ADAO_scripts_for_JDC.py \
- test004_ADAO_JDC_using_scripts.comm.in \
- test004_ADAO_scripts_for_JDC.py
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Debug=0,
- Algorithm='Blue',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='0 0 0',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='1 1 1',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Debug=0,
- Algorithm='3DVAR',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='0 0 0',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='String',
- STRING='1 1 1',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='String',
- STRING='1 0 0 ; 0 1 0 ; 0 0 1',),),);
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Study_repertory='@prefix@/share/salome/adao_samples/daSalome',
- Debug=0,
- Algorithm='3DVAR',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test003_ADAO_scripts_for_JDC.py',),),);
+++ /dev/null
-#-*-coding:iso-8859-1-*-
-import numpy
-#
-# Definition of the Background as a vector
-# ----------------------------------------
-Background = [0, 0, 0]
-#
-# Definition of the Observation as a vector
-# -----------------------------------------
-Observation = "1 1 1"
-#
-# Definition of the Background Error covariance as a matrix
-# ---------------------------------------------------------
-BackgroundError = numpy.array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]])
-#
-# Definition of the Observation Error covariance as a matrix
-# ----------------------------------------------------------
-ObservationError = numpy.matrix("1 0 0 ; 0 1 0 ; 0 0 1")
-#
-# Definition of the Observation Operator as a matrix
-# --------------------------------------------------
-ObservationOperator = numpy.identity(3)
+++ /dev/null
-
-ASSIMILATION_STUDY(Study_name='Test',
- Study_repertory='@prefix@/share/salome/adao_samples/daSalome',
- Debug=0,
- Algorithm='Blue',
- Background=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- BackgroundError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- Observation=_F(INPUT_TYPE='Vector',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- ObservationError=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- ObservationOperator=_F(INPUT_TYPE='Matrix',
- data=_F(FROM='Script',
- SCRIPT_FILE='test004_ADAO_scripts_for_JDC.py',),),
- UserPostAnalysis=_F(FROM='String',
- STRING=
-"""import numpy
-Xa = ADD.get("Analysis").valueserie(-1)
-print
-print "Size of Analysis = %i"%len(Xa)
-print "Min, mean, max = %8.3f, %8.3f, %8.3f"%(min(Xa),numpy.mean(Xa),max(Xa))
-print
-""",),);
+++ /dev/null
-#-*-coding:iso-8859-1-*-
-import numpy
-#
-n = 100
-#
-# Definition of the Background as a vector
-# ----------------------------------------
-Background = n * [0]
-#
-# Definition of the Observation as a vector
-# -----------------------------------------
-Observation = n * "1 "
-Observation = Observation.strip()
-#
-# Definition of the Background Error covariance as a matrix
-# ---------------------------------------------------------
-BackgroundError = numpy.identity(n)
-#
-# Definition of the Observation Error covariance as a matrix
-# ----------------------------------------------------------
-ObservationError = numpy.identity(n)
-#
-# Definition of the Observation Operator as a matrix
-# --------------------------------------------------
-ObservationOperator = numpy.identity(n)
self.text_da = ""
self.text_da_status = False
self.logger = logging.getLogger('ADAO EFICAS GENERATOR')
- self.logger.setLevel(logging.DEBUG)
+ self.logger.setLevel(logging.INFO)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
formatter = logging.Formatter("%(name)s - %(levelname)s - %(message)s")
"""
clef=""
for i in obj.get_genealogie() :
- print obj
- print obj.get_genealogie()
clef=clef+"__"+i
self.dictMCVal[clef]=obj.valeur