Salome HOME
8fed22fc2190005575b3af5250183c9567dd8403
[modules/adao.git] / examples / daSkeletons / External_data_definition_by_scripts / Script_BackgroundError_B.py
1 #-*-coding:iso-8859-1-*-
2 #
3 #  Copyright (C) 2008-2015 EDF R&D
4 #
5 #  This library is free software; you can redistribute it and/or
6 #  modify it under the terms of the GNU Lesser General Public
7 #  License as published by the Free Software Foundation; either
8 #  version 2.1 of the License.
9 #
10 #  This library is distributed in the hope that it will be useful,
11 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 #  Lesser General Public License for more details.
14 #
15 #  You should have received a copy of the GNU Lesser General Public
16 #  License along with this library; if not, write to the Free Software
17 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
18 #
19 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #
21 #  Author: Jean-Philippe Argaud, jean-philippe.argaud@edf.fr, EDF R&D
22
23 __doc__ = """
24     ADAO skeleton case, for wide script usage in case definition
25     ------------------------------------------------------------
26
27     Script defining the BackgroundError
28     """
29 __author__ = "Jean-Philippe ARGAUD"
30 #
31 # ==============================================================================
32 #
33 import sys, os ; sys.path.insert(0,os.path.dirname(os.path.abspath(__file__)))
34 from Physical_data_and_covariance_matrices import True_state, Simple_Matrix
35 #
36 xt, names = True_state()
37 #
38 B = 0.1 * Simple_Matrix( size = len(xt) )
39 #
40 # Creating the required ADAO variable
41 # -----------------------------------
42 BackgroundError = B
43 #
44 # ==============================================================================