]> SALOME platform Git repositories - modules/smesh.git/blobdiff - doc/salome/examples/quality_controls_ex08.py
Salome HOME
Switch to SSL mode for tests : naive approach
[modules/smesh.git] / doc / salome / examples / quality_controls_ex08.py
index 8a98910e579b0a674c7fba986614c9378ce36d91..8fc367ea026e45273e8587e209d4bf2d324b5e12 100644 (file)
@@ -2,7 +2,7 @@
 
 
 import salome
-salome.salome_init()
+salome.salome_init_without_session()
 import GEOM
 from salome.geom import geomBuilder
 geompy = geomBuilder.New()
@@ -25,7 +25,7 @@ mesh.AutomaticHexahedralization();
 
 # remove half of mesh faces from the smallest face
 faceFaces = mesh.GetSubMeshElementsId(face)
-faceToRemove = faceFaces[: len(faceFaces)/2]
+faceToRemove = faceFaces[: len(faceFaces) // 2]
 mesh.RemoveElements( faceToRemove )
 
 # make a group of volumes missing the removed faces