From b2eb099ba6cc40680fcd9a5e52644eb44f861955 Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Thu, 3 May 2012 12:11:50 +0200 Subject: [PATCH] Correcting Tangent function call in example/skeleton/doc --- doc/examples.rst | 2 +- .../External_data_definition_by_scripts/Script_Background_xb.py | 1 + .../Script_ObservationOperator_H.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/examples.rst b/doc/examples.rst index a79705c..0210cbf 100644 --- a/doc/examples.rst +++ b/doc/examples.rst @@ -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") diff --git a/examples/daSkeletons/External_data_definition_by_scripts/Script_Background_xb.py b/examples/daSkeletons/External_data_definition_by_scripts/Script_Background_xb.py index 90d992a..0c7b603 100644 --- a/examples/daSkeletons/External_data_definition_by_scripts/Script_Background_xb.py +++ b/examples/daSkeletons/External_data_definition_by_scripts/Script_Background_xb.py @@ -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() # diff --git a/examples/daSkeletons/External_data_definition_by_scripts/Script_ObservationOperator_H.py b/examples/daSkeletons/External_data_definition_by_scripts/Script_ObservationOperator_H.py index 2816eb2..da41747 100644 --- a/examples/daSkeletons/External_data_definition_by_scripts/Script_ObservationOperator_H.py +++ b/examples/daSkeletons/External_data_definition_by_scripts/Script_ObservationOperator_H.py @@ -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") -- 2.39.2