Salome HOME
Minor documentation update and corrections
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 21 May 2024 13:31:47 +0000 (15:31 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Tue, 21 May 2024 13:31:47 +0000 (15:31 +0200)
doc/en/snippets/ModuleCompatibility.rst
doc/fr/snippets/ModuleCompatibility.rst
src/daComposant/daAlgorithms/ModelicaCalibrationTask.py [new file with mode: 0644]

index eb55df6fa45defe712f09b5c5d6689579e791e24..ce47ccfcd91c86a22e7c6f04364975d41453693a 100644 (file)
@@ -14,7 +14,7 @@ versions within the range described below.
    :header: "Tool", "Minimal version", "Reached version"
    :widths: 20, 10, 10
 
-   Python,     3.6.5,    3.12.2
+   Python,     3.6.5,    3.12.3
    Numpy,      1.14.3,    1.26.4
    Scipy,      0.19.1,    1.13.0
    MatplotLib, 2.2.2,    3.8.4
index f646b6dc5671b54ca4b94d1fa6d2fc116231c437..fe333b5d53c4643eee45e6b65c725bf9d3c4f88e 100644 (file)
@@ -15,7 +15,7 @@ l'étendue décrite ci-dessous.
    :header: "Outil", "Version minimale", "Version atteinte"
    :widths: 20, 10, 10
 
-   Python,     3.6.5,    3.12.2
+   Python,     3.6.5,    3.12.3
    Numpy,      1.14.3,    1.26.4
    Scipy,      0.19.1,    1.13.0
    MatplotLib, 2.2.2,    3.8.4
diff --git a/src/daComposant/daAlgorithms/ModelicaCalibrationTask.py b/src/daComposant/daAlgorithms/ModelicaCalibrationTask.py
new file mode 100644 (file)
index 0000000..9e2f15a
--- /dev/null
@@ -0,0 +1,47 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2008-2024 EDF R&D
+#
+# 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.
+#
+# 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
+#
+# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+#
+# Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
+
+from daCore import BasicObjects
+
+# ==============================================================================
+class ElementaryAlgorithm(BasicObjects.Algorithm):
+    def __init__(self):
+        BasicObjects.Algorithm.__init__(self, "MODELICACALIBRATIONTASK")
+        self.requireInputArguments(
+            mandatory= (),
+            optional = (),
+        )
+        self.setAttributes(
+            tags=(),
+            features=(),
+        )
+
+    def run(self, Xb=None, Y=None, U=None, HO=None, EM=None, CM=None, R=None, B=None, Q=None, Parameters=None):
+        self._pre_run(Parameters, Xb, Y, U, HO, EM, CM, R, B, Q)
+        #
+        #
+        self._post_run(HO, EM)
+        return 0
+
+# ==============================================================================
+if __name__ == "__main__":
+    print("\n AUTODIAGNOSTIC\n")