X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling_Swig%2FMEDCouplingNumPyTest.py;h=6a622128587bb747640f3fa0981484d0a941c01d;hb=6da34015490b019ffb480bf92519ef268dc2de5b;hp=78dc02d1809640f9fbeb35e17b8c4fad6a81034c;hpb=9e11f73a1589a6b2eb0f9d9ca49a6182671280f2;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py b/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py index 78dc02d18..6a6221285 100644 --- a/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py @@ -1,10 +1,10 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2013 CEA/DEN, EDF R&D +# Copyright (C) 2007-2014 CEA/DEN, EDF R&D # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either -# version 2.1 of the License. +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,7 +17,6 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -# from MEDCoupling import * @@ -25,6 +24,7 @@ if MEDCouplingHasNumPyBindings(): from numpy import * pass +from platform import architecture from sys import getrefcount import os,gc,weakref,unittest @@ -39,6 +39,7 @@ class MEDCouplingNumPyTest(unittest.TestCase): a[:]=4 self.assertEqual(getrefcount(a),2) a=a.cumsum(dtype=int32) + a=array(a,dtype=int64) ; a=array(a,dtype=int32) self.assertEqual(getrefcount(a),2) d=DataArrayInt(a) d[:]=2