From: Jean-Philippe ARGAUD Date: Thu, 5 Apr 2012 21:38:58 +0000 (+0200) Subject: Improving constructor for ensemble background X-Git-Tag: V6_5_0~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=597f78f62e4b94567293e75d8fab937a5cb2561d;p=modules%2Fadao.git Improving constructor for ensemble background --- 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: