Salome HOME
Unwanted trailing spaces ...
[tools/medcoupling.git] / src / MEDLoader / Swig / MEDLoaderCouplingTrainingSession.py
index 2b036cbfb18f89d0331076480bd2087d88b5b395..4538c21c9056896aa3a358833ea42d9853e64a10 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2016  CEA/DEN, EDF R&D
+# Copyright (C) 2007-2020  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
 from MEDLoader import *
 from MEDCouplingRemapper import *
 import math, os
+import tempfile,os,shutil
+
+zeDir = tempfile.mkdtemp()
+os.chdir(zeDir)
 
 d=DataArrayDouble.New(6,2)
 d[:,0]=3.
@@ -596,3 +600,4 @@ omega=sum(angle2)/(ts[-1][2]-ts[0][2])
 print(sum(angle2)) ; assert abs(sum(angle2)-1.12)<1e-2
 print("Au pdt (%d,%d) a %r s le couple est de : %r N.m, power/omega=%r N.m"%(ts[2][0],ts[2][1],ts[2][2],zeTorque[2],power/omega))
 assert abs(power/omega-0.37)<1e-2
+shutil.rmtree(zeDir)