Salome HOME
MEDCoupling becomes medcoupling in tests.
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingBasicsTest3.py
index a5d5e16fc0ff0ae7e91bca580822fcdbd0da3a48..94ec01b7330aaee17f41549ed1769d0db4ce0a26 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: utf-8 -*-
-# Copyright (C) 2007-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2019  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
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-from MEDCoupling import *
+import sys
+if sys.platform == "win32":
+    from MEDCouplingCompat import *
+else:
+    from medcoupling import *
 import unittest
 from math import pi,e,sqrt,cos,sin
 from datetime import datetime
@@ -1967,14 +1971,14 @@ class MEDCouplingBasicsTest3(unittest.TestCase):
         res = d.normMaxPerComponent()
         self.assertAlmostEqual(-1.0, res[0],14)
         self.assertAlmostEqual(-1.0, res[1],14)
-        
+
         tab=[2.3,-1.2,6.3,-7.8,2.9,7.7,2.1,0.,3.6,-7.6]
         d.setValues(tab,5,2);
-        
+
         res = d.normMaxPerComponent()
         self.assertAlmostEqual(6.3, res[0],14)
         self.assertAlmostEqual(7.8, res[1],14)
-        
+
         f.setArray(d);
         f.checkConsistencyLight();
         #
@@ -1984,7 +1988,7 @@ class MEDCouplingBasicsTest3(unittest.TestCase):
         #
         self.assertAlmostEqual(6.3,f.normMax(0),14);
         self.assertAlmostEqual(7.8,f.normMax(1),14);
-        
+
         pass
 
     def testFindAndCorrectBadOriented3DExtrudedCells1(self):