From b2f7c28326266b1921d79e8cd3b6db0f07ebf07b Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Fri, 21 Sep 2012 15:18:48 +0200 Subject: [PATCH] Minor corrections --- src/daComposant/daAlgorithms/3DVAR.py | 2 +- src/daEficas/configuration_ADAO.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daComposant/daAlgorithms/3DVAR.py b/src/daComposant/daAlgorithms/3DVAR.py index 4178c85..7d788a8 100644 --- a/src/daComposant/daAlgorithms/3DVAR.py +++ b/src/daComposant/daAlgorithms/3DVAR.py @@ -166,7 +166,7 @@ class ElementaryAlgorithm(BasicObjects.Algorithm): self.StoredVariables["CostFunctionJb"].store( Jb ) self.StoredVariables["CostFunctionJo"].store( Jo ) self.StoredVariables["CostFunctionJ" ].store( J ) - return float( J ) + return J # def GradientOfCostFunction(x): _X = numpy.asmatrix(x).flatten().T diff --git a/src/daEficas/configuration_ADAO.py b/src/daEficas/configuration_ADAO.py index dc1793b..fe8e30f 100644 --- a/src/daEficas/configuration_ADAO.py +++ b/src/daEficas/configuration_ADAO.py @@ -44,6 +44,7 @@ class CONFIG(configuration.CONFIG_BASE): self.rep_user = os.environ["HOME"] self.appli = appli self.code = appli.code + # self.lang = "fr" self.rep_ini = repIni self.rep_mat=" " # Compatbilite Aster self.savedir = self.rep_user -- 2.39.2