Salome HOME
Updated copyright comment
[modules/hexablock.git] / doc / pyplots / test_make_elmts_transform.py
index 3b18eff3f1132352336a97e7fdd68d7cfeccf9a2..3d4e6baa94e135e2daf42a1f44f67570a9a8d74b 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright (C) 2009-2012  CEA/DEN, EDF R&D
+# Copyright (C) 2009-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
 # 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
@@ -24,7 +24,7 @@ import GEOM
 import SALOMEDS
 import hexablock
 
-print "test make elements by transforming elements..."
+print("test make elements by transforming elements...")
 doc = hexablock.addDocument()
 
 size_x = 1
@@ -39,20 +39,20 @@ grid = doc.makeCartesian1(orig, dirVr, size_x, size_y, size_z, 0, 0,
 orig.setScalar(2)
 
 file_name = os.path.join(os.environ['TMP'], 'transfo0.vtk')
-doc.saveVtk(file_name)
+####  doc.saveVtk(file_name)
 
 devant = doc.addVector(5, 0, 0)
 grid2 = doc.makeTranslation(grid, devant)
 
 file_name = os.path.join(os.environ['TMP'], 'transfo_translation.vtk')
-doc.saveVtk(file_name)
+####  doc.saveVtk(file_name)
 
 grid4 = doc.makeRotation(grid2, orig, dirVr, 45)
 
 file_name = os.path.join(os.environ['TMP'], 'transfo_rotation.vtk')
-doc.saveVtk(file_name)
+####  doc.saveVtk(file_name)
 
 
-print "...test make elements by transforming elements OK"
+print("...test make elements by transforming elements OK")