]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Correcting Tangent function call in example/skeleton/doc
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Thu, 3 May 2012 10:11:50 +0000 (12:11 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Thu, 3 May 2012 10:11:50 +0000 (12:11 +0200)
doc/examples.rst
examples/daSkeletons/External_data_definition_by_scripts/Script_Background_xb.py
examples/daSkeletons/External_data_definition_by_scripts/Script_ObservationOperator_H.py

index a79705c98824c03152a57b556be9a0713d7f3242..0210cbf9238836c0628d648037e44f787bbe7f2e 100644 (file)
@@ -557,7 +557,7 @@ The following example Python script file named
     if method == "Tangent":
         logging.info("ComputationFunctionNode: Tangent computation")
         Xcurrent = computation["inputValues"][0][0][0]
-        data = FunctionH(numpy.matrix( Xcurrent ).T)
+        data = TangentH(numpy.matrix( Xcurrent ).T)
     #
     if method == "Adjoint":
         logging.info("ComputationFunctionNode: Adjoint computation")
index 90d992ac362b68743c72660288872c8bad42e470..0c7b603b15fb44a4851642f3f3a7c330dc44e3f0 100644 (file)
@@ -33,6 +33,7 @@ __author__ = "Jean-Philippe ARGAUD"
 import sys, os ; sys.path.insert(0,os.path.dirname(os.path.abspath(__file__)))
 from Physical_data_and_covariance_matrices import True_state
 import numpy
+numpy.random.seed(1000)
 #
 xt, names = True_state()
 #
index 2816eb28434317d8d50c3e4ef9dcbd4187e00824..da41747cf582d6a989933b5a5ef0556f19371696 100644 (file)
@@ -66,7 +66,7 @@ if method == "Direct":
 if method == "Tangent":
     logging.info("ComputationFunctionNode: Tangent computation")
     Xcurrent = computation["inputValues"][0][0][0]
-    data = FunctionH(numpy.matrix( Xcurrent ).T)
+    data = TangentH(numpy.matrix( Xcurrent ).T)
 #
 if method == "Adjoint":
     logging.info("ComputationFunctionNode: Adjoint computation")