# -*- coding: utf-8 -*-
#
-# Copyright (C) 2008-2017 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
"""
Normalized interface for ADAO scripting (full version API)
+
+ The main interface to use is an object "New" build from "adaoBuilder".
+
+ Usage by an example:
+
+ from numpy import array, matrix
+ from adao import adaoBuilder
+ case = adaoBuilder.New()
+ case.set( 'AlgorithmParameters', Algorithm='3DVAR' )
+ case.set( 'Background', Vector=[0, 1, 2] )
+ case.set( 'BackgroundError', ScalarSparseMatrix=1.0 )
+ case.set( 'Observation', Vector=array([0.5, 1.5, 2.5]) )
+ case.set( 'ObservationError', DiagonalSparseMatrix='1 1 1' )
+ case.set( 'ObservationOperator', Matrix='1 0 0;0 2 0;0 0 3' )
+ case.execute()
+ #
+ print(case.get("Analysis")[-1])
+
+ Documentation
+
+ See associated up-to-date documentation for details of commands.
"""
__author__ = "Jean-Philippe ARGAUD"
__all__ = ["New"]
-from daCore.Aidsm import Aidsm
+from daCore.Aidsm import Aidsm as _Aidsm
+from daCore.version import name, version, year, date
# ==============================================================================
-class New(Aidsm):
+class New(_Aidsm):
"""
Generic ADAO TUI builder
"""
def __init__(self, name = ""):
- Aidsm.__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__":