]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Compatibility fix for algorithm output variables clarity
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 24 Mar 2019 13:56:05 +0000 (14:56 +0100)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Sun, 24 Mar 2019 13:56:18 +0000 (14:56 +0100)
13 files changed:
src/daComposant/daAlgorithms/3DVAR.py
src/daComposant/daAlgorithms/4DVAR.py
src/daComposant/daAlgorithms/Blue.py
src/daComposant/daAlgorithms/DerivativeFreeOptimization.py
src/daComposant/daAlgorithms/DifferentialEvolution.py
src/daComposant/daAlgorithms/EnsembleBlue.py
src/daComposant/daAlgorithms/ExtendedBlue.py
src/daComposant/daAlgorithms/LinearLeastSquares.py
src/daComposant/daAlgorithms/NonLinearLeastSquares.py
src/daComposant/daAlgorithms/ParticleSwarmOptimization.py
src/daComposant/daAlgorithms/QuantileRegression.py
src/daComposant/daAlgorithms/TabuSearch.py
src/daComposant/daCore/Aidsm.py

index 597352ee7fc625de7e54dac99a9a08c63a728699..7905bdc6d16a02083135a1daa442ad1d7b1939f7 100644 (file)
@@ -75,6 +75,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "APosterioriCorrelations",
                 "APosterioriCovariance",
                 "APosterioriStandardDeviations",
index 1e2fc5b2165ff7de7ad8f968b4b48dd21aa005ea..527091c82e4f0391a12404a8277eaa7b8133df7e 100644 (file)
@@ -89,6 +89,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "BMA",
                 "CostFunctionJ",
                 "CostFunctionJAtCurrentOptimum",
index f93ace8d941dbefa06ea360060ea3c88466d91b3..8fe2a5500c8c182f51c33f2a3b3de66970c7afe0 100644 (file)
@@ -40,6 +40,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "APosterioriCorrelations",
                 "APosterioriCovariance",
                 "APosterioriStandardDeviations",
index 3f2e67eddb50d2c83a9423a04558dace05df971b..62c4c8bf3228cfc2d46e3b89aabb1ac90f63e6d1 100644 (file)
@@ -84,6 +84,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "BMA",
                 "CostFunctionJ",
                 "CostFunctionJb",
index 5c096730cc03891a9c7448a6940133552451f70f..6605d3844f5c63984f75d8156062cb91a0d35482 100644 (file)
@@ -108,6 +108,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "BMA",
                 "CostFunctionJ",
                 "CostFunctionJb",
index 5bc3cdc9722bdae76675c563a87829b2c432f26a..531d7316cc59ef3e3f807273d5e0f7e63add847c 100644 (file)
@@ -40,6 +40,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "CurrentState",
                 "Innovation",
                 "SimulatedObservationAtBackground",
index 1af6a094fcb6fcd558cc8472d869dbe750c5f728..d76a655fa7b35350522bdf233508e33dc3e403e5 100644 (file)
@@ -40,6 +40,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "APosterioriCorrelations",
                 "APosterioriCovariance",
                 "APosterioriStandardDeviations",
index 15798c5014d05dc6a7212cbcddd80fe036abac51..0a7bfe10c8576f1f8a34d7a263859f89bcdd0640 100644 (file)
@@ -40,6 +40,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "CostFunctionJ",
                 "CostFunctionJAtCurrentOptimum",
                 "CostFunctionJb",
index acd77da3063ce763f592cbc03426d3b022609f06..e3d2869e3aa1e35b7a3cd60c0fd729958fe12b20 100644 (file)
@@ -75,6 +75,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "BMA",
                 "CostFunctionJ",
                 "CostFunctionJAtCurrentOptimum",
index 0f74eb73dc6cd6017697cab859a80a6c41023f9f..1fd3fd9fcc74706a16663d3a267b3b791c4d54d2 100644 (file)
@@ -92,6 +92,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "BMA",
                 "CurrentState",
                 "CostFunctionJ",
index 0bc464860d9bec47cfb91c6d5be5e01caa083524..15e870572cfd038aaef9c959f67789d31a607f12 100644 (file)
@@ -67,7 +67,20 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             default  = [],
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
-            listval  = ["BMA", "OMA", "OMB", "CurrentState", "CostFunctionJ", "CostFunctionJb", "CostFunctionJo", "Innovation", "SimulatedObservationAtBackground", "SimulatedObservationAtCurrentState", "SimulatedObservationAtOptimum"]
+            listval  = [
+                "Analysis",
+                "BMA",
+                "CostFunctionJ",
+                "CostFunctionJb",
+                "CostFunctionJo",
+                "CurrentState",
+                "Innovation",
+                "OMA",
+                "OMB",
+                "SimulatedObservationAtBackground",
+                "SimulatedObservationAtCurrentState",
+                "SimulatedObservationAtOptimum",
+                ]
             )
         self.defineRequiredParameter( # Pas de type
             name     = "Bounds",
index 0287a52f643783c9ba3fd7d67d8859b6ae6d6016..0ade71e363aff651ece77c48b54a8dc56986b6b5 100644 (file)
@@ -104,14 +104,15 @@ class ElementaryAlgorithm(BasicObjects.Algorithm):
             typecast = tuple,
             message  = "Liste de calculs supplémentaires à stocker et/ou effectuer",
             listval  = [
+                "Analysis",
                 "BMA",
-                "OMA",
-                "OMB",
                 "CurrentState",
                 "CostFunctionJ",
                 "CostFunctionJb",
                 "CostFunctionJo",
                 "Innovation",
+                "OMA",
+                "OMB",
                 "SimulatedObservationAtBackground",
                 "SimulatedObservationAtCurrentState",
                 "SimulatedObservationAtOptimum",
index 7b8f5da885ad416fda8c339ab38a89d0daa3161a..75058f6247a1082ff7d0a3dbbb6e9d1be8855614 100644 (file)
@@ -634,9 +634,10 @@ class Aidsm(object):
             if os.path.isdir(trypath):
                 for fname in os.listdir(trypath):
                     if os.path.isfile(os.path.join(trypath,fname)):
+                        root, ext = os.path.splitext(fname)
+                        if ext != ".py": continue
                         fc = open(os.path.join(trypath,fname)).read()
                         iselal = bool("class ElementaryAlgorithm" in fc)
-                        root, ext = os.path.splitext(fname)
                         if iselal and ext == '.py' and root != '__init__':
                             files.append(root)
         files.sort()