From 597f78f62e4b94567293e75d8fab937a5cb2561d Mon Sep 17 00:00:00 2001 From: Jean-Philippe ARGAUD Date: Thu, 5 Apr 2012 23:38:58 +0200 Subject: [PATCH] Improving constructor for ensemble background --- src/daComposant/daCore/AssimilationStudy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daComposant/daCore/AssimilationStudy.py b/src/daComposant/daCore/AssimilationStudy.py index 3a55a04..58d48b6 100644 --- a/src/daComposant/daCore/AssimilationStudy.py +++ b/src/daComposant/daCore/AssimilationStudy.py @@ -123,7 +123,7 @@ class AssimilationStudy: if type(asPersistentVector) in [type([]),type(()),type(numpy.array([])),type(numpy.matrix([]))]: self.__Xb = Persistence.OneVector("Background", basetype=numpy.matrix) for member in asPersistentVector: - self.__Xb.store( numpy.matrix( numpy.asarray(member).flatten(), numpy.float ).T ) + self.__Xb.store( numpy.matrix( numpy.asmatrix(member).A1, numpy.float ).T ) else: self.__Xb = asPersistentVector else: -- 2.39.2