Salome HOME
Diagnostic and documentation update V9_11_BR V9_11_0 V9_11_0rc1
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 12 May 2023 18:45:32 +0000 (20:45 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Fri, 12 May 2023 18:45:32 +0000 (20:45 +0200)
doc/en/snippets/ModuleCompatibility.rst
doc/en/snippets/ModuleValidation.rst
doc/fr/snippets/ModuleCompatibility.rst
doc/fr/snippets/ModuleValidation.rst
src/daComposant/daCore/Aidsm.py
src/daComposant/daCore/PlatformInfo.py

index 747d7ea710da5e9c17ee38e81d631d0c2330cedb..a7f1831fc96d30f76dd07573d88e65162b14806f 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.10.10
+   Python,     3.6.5,    3.10.11
    Numpy,      1.14.3,    1.24.3
    Scipy,      0.19.1,    1.10.1
    MatplotLib, 2.2.2,    3.7.1
index 67d02e1826d96fe01d1a7dfd6976108ac551ab6f..0f39a12f58e0195ec68de8b865777e874547db2c 100644 (file)
@@ -1,8 +1,9 @@
 Each version of the ADAO module is validated within the framework of SALOME,
 and is therefore compatible with the environment implicitly defined by the
-|release| version of SALOME identical to that of ADAO. The validation versions
-are indicated here for information purposes only, knowing that, in case of
-doubt, the SALOME version sheet [Salome]_ is the official validation version.
+corresponding |release| version of SALOME identical to that of ADAO for the
+current document. The validation versions are indicated here for information
+purposes only, knowing that, in case of doubt, the SALOME version sheet
+[Salome]_ is the official validation version.
 
 .. csv-table:: Validation versions of support tools for ADAO
    :header: "Tool", "Version"
index 245acd9a4561c024e17e18cda90a920a8fc2e090..65e897fd4c9bbe3e10d3f7e812dcc3e2c9187fb2 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.10.10
+   Python,     3.6.5,    3.10.11
    Numpy,      1.14.3,    1.24.3
    Scipy,      0.19.1,    1.10.1
    MatplotLib, 2.2.2,    3.7.1
index 1fffbc3a13bed66d01a176bd46c3794d38f8edaa..1e46ca8471dfa2e72e6fd32bd1a2a55f478b6258 100644 (file)
@@ -1,9 +1,9 @@
 Chaque version du module ADAO est validée dans le cadre de SALOME, et elle est
 donc compatible avec l'environnement implicitement défini par la version
-|release| de SALOME identique à celle d'ADAO. Les versions de validation sont
-indiquées ici pour information uniquement sachant que, en cas de doute, c'est
-la fiche de version de SALOME [Salome]_ qui fait foi pour les versions
-officielles de validation.
+correspondante |release| de SALOME identique à celle d'ADAO pour le présent
+document. Les versions de validation sont indiquées ici pour information
+uniquement sachant que, en cas de doute, c'est la fiche de version de SALOME
+[Salome]_ qui indique les versions officielles de validation.
 
 .. csv-table:: Versions de validation des outils support pour ADAO
    :header: "Outil", "Version"
index 57885e0dc454524d8c927fe7041a683c7c1e8752..7e5d91315700a3f10d042c76f04039169fa685de 100644 (file)
@@ -851,6 +851,10 @@ class Aidsm(object):
         msg  = self.dump(None, "SimpleReportInPlainTxt")
         return msg
 
+    def sysinfo(self, title=""):
+        msg = PlatformInfo.PlatformInfo().getAllInformation("  ", title)
+        return msg
+
     def prepare_to_pickle(self):
         "Retire les variables non pickelisables, avec recopie efficace"
         if self.__adaoObject['AlgorithmParameters'] is not None:
index 72795096d324e23d1926cbf232b126d82f2139f8..2c0e4bf4131465ff4798bcfd50a89d75f5772ad6 100644 (file)
@@ -137,6 +137,28 @@ class PlatformInfo(object):
         __msg += "\n%s%30s : %s" %(__prefix,"os.path.expanduser",os.path.expanduser('~'))
         return __msg
     #
+    def getApplicationInformation(self, __prefix=""):
+        __msg  = ""
+        __msg += "\n%s%30s : %s" %(__prefix,"ADAO version",self.getVersion())
+        __msg += "\n"
+        __msg += "\n%s%30s : %s" %(__prefix,"Python version",self.getPythonVersion())
+        __msg += "\n%s%30s : %s" %(__prefix,"Numpy version",self.getNumpyVersion())
+        __msg += "\n%s%30s : %s" %(__prefix,"Scipy version",self.getScipyVersion())
+        __msg += "\n%s%30s : %s" %(__prefix,"NLopt version",self.getNloptVersion())
+        __msg += "\n%s%30s : %s" %(__prefix,"MatplotLib version",self.getMatplotlibVersion())
+        __msg += "\n%s%30s : %s" %(__prefix,"GnuplotPy version",self.getGnuplotVersion())
+        __msg += "\n%s%30s : %s" %(__prefix,"Sphinx version",self.getSphinxVersion())
+        return __msg
+    #
+    def getAllInformation(self, __prefix="", __title="Whole system information"):
+        __msg  = ""
+        if len(__title)>0:
+            __msg += "\n"+"="*80+"\n"+__title+"\n"+"="*80+"\n"
+        __msg += self.getSystemInformation(__prefix)
+        __msg += "\n"
+        __msg += self.getApplicationInformation(__prefix)
+        return __msg
+    #
     def getPythonVersion(self):
         "Retourne la version de python disponible"
         return ".".join([str(x) for x in sys.version_info[0:3]]) # map(str,sys.version_info[0:3]))