From afe68a5fb4df0e83630373119ab4c609580bde0c Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Thu, 30 Apr 2020 20:47:53 +0200 Subject: [PATCH] Minor documentation corrections --- doc/en/scripts/simple_3DVAR.py | 7 +++++-- doc/fr/scripts/simple_3DVAR.py | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/doc/en/scripts/simple_3DVAR.py b/doc/en/scripts/simple_3DVAR.py index 9383adb..cf9a3da 100644 --- a/doc/en/scripts/simple_3DVAR.py +++ b/doc/en/scripts/simple_3DVAR.py @@ -12,14 +12,17 @@ def QuadFunction( coefficients ): y_points.append( a*x*x + b*x + c ) return array(y_points) # +Xb = array([1., 1., 1.]) +Yobs = array([57, 2, 3, 17, 192]) +# print("Iterative resolution of the calibration problem") print("-----------------------.-----------------------") print("") from adao import adaoBuilder case = adaoBuilder.New('') -case.setBackground( Vector = array([1., 1., 1.]), Stored=True ) +case.setBackground( Vector = Xb, Stored=True ) case.setBackgroundError( ScalarSparseMatrix = 1.e6 ) -case.setObservation( Vector=array([57, 2, 3, 17, 192]), Stored=True ) +case.setObservation( Vector = Yobs, Stored=True ) case.setObservationError( ScalarSparseMatrix = 1. ) case.setObservationOperator( OneFunction = QuadFunction ) case.setAlgorithmParameters( diff --git a/doc/fr/scripts/simple_3DVAR.py b/doc/fr/scripts/simple_3DVAR.py index 553f9d3..9fbb993 100644 --- a/doc/fr/scripts/simple_3DVAR.py +++ b/doc/fr/scripts/simple_3DVAR.py @@ -12,14 +12,17 @@ def QuadFunction( coefficients ): y_points.append( a*x*x + b*x + c ) return array(y_points) # +Xb = array([1., 1., 1.]) +Yobs = array([57, 2, 3, 17, 192]) +# print("Résolution itérative du problème de calibration") print("-----------------------.-----------------------") print("") from adao import adaoBuilder case = adaoBuilder.New('') -case.setBackground( Vector = array([1., 1., 1.]), Stored=True ) +case.setBackground( Vector = Xb, Stored=True ) case.setBackgroundError( ScalarSparseMatrix = 1.e6 ) -case.setObservation( Vector=array([57, 2, 3, 17, 192]), Stored=True ) +case.setObservation( Vector = Yobs, Stored=True ) case.setObservationError( ScalarSparseMatrix = 1. ) case.setObservationOperator( OneFunction = QuadFunction ) case.setAlgorithmParameters( -- 2.39.2