X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FMEDCoupling_Swig%2FMEDCouplingNumPyTest.py;h=8f500a2e7d0aeb21e8945e36b1a24d21b1a8c2d8;hb=1b746b38f3cdeae6654a9501f37fde5e56e59288;hp=d784c03c84c636cbc7c3320d7c3f19ea36949be3;hpb=214cb0a3e23e084616ebf247642bfbc43811e26d;p=tools%2Fmedcoupling.git diff --git a/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py b/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py index d784c03c8..8f500a2e7 100644 --- a/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py +++ b/src/MEDCoupling_Swig/MEDCouplingNumPyTest.py @@ -1,5 +1,5 @@ # -*- coding: iso-8859-1 -*- -# Copyright (C) 2007-2023 CEA/DEN, EDF R&D +# Copyright (C) 2007-2024 CEA, EDF # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -823,6 +823,7 @@ class MEDCouplingNumPyTest(unittest.TestCase): a=zeros(20,dtype=float32) b = a[::-1] self.assertRaises(InterpKernelException,DataArrayFloat.New,b) # b is not contiguous in memory + DataArrayFloat.New( ravel(b) ) pass @unittest.skipUnless(MEDCouplingHasNumPyBindings(),"requires numpy")