]> SALOME platform Git repositories - modules/adao.git/commitdiff
Salome HOME
Improving constructor for ensemble background
authorJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Thu, 5 Apr 2012 21:38:58 +0000 (23:38 +0200)
committerJean-Philippe ARGAUD <jean-philippe.argaud@edf.fr>
Thu, 5 Apr 2012 21:38:58 +0000 (23:38 +0200)
src/daComposant/daCore/AssimilationStudy.py

index 3a55a047dc5d11820b4dfba82f478a2e98a22c3a..58d48b6476b9e44c2c5f9b50f41d34c23e18ec15 100644 (file)
@@ -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: