Salome HOME
Improvement of algorithm and multifonction use
[modules/adao.git] / src / daSalome / adaoBuilder.py
index 7e3f684fdee40c24046fecaf58fded588ca82753..70d87ad0faf2f6b4f99077f3923c973f17e27f92 100644 (file)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2008-2018 EDF R&D
+# Copyright (C) 2008-2021 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
@@ -28,7 +28,7 @@
     Usage by an example:
 
         from numpy import array, matrix
-        import adaoBuilder
+        from adao import adaoBuilder
         case = adaoBuilder.New()
         case.set( 'AlgorithmParameters', Algorithm='3DVAR' )
         case.set( 'Background',          Vector=[0, 1, 2] )
@@ -48,6 +48,7 @@ __author__ = "Jean-Philippe ARGAUD"
 __all__ = ["New"]
 
 from daCore.Aidsm import Aidsm as _Aidsm
+from daCore.version import name, version, year, date
 
 # ==============================================================================
 class New(_Aidsm):
@@ -57,6 +58,14 @@ class New(_Aidsm):
     def __init__(self, name = ""):
         _Aidsm.__init__(self, name)
 
+class Gui(object):
+    """
+    Generic ADAO GUI builder
+    """
+    def __init__(self):
+        from daCore.Interfaces import EficasGUI
+        EficasGUI().gui()
+
 # ==============================================================================
 if __name__ == "__main__":
     print('\n AUTODIAGNOSTIC \n')