From dd210ec3d571cd331d09c07cbf1db3b347d60f34 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Tue, 21 May 2024 15:31:47 +0200 Subject: [PATCH] Minor documentation update and corrections --- doc/en/snippets/ModuleCompatibility.rst | 2 +- doc/fr/snippets/ModuleCompatibility.rst | 2 +- .../daAlgorithms/ModelicaCalibrationTask.py | 47 +++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 src/daComposant/daAlgorithms/ModelicaCalibrationTask.py diff --git a/doc/en/snippets/ModuleCompatibility.rst b/doc/en/snippets/ModuleCompatibility.rst index eb55df6..ce47ccf 100644 --- a/doc/en/snippets/ModuleCompatibility.rst +++ b/doc/en/snippets/ModuleCompatibility.rst @@ -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 diff --git a/doc/fr/snippets/ModuleCompatibility.rst b/doc/fr/snippets/ModuleCompatibility.rst index f646b6d..fe333b5 100644 --- a/doc/fr/snippets/ModuleCompatibility.rst +++ b/doc/fr/snippets/ModuleCompatibility.rst @@ -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 index 0000000..9e2f15a --- /dev/null +++ b/src/daComposant/daAlgorithms/ModelicaCalibrationTask.py @@ -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") -- 2.39.2