]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
update test 6
authorBernard Sécherà <bernard.secher@cea.fr>
Thu, 4 Feb 2021 13:10:15 +0000 (14:10 +0100)
committerBernard Sécherà <bernard.secher@cea.fr>
Thu, 4 Feb 2021 13:10:15 +0000 (14:10 +0100)
CDMATH/tests/swig/BoySurface/VTKnewReader.py

index e6e96cda82dd5ba20d8a901e3c479b148c5a88c8..74ebdebd36744c6f11fef8d3752c7195af539cf0 100644 (file)
@@ -157,14 +157,14 @@ class VTURawReader:
         if meshDim == -1:\r
             raise Exception("Could not find a valid cell type in the mesh !")\r
         if i > 0:\r
-            print "WARNING: some invalid/incompatible cell types were detected - trying to have them as polygons ..."\r
+            print("WARNING: some invalid/incompatible cell types were detected - trying to have them as polygons ...")\r
         for typ in types2:\r
             if self.VTKTypes_2_MC[typ] != -1:\r
                 md=MEDCouplingMesh.GetDimensionOfGeometricType(self.VTKTypes_2_MC[typ])\r
                 if md!=meshDim:\r
                     raise Exception("MultiLevel umeshes not managed yet !")\r
             else:\r
-                print "WARNING: invalid/incompatible cell type detected: VTK type number: %d" % typ\r
+                print("WARNING: invalid/incompatible cell type detected: VTK type number: %d" % typ)\r
         m=MEDCouplingUMesh("mesh",meshDim)\r
         # coordinates\r
         coo=np.memmap(fd,dtype=rd._type_coords,mode='r',offset=ref+rd._off_coords,shape=(rd._nb_nodes*rd._space_dim,))\r
@@ -273,7 +273,7 @@ class VTURawReader:
                     if str(attrs["encoding"])=="raw":\r
                         raise VTURawReader.NormalException(self._loc.getLineNumber())\r
                     else:\r
-                        print attrs["encoding"]\r
+                        print(attrs["encoding"])\r
                         raise VTURawReader.NotRawVTUException("The file is not a raw VTU ! Change reader !")\r
                 pass\r
             pass\r