Salome HOME
appying 2to3
authorPaul RASCLE <paul.rascle@edf.fr>
Mon, 20 May 2019 07:47:53 +0000 (09:47 +0200)
committerPaul RASCLE <paul.rascle@edf.fr>
Mon, 20 May 2019 07:47:53 +0000 (09:47 +0200)
22 files changed:
check_copyright.py
doc/salome/examples/h008_simpleCase.py
doc/salome/examples/h009_normalCaseManual.py
doc/salome/examples/h010_normalCaseManualMesh.py
doc/salome/examples/h011_normalCaseManualInterpolZ.py
doc/salome/examples/h012_caseDigueManual.py
doc/salome/examples/h013_caseDigueManualMesh.py
doc/salome/examples/h014_caseDigueManualInterpolZ.py
doc/salome/examples/h015_normalCaseManualTelemac.py
doc/salome/examples/h016_pilesPontManualMesh.py
doc/salome/examples/h017_interpolationLineaire.py
doc/salome/examples/h018_streamInterpolation.py
doc/salome/examples/h019_normalCaseManualInterpolZStrickler.py
doc/salome/tutorial/local/conf.py
squish.suite/shared/scripts/common.py
squish.suite/suit_polylines.suite/tst_case1/test.py
src/HYDROTools/controls.py
src/HYDROTools/interpolS.py
src/HYDROTools/interpolZ.py
src/HYDRO_tests/reference_data/linux/lc_dump.py
src/HYDRO_tests/reference_data/linux/st_dump.py
src/HYDRO_tests/reference_data/win32/lc_dump.py

index 49775fe57f120ff9a84d631a4902f876e2530f48..c7781f45e606fec7eedecd5df2baa76b9a3a545c 100644 (file)
@@ -13,20 +13,20 @@ def check_file( theFile ):
   #print 'Checking %s...' % theFile
   aLines = open( theFile, 'r' ).readlines()
   if( len( aLines )==0 ):
-    print 'Empty file: ', theFile
+    print('Empty file: ', theFile)
     return False
 
   aFirstLine = aLines[0][:-1]
   aSecondLine = aLines[1][:-1]
   if( aFirstLine != theCopyright_line1 or aSecondLine != theCopyright_line2 ):
-    print 'Incorrect copyright in the', theFile
+    print('Incorrect copyright in the', theFile)
  
 
 def check_folder( theFolder ):
   aFiles = os.listdir( theFolder ); 
-  aHeaders = filter( lambda x: x.endswith('.h'), aFiles );
-  aSources = filter( lambda x: x.endswith('.cxx'), aFiles );
-  aSIPs = filter( lambda x: x.endswith('.sip'), aFiles );
+  aHeaders = [x for x in aFiles if x.endswith('.h')];
+  aSources = [x for x in aFiles if x.endswith('.cxx')];
+  aSIPs = [x for x in aFiles if x.endswith('.sip')];
   for aHeader in aHeaders:
     check_file( theFolder + '/' + aHeader )
   for aSource in aSources:
index c714049ea03c659259bb0db4dca345bd3ec0a5b5..2516d228dd99747a7dfeef16372af90b3595dfff 100644 (file)
@@ -78,10 +78,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", Case_1_entry
+print("Entry:", Case_1_entry)
 Case_1_geom = salome.IDToObject( str( Case_1_entry ) )
-print "Geom shape:", Case_1_geom
-print "Geom shape name:", Case_1_geom.GetName()
+print("Geom shape:", Case_1_geom)
+print("Geom shape name:", Case_1_geom.GetName())
 
 #controlGeomProps(geompy, Case_1_geom, 1218.7373973, 49697.2117918)
 controlGeomProps(geompy, Case_1_geom, 1218.7373973, 49578.1516521)
index 7a2ef88c5e53e0cbc43bb07aa1602cf7afb67ac7..e87547a6463bffb9db26bfd9c7339907e6eb39b2 100644 (file)
@@ -322,10 +322,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 [garonne_litMineur,garonne_riveDroite,garonne_riveGauche] = geompy.SubShapeAll(HYDRO_garonne_1, geompy.ShapeType["FACE"])
 
@@ -336,14 +336,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -351,7 +351,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -360,20 +360,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
index b01151919091e8f58deb913ad3fcb6013db82c72..0be82903ce790569b14532a2fa16fbcd68b9a5e7 100644 (file)
@@ -321,10 +321,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 # --- manual definition: geometrical faces
 
@@ -337,14 +337,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -352,7 +352,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -361,20 +361,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -463,7 +463,7 @@ aval_2 = garonne_1.GroupOnGeom(aval,'aval',SMESH.NODE)
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
index 6f71f1a47f6ae78afc048fb1fb65b26aa3e45f41..74701e82384b564d621044f578011317e9ec2d66 100644 (file)
@@ -321,10 +321,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 # --- manual definition: geometrical faces
 
@@ -337,14 +337,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -352,7 +352,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -361,20 +361,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -463,7 +463,7 @@ aval_2 = garonne_1.GroupOnGeom(aval,'aval',SMESH.NODE)
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
index 611c48fe2df4b6af7e26861d6622683e44217c41..873594afce139a4f0248d80732583585fe1dd2d4 100644 (file)
@@ -402,10 +402,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 [garonne_riveGauche,garonne_digue,garonne_litMineur,garonne_riveDroite] = geompy.ExtractShapes(HYDRO_garonne_1, geompy.ShapeType["FACE"], True)
 
@@ -417,14 +417,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -432,7 +432,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -441,20 +441,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
index 7a306f068b316c32bdab64169cdafafdcf04c7f0..48f1e6920c26413e177e76067d91f6ed657ade24 100644 (file)
@@ -402,10 +402,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 [garonne_riveGauche,garonne_digue,garonne_litMineur,garonne_riveDroite] = geompy.ExtractShapes(HYDRO_garonne_1, geompy.ShapeType["FACE"], True)
 
@@ -417,14 +417,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -432,7 +432,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -441,20 +441,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -567,13 +567,13 @@ SectionsDigue_2 = garonne_1.GroupOnGeom(SectionsDigue,'SectionsDigue',SMESH.NODE
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
 mesures = garonne_1.GetMeshInfo()
 d= {}
-for key, value in mesures.iteritems():
+for key, value in mesures.items():
   d[str(key)] = value
 nbTriangles = d['Entity_Triangle']
 nbNodes = d['Entity_Node']
index 0b34a67aa823a5c96c5452de0c61f41ecfc494f1..09b302c2fadc3fb99e4d97419b5e5b173dba069d 100644 (file)
@@ -402,10 +402,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 
 [garonne_riveGauche,garonne_digue,garonne_litMineur,garonne_riveDroite] = geompy.ExtractShapes(HYDRO_garonne_1, geompy.ShapeType["FACE"], True)
@@ -418,14 +418,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -433,7 +433,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -442,20 +442,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -567,13 +567,13 @@ SectionsDigue_2 = garonne_1.GroupOnGeom(SectionsDigue,'SectionsDigue',SMESH.NODE
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
 mesures = garonne_1.GetMeshInfo()
 d= {}
-for key, value in mesures.iteritems():
+for key, value in mesures.items():
   d[str(key)] = value
 nbTriangles = d['Entity_Triangle']
 nbNodes = d['Entity_Node']
index daf13ef6d9be532c126517a050aa1870a3afa2c2..b780ce913a1e06e899b78dde57c67cb68805074a 100644 (file)
@@ -321,10 +321,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 # --- manual definition: geometrical faces
 
@@ -337,14 +337,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -352,7 +352,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -361,20 +361,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -463,13 +463,13 @@ aval_2 = garonne_1.GroupOnGeom(aval,'aval',SMESH.NODE)
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
 mesures = garonne_1.GetMeshInfo()
 d= {}
-for key, value in mesures.iteritems():
+for key, value in mesures.items():
   d[str(key)] = value
 nbTriangles = d['Entity_Triangle']
 nbNodes = d['Entity_Node']
@@ -493,7 +493,7 @@ from salome.hydrotools.controls import controlStatZ
 nomCas = 'garonne_1'
 
 # --- med file 2D(x,y) of the case produced by SMESH
-print 'fichierMaillage=', fichierMaillage
+print('fichierMaillage=', fichierMaillage)
 
 # --- dictionary [med group name] = region name
 dicoGroupeRegion= dict(litMineur  = 'garonne_1_litMineur',
@@ -539,13 +539,13 @@ PYTEL(CODE='telemac2d',
                     FICHIER_BCD='%s/condlim.bcd',),
       SORTIE_MED='%s/r2d_garonne_1Z.med',);
 """ % (tmpdir, tmpdir, tmpdir, tmpdir, tmpdir)
-print jdc
+print(jdc)
 
 from salome.hydro.study import jdc_to_dict
 param_dict = jdc_to_dict(jdc, ["PYTEL", "_F"])
 # --- close xterm automatically after Telemac execution
 param_dict['batchExec'] = True
-print param_dict
+print(param_dict)
 
 from salome.hydro.run_study.launcher import run_study
 run_study(param_dict)
index 2ecaf99bd020ec2521a0c0de8a424fc743c75ee1..ca9c5a59d651b0cb96377592a085d91e6191c47b 100644 (file)
@@ -68,181 +68,181 @@ Strickler_table_1.SetName( "Strickler table_1" )
 
 Strickler_table_1.SetAttrName( "CODE_06" )
 
-Strickler_table_1.Set( u"Pelouses et pâturages naturels", 1.0321 )
-Strickler_table_1.SetAttrValue( u"Pelouses et pâturages naturels", "321" )
-Strickler_table_1.SetColor( u"Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
+Strickler_table_1.Set( "Pelouses et pâturages naturels", 1.0321 )
+Strickler_table_1.SetAttrValue( "Pelouses et pâturages naturels", "321" )
+Strickler_table_1.SetColor( "Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
 
-Strickler_table_1.Set( u"Aéroports", 1.0124 )
-Strickler_table_1.SetAttrValue( u"Aéroports", "124" )
-Strickler_table_1.SetColor( u"Aéroports", QColor( 230, 204, 230 ) )
+Strickler_table_1.Set( "Aéroports", 1.0124 )
+Strickler_table_1.SetAttrValue( "Aéroports", "124" )
+Strickler_table_1.SetColor( "Aéroports", QColor( 230, 204, 230 ) )
 
-Strickler_table_1.Set( u"Systèmes culturaux et parcellaires complexes", 1.0242 )
-Strickler_table_1.SetAttrValue( u"Systèmes culturaux et parcellaires complexes", "242" )
-Strickler_table_1.SetColor( u"Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
+Strickler_table_1.Set( "Systèmes culturaux et parcellaires complexes", 1.0242 )
+Strickler_table_1.SetAttrValue( "Systèmes culturaux et parcellaires complexes", "242" )
+Strickler_table_1.SetColor( "Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
 
-Strickler_table_1.Set( u"Cultures annuelles associées à des cultures permanentes", 1.0241 )
-Strickler_table_1.SetAttrValue( u"Cultures annuelles associées à des cultures permanentes", "241" )
-Strickler_table_1.SetColor( u"Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
+Strickler_table_1.Set( "Cultures annuelles associées à des cultures permanentes", 1.0241 )
+Strickler_table_1.SetAttrValue( "Cultures annuelles associées à des cultures permanentes", "241" )
+Strickler_table_1.SetColor( "Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
 
-Strickler_table_1.Set( u"Forêt et végétation arbustive en mutation", 1.0324 )
-Strickler_table_1.SetAttrValue( u"Forêt et végétation arbustive en mutation", "324" )
-Strickler_table_1.SetColor( u"Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
+Strickler_table_1.Set( "Forêt et végétation arbustive en mutation", 1.0324 )
+Strickler_table_1.SetAttrValue( "Forêt et végétation arbustive en mutation", "324" )
+Strickler_table_1.SetColor( "Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
 
-Strickler_table_1.Set( u"Décharges", 1.0132 )
-Strickler_table_1.SetAttrValue( u"Décharges", "132" )
-Strickler_table_1.SetColor( u"Décharges", QColor( 166, 77, 0 ) )
+Strickler_table_1.Set( "Décharges", 1.0132 )
+Strickler_table_1.SetAttrValue( "Décharges", "132" )
+Strickler_table_1.SetColor( "Décharges", QColor( 166, 77, 0 ) )
 
-Strickler_table_1.Set( u"Végétation clairsemée", 1.0333 )
-Strickler_table_1.SetAttrValue( u"Végétation clairsemée", "333" )
-Strickler_table_1.SetColor( u"Végétation clairsemée", QColor( 204, 255, 204 ) )
+Strickler_table_1.Set( "Végétation clairsemée", 1.0333 )
+Strickler_table_1.SetAttrValue( "Végétation clairsemée", "333" )
+Strickler_table_1.SetColor( "Végétation clairsemée", QColor( 204, 255, 204 ) )
 
-Strickler_table_1.Set( u"Prairies et autres surfaces toujours en herbe à usage agricole", 1.0231 )
-Strickler_table_1.SetAttrValue( u"Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
-Strickler_table_1.SetColor( u"Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
+Strickler_table_1.Set( "Prairies et autres surfaces toujours en herbe à usage agricole", 1.0231 )
+Strickler_table_1.SetAttrValue( "Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
+Strickler_table_1.SetColor( "Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
 
-Strickler_table_1.Set( u"Périmètres irrigués en permanence", 1.0212 )
-Strickler_table_1.SetAttrValue( u"Périmètres irrigués en permanence", "212" )
-Strickler_table_1.SetColor( u"Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
+Strickler_table_1.Set( "Périmètres irrigués en permanence", 1.0212 )
+Strickler_table_1.SetAttrValue( "Périmètres irrigués en permanence", "212" )
+Strickler_table_1.SetColor( "Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
 
-Strickler_table_1.Set( u"Plans d'eau", 1.0512 )
-Strickler_table_1.SetAttrValue( u"Plans d'eau", "512" )
-Strickler_table_1.SetColor( u"Plans d'eau", QColor( 128, 242, 230 ) )
+Strickler_table_1.Set( "Plans d'eau", 1.0512 )
+Strickler_table_1.SetAttrValue( "Plans d'eau", "512" )
+Strickler_table_1.SetColor( "Plans d'eau", QColor( 128, 242, 230 ) )
 
-Strickler_table_1.Set( u"Territoires agroforestiers", 1.0244 )
-Strickler_table_1.SetAttrValue( u"Territoires agroforestiers", "244" )
-Strickler_table_1.SetColor( u"Territoires agroforestiers", QColor( 242, 204, 166 ) )
+Strickler_table_1.Set( "Territoires agroforestiers", 1.0244 )
+Strickler_table_1.SetAttrValue( "Territoires agroforestiers", "244" )
+Strickler_table_1.SetColor( "Territoires agroforestiers", QColor( 242, 204, 166 ) )
 
-Strickler_table_1.Set( u"Forêts mélangées", 1.0313 )
-Strickler_table_1.SetAttrValue( u"Forêts mélangées", "313" )
-Strickler_table_1.SetColor( u"Forêts mélangées", QColor( 77, 255, 0 ) )
+Strickler_table_1.Set( "Forêts mélangées", 1.0313 )
+Strickler_table_1.SetAttrValue( "Forêts mélangées", "313" )
+Strickler_table_1.SetColor( "Forêts mélangées", QColor( 77, 255, 0 ) )
 
-Strickler_table_1.Set( u"Glaciers et neiges éternelles", 1.0335 )
-Strickler_table_1.SetAttrValue( u"Glaciers et neiges éternelles", "335" )
-Strickler_table_1.SetColor( u"Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
+Strickler_table_1.Set( "Glaciers et neiges éternelles", 1.0335 )
+Strickler_table_1.SetAttrValue( "Glaciers et neiges éternelles", "335" )
+Strickler_table_1.SetColor( "Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
 
-Strickler_table_1.Set( u"Plages, dunes et sable", 1.0331 )
-Strickler_table_1.SetAttrValue( u"Plages, dunes et sable", "331" )
-Strickler_table_1.SetColor( u"Plages, dunes et sable", QColor( 230, 230, 230 ) )
+Strickler_table_1.Set( "Plages, dunes et sable", 1.0331 )
+Strickler_table_1.SetAttrValue( "Plages, dunes et sable", "331" )
+Strickler_table_1.SetColor( "Plages, dunes et sable", QColor( 230, 230, 230 ) )
 
-Strickler_table_1.Set( u"Zones incendiées", 1.0334 )
-Strickler_table_1.SetAttrValue( u"Zones incendiées", "334" )
-Strickler_table_1.SetColor( u"Zones incendiées", QColor( 0, 0, 0 ) )
+Strickler_table_1.Set( "Zones incendiées", 1.0334 )
+Strickler_table_1.SetAttrValue( "Zones incendiées", "334" )
+Strickler_table_1.SetColor( "Zones incendiées", QColor( 0, 0, 0 ) )
 
-Strickler_table_1.Set( u"Tissu urbain continu", 1.0111 )
-Strickler_table_1.SetAttrValue( u"Tissu urbain continu", "111" )
-Strickler_table_1.SetColor( u"Tissu urbain continu", QColor( 230, 0, 77 ) )
+Strickler_table_1.Set( "Tissu urbain continu", 1.0111 )
+Strickler_table_1.SetAttrValue( "Tissu urbain continu", "111" )
+Strickler_table_1.SetColor( "Tissu urbain continu", QColor( 230, 0, 77 ) )
 
-Strickler_table_1.Set( u"Chantiers", 1.0133 )
-Strickler_table_1.SetAttrValue( u"Chantiers", "133" )
-Strickler_table_1.SetColor( u"Chantiers", QColor( 255, 77, 255 ) )
+Strickler_table_1.Set( "Chantiers", 1.0133 )
+Strickler_table_1.SetAttrValue( "Chantiers", "133" )
+Strickler_table_1.SetColor( "Chantiers", QColor( 255, 77, 255 ) )
 
-Strickler_table_1.Set( u"Estuaires", 1.0522 )
-Strickler_table_1.SetAttrValue( u"Estuaires", "522" )
-Strickler_table_1.SetColor( u"Estuaires", QColor( 166, 255, 230 ) )
+Strickler_table_1.Set( "Estuaires", 1.0522 )
+Strickler_table_1.SetAttrValue( "Estuaires", "522" )
+Strickler_table_1.SetColor( "Estuaires", QColor( 166, 255, 230 ) )
 
-Strickler_table_1.Set( u"Marais maritimes", 1.0421 )
-Strickler_table_1.SetAttrValue( u"Marais maritimes", "421" )
-Strickler_table_1.SetColor( u"Marais maritimes", QColor( 204, 204, 255 ) )
+Strickler_table_1.Set( "Marais maritimes", 1.0421 )
+Strickler_table_1.SetAttrValue( "Marais maritimes", "421" )
+Strickler_table_1.SetColor( "Marais maritimes", QColor( 204, 204, 255 ) )
 
-Strickler_table_1.Set( u"Forêts de conifères", 1.0312 )
-Strickler_table_1.SetAttrValue( u"Forêts de conifères", "312" )
-Strickler_table_1.SetColor( u"Forêts de conifères", QColor( 0, 166, 0 ) )
+Strickler_table_1.Set( "Forêts de conifères", 1.0312 )
+Strickler_table_1.SetAttrValue( "Forêts de conifères", "312" )
+Strickler_table_1.SetColor( "Forêts de conifères", QColor( 0, 166, 0 ) )
 
-Strickler_table_1.Set( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 1.0243 )
-Strickler_table_1.SetAttrValue( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
-Strickler_table_1.SetColor( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
+Strickler_table_1.Set( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 1.0243 )
+Strickler_table_1.SetAttrValue( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
+Strickler_table_1.SetColor( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
 
-Strickler_table_1.Set( u"Tourbières", 1.0412 )
-Strickler_table_1.SetAttrValue( u"Tourbières", "412" )
-Strickler_table_1.SetColor( u"Tourbières", QColor( 77, 77, 255 ) )
+Strickler_table_1.Set( "Tourbières", 1.0412 )
+Strickler_table_1.SetAttrValue( "Tourbières", "412" )
+Strickler_table_1.SetColor( "Tourbières", QColor( 77, 77, 255 ) )
 
-Strickler_table_1.Set( u"Extraction de matériaux", 1.0131 )
-Strickler_table_1.SetAttrValue( u"Extraction de matériaux", "131" )
-Strickler_table_1.SetColor( u"Extraction de matériaux", QColor( 166, 0, 204 ) )
+Strickler_table_1.Set( "Extraction de matériaux", 1.0131 )
+Strickler_table_1.SetAttrValue( "Extraction de matériaux", "131" )
+Strickler_table_1.SetColor( "Extraction de matériaux", QColor( 166, 0, 204 ) )
 
-Strickler_table_1.Set( u"Réseaux routier et ferroviaire et espaces associés", 1.0122 )
-Strickler_table_1.SetAttrValue( u"Réseaux routier et ferroviaire et espaces associés", "122" )
-Strickler_table_1.SetColor( u"Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
+Strickler_table_1.Set( "Réseaux routier et ferroviaire et espaces associés", 1.0122 )
+Strickler_table_1.SetAttrValue( "Réseaux routier et ferroviaire et espaces associés", "122" )
+Strickler_table_1.SetColor( "Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
 
-Strickler_table_1.Set( u"Mers et océans", 1.0523 )
-Strickler_table_1.SetAttrValue( u"Mers et océans", "523" )
-Strickler_table_1.SetColor( u"Mers et océans", QColor( 230, 242, 255 ) )
+Strickler_table_1.Set( "Mers et océans", 1.0523 )
+Strickler_table_1.SetAttrValue( "Mers et océans", "523" )
+Strickler_table_1.SetColor( "Mers et océans", QColor( 230, 242, 255 ) )
 
-Strickler_table_1.Set( u"Equipements sportifs et de loisirs", 1.0142 )
-Strickler_table_1.SetAttrValue( u"Equipements sportifs et de loisirs", "142" )
-Strickler_table_1.SetColor( u"Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
+Strickler_table_1.Set( "Equipements sportifs et de loisirs", 1.0142 )
+Strickler_table_1.SetAttrValue( "Equipements sportifs et de loisirs", "142" )
+Strickler_table_1.SetColor( "Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
 
-Strickler_table_1.Set( u"Forêts de feuillus", 1.0311 )
-Strickler_table_1.SetAttrValue( u"Forêts de feuillus", "311" )
-Strickler_table_1.SetColor( u"Forêts de feuillus", QColor( 128, 255, 0 ) )
+Strickler_table_1.Set( "Forêts de feuillus", 1.0311 )
+Strickler_table_1.SetAttrValue( "Forêts de feuillus", "311" )
+Strickler_table_1.SetColor( "Forêts de feuillus", QColor( 128, 255, 0 ) )
 
-Strickler_table_1.Set( u"Vergers et petits fruits", 1.0222 )
-Strickler_table_1.SetAttrValue( u"Vergers et petits fruits", "222" )
-Strickler_table_1.SetColor( u"Vergers et petits fruits", QColor( 242, 166, 77 ) )
+Strickler_table_1.Set( "Vergers et petits fruits", 1.0222 )
+Strickler_table_1.SetAttrValue( "Vergers et petits fruits", "222" )
+Strickler_table_1.SetColor( "Vergers et petits fruits", QColor( 242, 166, 77 ) )
 
-Strickler_table_1.Set( u"Végétation sclérophylle", 1.0323 )
-Strickler_table_1.SetAttrValue( u"Végétation sclérophylle", "323" )
-Strickler_table_1.SetColor( u"Végétation sclérophylle", QColor( 166, 230, 77 ) )
+Strickler_table_1.Set( "Végétation sclérophylle", 1.0323 )
+Strickler_table_1.SetAttrValue( "Végétation sclérophylle", "323" )
+Strickler_table_1.SetColor( "Végétation sclérophylle", QColor( 166, 230, 77 ) )
 
-Strickler_table_1.Set( u"Landes et broussailles", 1.0322 )
-Strickler_table_1.SetAttrValue( u"Landes et broussailles", "322" )
-Strickler_table_1.SetColor( u"Landes et broussailles", QColor( 166, 255, 128 ) )
+Strickler_table_1.Set( "Landes et broussailles", 1.0322 )
+Strickler_table_1.SetAttrValue( "Landes et broussailles", "322" )
+Strickler_table_1.SetColor( "Landes et broussailles", QColor( 166, 255, 128 ) )
 
-Strickler_table_1.Set( u"Tissu urbain discontinu", 1.0112 )
-Strickler_table_1.SetAttrValue( u"Tissu urbain discontinu", "112" )
-Strickler_table_1.SetColor( u"Tissu urbain discontinu", QColor( 255, 0, 0 ) )
+Strickler_table_1.Set( "Tissu urbain discontinu", 1.0112 )
+Strickler_table_1.SetAttrValue( "Tissu urbain discontinu", "112" )
+Strickler_table_1.SetColor( "Tissu urbain discontinu", QColor( 255, 0, 0 ) )
 
-Strickler_table_1.Set( u"Cours et voies d'eau", 1.0511 )
-Strickler_table_1.SetAttrValue( u"Cours et voies d'eau", "511" )
-Strickler_table_1.SetColor( u"Cours et voies d'eau", QColor( 0, 204, 242 ) )
+Strickler_table_1.Set( "Cours et voies d'eau", 1.0511 )
+Strickler_table_1.SetAttrValue( "Cours et voies d'eau", "511" )
+Strickler_table_1.SetColor( "Cours et voies d'eau", QColor( 0, 204, 242 ) )
 
-Strickler_table_1.Set( u"Oliveraies", 1.0223 )
-Strickler_table_1.SetAttrValue( u"Oliveraies", "223" )
-Strickler_table_1.SetColor( u"Oliveraies", QColor( 230, 166, 0 ) )
+Strickler_table_1.Set( "Oliveraies", 1.0223 )
+Strickler_table_1.SetAttrValue( "Oliveraies", "223" )
+Strickler_table_1.SetColor( "Oliveraies", QColor( 230, 166, 0 ) )
 
-Strickler_table_1.Set( u"Vignobles", 1.0221 )
-Strickler_table_1.SetAttrValue( u"Vignobles", "221" )
-Strickler_table_1.SetColor( u"Vignobles", QColor( 230, 128, 0 ) )
+Strickler_table_1.Set( "Vignobles", 1.0221 )
+Strickler_table_1.SetAttrValue( "Vignobles", "221" )
+Strickler_table_1.SetColor( "Vignobles", QColor( 230, 128, 0 ) )
 
-Strickler_table_1.Set( u"Rizières", 1.0213 )
-Strickler_table_1.SetAttrValue( u"Rizières", "213" )
-Strickler_table_1.SetColor( u"Rizières", QColor( 230, 230, 0 ) )
+Strickler_table_1.Set( "Rizières", 1.0213 )
+Strickler_table_1.SetAttrValue( "Rizières", "213" )
+Strickler_table_1.SetColor( "Rizières", QColor( 230, 230, 0 ) )
 
-Strickler_table_1.Set( u"Zones portuaires", 1.0123 )
-Strickler_table_1.SetAttrValue( u"Zones portuaires", "123" )
-Strickler_table_1.SetColor( u"Zones portuaires", QColor( 230, 204, 204 ) )
+Strickler_table_1.Set( "Zones portuaires", 1.0123 )
+Strickler_table_1.SetAttrValue( "Zones portuaires", "123" )
+Strickler_table_1.SetColor( "Zones portuaires", QColor( 230, 204, 204 ) )
 
-Strickler_table_1.Set( u"Zones industrielles ou commerciales et installations publiques", 1.0121 )
-Strickler_table_1.SetAttrValue( u"Zones industrielles ou commerciales et installations publiques", "121" )
-Strickler_table_1.SetColor( u"Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
+Strickler_table_1.Set( "Zones industrielles ou commerciales et installations publiques", 1.0121 )
+Strickler_table_1.SetAttrValue( "Zones industrielles ou commerciales et installations publiques", "121" )
+Strickler_table_1.SetColor( "Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
 
-Strickler_table_1.Set( u"Marais salants", 1.0422 )
-Strickler_table_1.SetAttrValue( u"Marais salants", "422" )
-Strickler_table_1.SetColor( u"Marais salants", QColor( 230, 230, 255 ) )
+Strickler_table_1.Set( "Marais salants", 1.0422 )
+Strickler_table_1.SetAttrValue( "Marais salants", "422" )
+Strickler_table_1.SetColor( "Marais salants", QColor( 230, 230, 255 ) )
 
-Strickler_table_1.Set( u"Marais intérieurs", 1.0411 )
-Strickler_table_1.SetAttrValue( u"Marais intérieurs", "411" )
-Strickler_table_1.SetColor( u"Marais intérieurs", QColor( 166, 166, 255 ) )
+Strickler_table_1.Set( "Marais intérieurs", 1.0411 )
+Strickler_table_1.SetAttrValue( "Marais intérieurs", "411" )
+Strickler_table_1.SetColor( "Marais intérieurs", QColor( 166, 166, 255 ) )
 
-Strickler_table_1.Set( u"Espaces verts urbains", 1.0141 )
-Strickler_table_1.SetAttrValue( u"Espaces verts urbains", "141" )
-Strickler_table_1.SetColor( u"Espaces verts urbains", QColor( 255, 166, 255 ) )
+Strickler_table_1.Set( "Espaces verts urbains", 1.0141 )
+Strickler_table_1.SetAttrValue( "Espaces verts urbains", "141" )
+Strickler_table_1.SetColor( "Espaces verts urbains", QColor( 255, 166, 255 ) )
 
-Strickler_table_1.Set( u"Lagunes littorales", 1.0521 )
-Strickler_table_1.SetAttrValue( u"Lagunes littorales", "521" )
-Strickler_table_1.SetColor( u"Lagunes littorales", QColor( 0, 255, 166 ) )
+Strickler_table_1.Set( "Lagunes littorales", 1.0521 )
+Strickler_table_1.SetAttrValue( "Lagunes littorales", "521" )
+Strickler_table_1.SetColor( "Lagunes littorales", QColor( 0, 255, 166 ) )
 
-Strickler_table_1.Set( u"Roches nues", 1.0332 )
-Strickler_table_1.SetAttrValue( u"Roches nues", "332" )
-Strickler_table_1.SetColor( u"Roches nues", QColor( 204, 204, 204 ) )
+Strickler_table_1.Set( "Roches nues", 1.0332 )
+Strickler_table_1.SetAttrValue( "Roches nues", "332" )
+Strickler_table_1.SetColor( "Roches nues", QColor( 204, 204, 204 ) )
 
-Strickler_table_1.Set( u"Terres arables hors périmètres d'irrigation", 1.0211 )
-Strickler_table_1.SetAttrValue( u"Terres arables hors périmètres d'irrigation", "211" )
-Strickler_table_1.SetColor( u"Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
+Strickler_table_1.Set( "Terres arables hors périmètres d'irrigation", 1.0211 )
+Strickler_table_1.SetAttrValue( "Terres arables hors périmètres d'irrigation", "211" )
+Strickler_table_1.SetColor( "Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
 
-Strickler_table_1.Set( u"Zones intertidales", 1.0423 )
-Strickler_table_1.SetAttrValue( u"Zones intertidales", "423" )
-Strickler_table_1.SetColor( u"Zones intertidales", QColor( 166, 166, 230 ) )
+Strickler_table_1.Set( "Zones intertidales", 1.0423 )
+Strickler_table_1.SetAttrValue( "Zones intertidales", "423" )
+Strickler_table_1.SetColor( "Zones intertidales", QColor( 166, 166, 230 ) )
 
 
 Strickler_table_1.Update()
@@ -1036,10 +1036,10 @@ garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
 
 # Get geometry shape and print debug information
 import GEOM
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 
 ###
@@ -1066,7 +1066,7 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.2241814, 25998085.6892)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "OuterFreeBoundary")
@@ -1077,7 +1077,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[4], "pilesPont4")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 edgesPile1 = geompy.ExtractShapes(ClosedFreeBoundary[1], geompy.ShapeType["EDGE"], True)
 edgesPile2 = geompy.ExtractShapes(ClosedFreeBoundary[2], geompy.ShapeType["EDGE"], True)
@@ -1088,7 +1088,7 @@ pilesPont2Ids = [ geompy.GetSubShapeID(HYDRO_garonne_1, edgesPile2[i]) for i in
 pilesPont3Ids = [ geompy.GetSubShapeID(HYDRO_garonne_1, edgesPile3[i]) for i in range(len(edgesPile3)) ]
 pilesPont4Ids = [ geompy.GetSubShapeID(HYDRO_garonne_1, edgesPile4[i]) for i in range(len(edgesPile4)) ]
 pilesPontIds = pilesPont1Ids + pilesPont2Ids + pilesPont3Ids + pilesPont4Ids
-print "pilesPontIds", pilesPontIds
+print("pilesPontIds", pilesPontIds)
 
 [garonne_aval_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_aval], geompy.ShapeType["EDGE"], True)
 [garonne_aval_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_aval], geompy.ShapeType["EDGE"], True)
@@ -1104,7 +1104,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, garonne_pont_droite, "garonne_pont_dr
 geompy.addToStudyInFather(HYDRO_garonne_1, garonne_pont_gauche, "garonne_pont_gauche")
 rives = [garonne_aval_droite, garonne_aval_gauche, garonne_amont_droite, garonne_amont_gauche, garonne_pont_droite, garonne_pont_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_garonne_aval = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_aval], geompy.ShapeType["EDGE"], True)
 edges_garonne_amont = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_amont], geompy.ShapeType["EDGE"], True)
@@ -1117,11 +1117,11 @@ edges_garonne_pontIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_garonne_po
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_garonne_amontIds", edges_garonne_amontIds 
-print "edges_garonne_avalIds", edges_garonne_avalIds 
-print "edges_garonne_pontIds", edges_garonne_pontIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_garonne_amontIds", edges_garonne_amontIds) 
+print("edges_garonne_avalIds", edges_garonne_avalIds) 
+print("edges_garonne_pontIds", edges_garonne_pontIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 edges_litMineurIds = edges_garonne_amontIds
 for edge in edges_garonne_avalIds:
@@ -1131,15 +1131,15 @@ for edge in edges_garonne_pontIds:
     edges_litMineurIds.append(edge)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -1269,7 +1269,7 @@ smesh.SetName(sections, 'submesh_sections')
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
index 86ef8deade166db48452d5ba95e3a9fc02631655..4942e521664d0ef8315115179c3e2049af2eab55 100644 (file)
@@ -26,181 +26,181 @@ Strickler_table_1.SetName( "Strickler table_1" )
 
 Strickler_table_1.SetAttrName( "CODE_06" )
 
-Strickler_table_1.Set( u"Pelouses et pâturages naturels", 1.0321 )
-Strickler_table_1.SetAttrValue( u"Pelouses et pâturages naturels", "321" )
-Strickler_table_1.SetColor( u"Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
+Strickler_table_1.Set( "Pelouses et pâturages naturels", 1.0321 )
+Strickler_table_1.SetAttrValue( "Pelouses et pâturages naturels", "321" )
+Strickler_table_1.SetColor( "Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
 
-Strickler_table_1.Set( u"Aéroports", 1.0124 )
-Strickler_table_1.SetAttrValue( u"Aéroports", "124" )
-Strickler_table_1.SetColor( u"Aéroports", QColor( 230, 204, 230 ) )
+Strickler_table_1.Set( "Aéroports", 1.0124 )
+Strickler_table_1.SetAttrValue( "Aéroports", "124" )
+Strickler_table_1.SetColor( "Aéroports", QColor( 230, 204, 230 ) )
 
-Strickler_table_1.Set( u"Systèmes culturaux et parcellaires complexes", 1.0242 )
-Strickler_table_1.SetAttrValue( u"Systèmes culturaux et parcellaires complexes", "242" )
-Strickler_table_1.SetColor( u"Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
+Strickler_table_1.Set( "Systèmes culturaux et parcellaires complexes", 1.0242 )
+Strickler_table_1.SetAttrValue( "Systèmes culturaux et parcellaires complexes", "242" )
+Strickler_table_1.SetColor( "Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
 
-Strickler_table_1.Set( u"Cultures annuelles associées à des cultures permanentes", 1.0241 )
-Strickler_table_1.SetAttrValue( u"Cultures annuelles associées à des cultures permanentes", "241" )
-Strickler_table_1.SetColor( u"Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
+Strickler_table_1.Set( "Cultures annuelles associées à des cultures permanentes", 1.0241 )
+Strickler_table_1.SetAttrValue( "Cultures annuelles associées à des cultures permanentes", "241" )
+Strickler_table_1.SetColor( "Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
 
-Strickler_table_1.Set( u"Forêt et végétation arbustive en mutation", 1.0324 )
-Strickler_table_1.SetAttrValue( u"Forêt et végétation arbustive en mutation", "324" )
-Strickler_table_1.SetColor( u"Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
+Strickler_table_1.Set( "Forêt et végétation arbustive en mutation", 1.0324 )
+Strickler_table_1.SetAttrValue( "Forêt et végétation arbustive en mutation", "324" )
+Strickler_table_1.SetColor( "Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
 
-Strickler_table_1.Set( u"Décharges", 1.0132 )
-Strickler_table_1.SetAttrValue( u"Décharges", "132" )
-Strickler_table_1.SetColor( u"Décharges", QColor( 166, 77, 0 ) )
+Strickler_table_1.Set( "Décharges", 1.0132 )
+Strickler_table_1.SetAttrValue( "Décharges", "132" )
+Strickler_table_1.SetColor( "Décharges", QColor( 166, 77, 0 ) )
 
-Strickler_table_1.Set( u"Végétation clairsemée", 1.0333 )
-Strickler_table_1.SetAttrValue( u"Végétation clairsemée", "333" )
-Strickler_table_1.SetColor( u"Végétation clairsemée", QColor( 204, 255, 204 ) )
+Strickler_table_1.Set( "Végétation clairsemée", 1.0333 )
+Strickler_table_1.SetAttrValue( "Végétation clairsemée", "333" )
+Strickler_table_1.SetColor( "Végétation clairsemée", QColor( 204, 255, 204 ) )
 
-Strickler_table_1.Set( u"Prairies et autres surfaces toujours en herbe à usage agricole", 1.0231 )
-Strickler_table_1.SetAttrValue( u"Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
-Strickler_table_1.SetColor( u"Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
+Strickler_table_1.Set( "Prairies et autres surfaces toujours en herbe à usage agricole", 1.0231 )
+Strickler_table_1.SetAttrValue( "Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
+Strickler_table_1.SetColor( "Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
 
-Strickler_table_1.Set( u"Périmètres irrigués en permanence", 1.0212 )
-Strickler_table_1.SetAttrValue( u"Périmètres irrigués en permanence", "212" )
-Strickler_table_1.SetColor( u"Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
+Strickler_table_1.Set( "Périmètres irrigués en permanence", 1.0212 )
+Strickler_table_1.SetAttrValue( "Périmètres irrigués en permanence", "212" )
+Strickler_table_1.SetColor( "Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
 
-Strickler_table_1.Set( u"Plans d'eau", 1.0512 )
-Strickler_table_1.SetAttrValue( u"Plans d'eau", "512" )
-Strickler_table_1.SetColor( u"Plans d'eau", QColor( 128, 242, 230 ) )
+Strickler_table_1.Set( "Plans d'eau", 1.0512 )
+Strickler_table_1.SetAttrValue( "Plans d'eau", "512" )
+Strickler_table_1.SetColor( "Plans d'eau", QColor( 128, 242, 230 ) )
 
-Strickler_table_1.Set( u"Territoires agroforestiers", 1.0244 )
-Strickler_table_1.SetAttrValue( u"Territoires agroforestiers", "244" )
-Strickler_table_1.SetColor( u"Territoires agroforestiers", QColor( 242, 204, 166 ) )
+Strickler_table_1.Set( "Territoires agroforestiers", 1.0244 )
+Strickler_table_1.SetAttrValue( "Territoires agroforestiers", "244" )
+Strickler_table_1.SetColor( "Territoires agroforestiers", QColor( 242, 204, 166 ) )
 
-Strickler_table_1.Set( u"Forêts mélangées", 1.0313 )
-Strickler_table_1.SetAttrValue( u"Forêts mélangées", "313" )
-Strickler_table_1.SetColor( u"Forêts mélangées", QColor( 77, 255, 0 ) )
+Strickler_table_1.Set( "Forêts mélangées", 1.0313 )
+Strickler_table_1.SetAttrValue( "Forêts mélangées", "313" )
+Strickler_table_1.SetColor( "Forêts mélangées", QColor( 77, 255, 0 ) )
 
-Strickler_table_1.Set( u"Glaciers et neiges éternelles", 1.0335 )
-Strickler_table_1.SetAttrValue( u"Glaciers et neiges éternelles", "335" )
-Strickler_table_1.SetColor( u"Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
+Strickler_table_1.Set( "Glaciers et neiges éternelles", 1.0335 )
+Strickler_table_1.SetAttrValue( "Glaciers et neiges éternelles", "335" )
+Strickler_table_1.SetColor( "Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
 
-Strickler_table_1.Set( u"Plages, dunes et sable", 1.0331 )
-Strickler_table_1.SetAttrValue( u"Plages, dunes et sable", "331" )
-Strickler_table_1.SetColor( u"Plages, dunes et sable", QColor( 230, 230, 230 ) )
+Strickler_table_1.Set( "Plages, dunes et sable", 1.0331 )
+Strickler_table_1.SetAttrValue( "Plages, dunes et sable", "331" )
+Strickler_table_1.SetColor( "Plages, dunes et sable", QColor( 230, 230, 230 ) )
 
-Strickler_table_1.Set( u"Zones incendiées", 1.0334 )
-Strickler_table_1.SetAttrValue( u"Zones incendiées", "334" )
-Strickler_table_1.SetColor( u"Zones incendiées", QColor( 0, 0, 0 ) )
+Strickler_table_1.Set( "Zones incendiées", 1.0334 )
+Strickler_table_1.SetAttrValue( "Zones incendiées", "334" )
+Strickler_table_1.SetColor( "Zones incendiées", QColor( 0, 0, 0 ) )
 
-Strickler_table_1.Set( u"Tissu urbain continu", 1.0111 )
-Strickler_table_1.SetAttrValue( u"Tissu urbain continu", "111" )
-Strickler_table_1.SetColor( u"Tissu urbain continu", QColor( 230, 0, 77 ) )
+Strickler_table_1.Set( "Tissu urbain continu", 1.0111 )
+Strickler_table_1.SetAttrValue( "Tissu urbain continu", "111" )
+Strickler_table_1.SetColor( "Tissu urbain continu", QColor( 230, 0, 77 ) )
 
-Strickler_table_1.Set( u"Chantiers", 1.0133 )
-Strickler_table_1.SetAttrValue( u"Chantiers", "133" )
-Strickler_table_1.SetColor( u"Chantiers", QColor( 255, 77, 255 ) )
+Strickler_table_1.Set( "Chantiers", 1.0133 )
+Strickler_table_1.SetAttrValue( "Chantiers", "133" )
+Strickler_table_1.SetColor( "Chantiers", QColor( 255, 77, 255 ) )
 
-Strickler_table_1.Set( u"Estuaires", 1.0522 )
-Strickler_table_1.SetAttrValue( u"Estuaires", "522" )
-Strickler_table_1.SetColor( u"Estuaires", QColor( 166, 255, 230 ) )
+Strickler_table_1.Set( "Estuaires", 1.0522 )
+Strickler_table_1.SetAttrValue( "Estuaires", "522" )
+Strickler_table_1.SetColor( "Estuaires", QColor( 166, 255, 230 ) )
 
-Strickler_table_1.Set( u"Marais maritimes", 1.0421 )
-Strickler_table_1.SetAttrValue( u"Marais maritimes", "421" )
-Strickler_table_1.SetColor( u"Marais maritimes", QColor( 204, 204, 255 ) )
+Strickler_table_1.Set( "Marais maritimes", 1.0421 )
+Strickler_table_1.SetAttrValue( "Marais maritimes", "421" )
+Strickler_table_1.SetColor( "Marais maritimes", QColor( 204, 204, 255 ) )
 
-Strickler_table_1.Set( u"Forêts de conifères", 1.0312 )
-Strickler_table_1.SetAttrValue( u"Forêts de conifères", "312" )
-Strickler_table_1.SetColor( u"Forêts de conifères", QColor( 0, 166, 0 ) )
+Strickler_table_1.Set( "Forêts de conifères", 1.0312 )
+Strickler_table_1.SetAttrValue( "Forêts de conifères", "312" )
+Strickler_table_1.SetColor( "Forêts de conifères", QColor( 0, 166, 0 ) )
 
-Strickler_table_1.Set( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 1.0243 )
-Strickler_table_1.SetAttrValue( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
-Strickler_table_1.SetColor( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
+Strickler_table_1.Set( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 1.0243 )
+Strickler_table_1.SetAttrValue( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
+Strickler_table_1.SetColor( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
 
-Strickler_table_1.Set( u"Tourbières", 1.0412 )
-Strickler_table_1.SetAttrValue( u"Tourbières", "412" )
-Strickler_table_1.SetColor( u"Tourbières", QColor( 77, 77, 255 ) )
+Strickler_table_1.Set( "Tourbières", 1.0412 )
+Strickler_table_1.SetAttrValue( "Tourbières", "412" )
+Strickler_table_1.SetColor( "Tourbières", QColor( 77, 77, 255 ) )
 
-Strickler_table_1.Set( u"Extraction de matériaux", 1.0131 )
-Strickler_table_1.SetAttrValue( u"Extraction de matériaux", "131" )
-Strickler_table_1.SetColor( u"Extraction de matériaux", QColor( 166, 0, 204 ) )
+Strickler_table_1.Set( "Extraction de matériaux", 1.0131 )
+Strickler_table_1.SetAttrValue( "Extraction de matériaux", "131" )
+Strickler_table_1.SetColor( "Extraction de matériaux", QColor( 166, 0, 204 ) )
 
-Strickler_table_1.Set( u"Réseaux routier et ferroviaire et espaces associés", 1.0122 )
-Strickler_table_1.SetAttrValue( u"Réseaux routier et ferroviaire et espaces associés", "122" )
-Strickler_table_1.SetColor( u"Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
+Strickler_table_1.Set( "Réseaux routier et ferroviaire et espaces associés", 1.0122 )
+Strickler_table_1.SetAttrValue( "Réseaux routier et ferroviaire et espaces associés", "122" )
+Strickler_table_1.SetColor( "Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
 
-Strickler_table_1.Set( u"Mers et océans", 1.0523 )
-Strickler_table_1.SetAttrValue( u"Mers et océans", "523" )
-Strickler_table_1.SetColor( u"Mers et océans", QColor( 230, 242, 255 ) )
+Strickler_table_1.Set( "Mers et océans", 1.0523 )
+Strickler_table_1.SetAttrValue( "Mers et océans", "523" )
+Strickler_table_1.SetColor( "Mers et océans", QColor( 230, 242, 255 ) )
 
-Strickler_table_1.Set( u"Equipements sportifs et de loisirs", 1.0142 )
-Strickler_table_1.SetAttrValue( u"Equipements sportifs et de loisirs", "142" )
-Strickler_table_1.SetColor( u"Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
+Strickler_table_1.Set( "Equipements sportifs et de loisirs", 1.0142 )
+Strickler_table_1.SetAttrValue( "Equipements sportifs et de loisirs", "142" )
+Strickler_table_1.SetColor( "Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
 
-Strickler_table_1.Set( u"Forêts de feuillus", 1.0311 )
-Strickler_table_1.SetAttrValue( u"Forêts de feuillus", "311" )
-Strickler_table_1.SetColor( u"Forêts de feuillus", QColor( 128, 255, 0 ) )
+Strickler_table_1.Set( "Forêts de feuillus", 1.0311 )
+Strickler_table_1.SetAttrValue( "Forêts de feuillus", "311" )
+Strickler_table_1.SetColor( "Forêts de feuillus", QColor( 128, 255, 0 ) )
 
-Strickler_table_1.Set( u"Vergers et petits fruits", 1.0222 )
-Strickler_table_1.SetAttrValue( u"Vergers et petits fruits", "222" )
-Strickler_table_1.SetColor( u"Vergers et petits fruits", QColor( 242, 166, 77 ) )
+Strickler_table_1.Set( "Vergers et petits fruits", 1.0222 )
+Strickler_table_1.SetAttrValue( "Vergers et petits fruits", "222" )
+Strickler_table_1.SetColor( "Vergers et petits fruits", QColor( 242, 166, 77 ) )
 
-Strickler_table_1.Set( u"Végétation sclérophylle", 1.0323 )
-Strickler_table_1.SetAttrValue( u"Végétation sclérophylle", "323" )
-Strickler_table_1.SetColor( u"Végétation sclérophylle", QColor( 166, 230, 77 ) )
+Strickler_table_1.Set( "Végétation sclérophylle", 1.0323 )
+Strickler_table_1.SetAttrValue( "Végétation sclérophylle", "323" )
+Strickler_table_1.SetColor( "Végétation sclérophylle", QColor( 166, 230, 77 ) )
 
-Strickler_table_1.Set( u"Landes et broussailles", 1.0322 )
-Strickler_table_1.SetAttrValue( u"Landes et broussailles", "322" )
-Strickler_table_1.SetColor( u"Landes et broussailles", QColor( 166, 255, 128 ) )
+Strickler_table_1.Set( "Landes et broussailles", 1.0322 )
+Strickler_table_1.SetAttrValue( "Landes et broussailles", "322" )
+Strickler_table_1.SetColor( "Landes et broussailles", QColor( 166, 255, 128 ) )
 
-Strickler_table_1.Set( u"Tissu urbain discontinu", 1.0112 )
-Strickler_table_1.SetAttrValue( u"Tissu urbain discontinu", "112" )
-Strickler_table_1.SetColor( u"Tissu urbain discontinu", QColor( 255, 0, 0 ) )
+Strickler_table_1.Set( "Tissu urbain discontinu", 1.0112 )
+Strickler_table_1.SetAttrValue( "Tissu urbain discontinu", "112" )
+Strickler_table_1.SetColor( "Tissu urbain discontinu", QColor( 255, 0, 0 ) )
 
-Strickler_table_1.Set( u"Cours et voies d'eau", 1.0511 )
-Strickler_table_1.SetAttrValue( u"Cours et voies d'eau", "511" )
-Strickler_table_1.SetColor( u"Cours et voies d'eau", QColor( 0, 204, 242 ) )
+Strickler_table_1.Set( "Cours et voies d'eau", 1.0511 )
+Strickler_table_1.SetAttrValue( "Cours et voies d'eau", "511" )
+Strickler_table_1.SetColor( "Cours et voies d'eau", QColor( 0, 204, 242 ) )
 
-Strickler_table_1.Set( u"Oliveraies", 1.0223 )
-Strickler_table_1.SetAttrValue( u"Oliveraies", "223" )
-Strickler_table_1.SetColor( u"Oliveraies", QColor( 230, 166, 0 ) )
+Strickler_table_1.Set( "Oliveraies", 1.0223 )
+Strickler_table_1.SetAttrValue( "Oliveraies", "223" )
+Strickler_table_1.SetColor( "Oliveraies", QColor( 230, 166, 0 ) )
 
-Strickler_table_1.Set( u"Vignobles", 1.0221 )
-Strickler_table_1.SetAttrValue( u"Vignobles", "221" )
-Strickler_table_1.SetColor( u"Vignobles", QColor( 230, 128, 0 ) )
+Strickler_table_1.Set( "Vignobles", 1.0221 )
+Strickler_table_1.SetAttrValue( "Vignobles", "221" )
+Strickler_table_1.SetColor( "Vignobles", QColor( 230, 128, 0 ) )
 
-Strickler_table_1.Set( u"Rizières", 1.0213 )
-Strickler_table_1.SetAttrValue( u"Rizières", "213" )
-Strickler_table_1.SetColor( u"Rizières", QColor( 230, 230, 0 ) )
+Strickler_table_1.Set( "Rizières", 1.0213 )
+Strickler_table_1.SetAttrValue( "Rizières", "213" )
+Strickler_table_1.SetColor( "Rizières", QColor( 230, 230, 0 ) )
 
-Strickler_table_1.Set( u"Zones portuaires", 1.0123 )
-Strickler_table_1.SetAttrValue( u"Zones portuaires", "123" )
-Strickler_table_1.SetColor( u"Zones portuaires", QColor( 230, 204, 204 ) )
+Strickler_table_1.Set( "Zones portuaires", 1.0123 )
+Strickler_table_1.SetAttrValue( "Zones portuaires", "123" )
+Strickler_table_1.SetColor( "Zones portuaires", QColor( 230, 204, 204 ) )
 
-Strickler_table_1.Set( u"Zones industrielles ou commerciales et installations publiques", 1.0121 )
-Strickler_table_1.SetAttrValue( u"Zones industrielles ou commerciales et installations publiques", "121" )
-Strickler_table_1.SetColor( u"Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
+Strickler_table_1.Set( "Zones industrielles ou commerciales et installations publiques", 1.0121 )
+Strickler_table_1.SetAttrValue( "Zones industrielles ou commerciales et installations publiques", "121" )
+Strickler_table_1.SetColor( "Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
 
-Strickler_table_1.Set( u"Marais salants", 1.0422 )
-Strickler_table_1.SetAttrValue( u"Marais salants", "422" )
-Strickler_table_1.SetColor( u"Marais salants", QColor( 230, 230, 255 ) )
+Strickler_table_1.Set( "Marais salants", 1.0422 )
+Strickler_table_1.SetAttrValue( "Marais salants", "422" )
+Strickler_table_1.SetColor( "Marais salants", QColor( 230, 230, 255 ) )
 
-Strickler_table_1.Set( u"Marais intérieurs", 1.0411 )
-Strickler_table_1.SetAttrValue( u"Marais intérieurs", "411" )
-Strickler_table_1.SetColor( u"Marais intérieurs", QColor( 166, 166, 255 ) )
+Strickler_table_1.Set( "Marais intérieurs", 1.0411 )
+Strickler_table_1.SetAttrValue( "Marais intérieurs", "411" )
+Strickler_table_1.SetColor( "Marais intérieurs", QColor( 166, 166, 255 ) )
 
-Strickler_table_1.Set( u"Espaces verts urbains", 1.0141 )
-Strickler_table_1.SetAttrValue( u"Espaces verts urbains", "141" )
-Strickler_table_1.SetColor( u"Espaces verts urbains", QColor( 255, 166, 255 ) )
+Strickler_table_1.Set( "Espaces verts urbains", 1.0141 )
+Strickler_table_1.SetAttrValue( "Espaces verts urbains", "141" )
+Strickler_table_1.SetColor( "Espaces verts urbains", QColor( 255, 166, 255 ) )
 
-Strickler_table_1.Set( u"Lagunes littorales", 1.0521 )
-Strickler_table_1.SetAttrValue( u"Lagunes littorales", "521" )
-Strickler_table_1.SetColor( u"Lagunes littorales", QColor( 0, 255, 166 ) )
+Strickler_table_1.Set( "Lagunes littorales", 1.0521 )
+Strickler_table_1.SetAttrValue( "Lagunes littorales", "521" )
+Strickler_table_1.SetColor( "Lagunes littorales", QColor( 0, 255, 166 ) )
 
-Strickler_table_1.Set( u"Roches nues", 1.0332 )
-Strickler_table_1.SetAttrValue( u"Roches nues", "332" )
-Strickler_table_1.SetColor( u"Roches nues", QColor( 204, 204, 204 ) )
+Strickler_table_1.Set( "Roches nues", 1.0332 )
+Strickler_table_1.SetAttrValue( "Roches nues", "332" )
+Strickler_table_1.SetColor( "Roches nues", QColor( 204, 204, 204 ) )
 
-Strickler_table_1.Set( u"Terres arables hors périmètres d'irrigation", 1.0211 )
-Strickler_table_1.SetAttrValue( u"Terres arables hors périmètres d'irrigation", "211" )
-Strickler_table_1.SetColor( u"Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
+Strickler_table_1.Set( "Terres arables hors périmètres d'irrigation", 1.0211 )
+Strickler_table_1.SetAttrValue( "Terres arables hors périmètres d'irrigation", "211" )
+Strickler_table_1.SetColor( "Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
 
-Strickler_table_1.Set( u"Zones intertidales", 1.0423 )
-Strickler_table_1.SetAttrValue( u"Zones intertidales", "423" )
-Strickler_table_1.SetColor( u"Zones intertidales", QColor( 166, 166, 230 ) )
+Strickler_table_1.Set( "Zones intertidales", 1.0423 )
+Strickler_table_1.SetAttrValue( "Zones intertidales", "423" )
+Strickler_table_1.SetColor( "Zones intertidales", QColor( 166, 166, 230 ) )
 
 
 Strickler_table_1.Update()
@@ -264,10 +264,10 @@ etude_entry = etude.Export( theStudy._get_StudyId() )
 
 # Get geometry shape and print debug information
 import GEOM
-print "Entry:", etude_entry
+print("Entry:", etude_entry)
 HYDRO_etude_1 = salome.IDToObject( str( etude_entry ) )
-print "Geom shape:", HYDRO_etude_1
-print "Geom shape name:", HYDRO_etude_1.GetName()
+print("Geom shape:", HYDRO_etude_1)
+print("Geom shape name:", HYDRO_etude_1.GetName())
 
 
 ###
@@ -324,7 +324,7 @@ except OSError:
 try:
   relief.ExportMED( med_file, 0, SMESH.MED_V2_2, 1, None ,1)
 except:
-  print 'ExportToMEDX() failed. Invalid file name?'
+  print('ExportToMEDX() failed. Invalid file name?')
 
 
 ## Set names of Mesh objects
index 263eb1dfa02d25bda0e5718b18c5147dc927dda9..0e90dccdbd6a7c70628bc50f3201373d6ae23be6 100644 (file)
@@ -30,181 +30,181 @@ Strickler_table_1.SetName( "Strickler table_1" )
 
 Strickler_table_1.SetAttrName( "CODE_06" )
 
-Strickler_table_1.Set( u"Pelouses et pâturages naturels", 1.0321 )
-Strickler_table_1.SetAttrValue( u"Pelouses et pâturages naturels", "321" )
-Strickler_table_1.SetColor( u"Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
+Strickler_table_1.Set( "Pelouses et pâturages naturels", 1.0321 )
+Strickler_table_1.SetAttrValue( "Pelouses et pâturages naturels", "321" )
+Strickler_table_1.SetColor( "Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
 
-Strickler_table_1.Set( u"Aéroports", 1.0124 )
-Strickler_table_1.SetAttrValue( u"Aéroports", "124" )
-Strickler_table_1.SetColor( u"Aéroports", QColor( 230, 204, 230 ) )
+Strickler_table_1.Set( "Aéroports", 1.0124 )
+Strickler_table_1.SetAttrValue( "Aéroports", "124" )
+Strickler_table_1.SetColor( "Aéroports", QColor( 230, 204, 230 ) )
 
-Strickler_table_1.Set( u"Systèmes culturaux et parcellaires complexes", 1.0242 )
-Strickler_table_1.SetAttrValue( u"Systèmes culturaux et parcellaires complexes", "242" )
-Strickler_table_1.SetColor( u"Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
+Strickler_table_1.Set( "Systèmes culturaux et parcellaires complexes", 1.0242 )
+Strickler_table_1.SetAttrValue( "Systèmes culturaux et parcellaires complexes", "242" )
+Strickler_table_1.SetColor( "Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
 
-Strickler_table_1.Set( u"Cultures annuelles associées à des cultures permanentes", 1.0241 )
-Strickler_table_1.SetAttrValue( u"Cultures annuelles associées à des cultures permanentes", "241" )
-Strickler_table_1.SetColor( u"Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
+Strickler_table_1.Set( "Cultures annuelles associées à des cultures permanentes", 1.0241 )
+Strickler_table_1.SetAttrValue( "Cultures annuelles associées à des cultures permanentes", "241" )
+Strickler_table_1.SetColor( "Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
 
-Strickler_table_1.Set( u"Forêt et végétation arbustive en mutation", 1.0324 )
-Strickler_table_1.SetAttrValue( u"Forêt et végétation arbustive en mutation", "324" )
-Strickler_table_1.SetColor( u"Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
+Strickler_table_1.Set( "Forêt et végétation arbustive en mutation", 1.0324 )
+Strickler_table_1.SetAttrValue( "Forêt et végétation arbustive en mutation", "324" )
+Strickler_table_1.SetColor( "Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
 
-Strickler_table_1.Set( u"Décharges", 1.0132 )
-Strickler_table_1.SetAttrValue( u"Décharges", "132" )
-Strickler_table_1.SetColor( u"Décharges", QColor( 166, 77, 0 ) )
+Strickler_table_1.Set( "Décharges", 1.0132 )
+Strickler_table_1.SetAttrValue( "Décharges", "132" )
+Strickler_table_1.SetColor( "Décharges", QColor( 166, 77, 0 ) )
 
-Strickler_table_1.Set( u"Végétation clairsemée", 1.0333 )
-Strickler_table_1.SetAttrValue( u"Végétation clairsemée", "333" )
-Strickler_table_1.SetColor( u"Végétation clairsemée", QColor( 204, 255, 204 ) )
+Strickler_table_1.Set( "Végétation clairsemée", 1.0333 )
+Strickler_table_1.SetAttrValue( "Végétation clairsemée", "333" )
+Strickler_table_1.SetColor( "Végétation clairsemée", QColor( 204, 255, 204 ) )
 
-Strickler_table_1.Set( u"Prairies et autres surfaces toujours en herbe à usage agricole", 1.0231 )
-Strickler_table_1.SetAttrValue( u"Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
-Strickler_table_1.SetColor( u"Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
+Strickler_table_1.Set( "Prairies et autres surfaces toujours en herbe à usage agricole", 1.0231 )
+Strickler_table_1.SetAttrValue( "Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
+Strickler_table_1.SetColor( "Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
 
-Strickler_table_1.Set( u"Périmètres irrigués en permanence", 1.0212 )
-Strickler_table_1.SetAttrValue( u"Périmètres irrigués en permanence", "212" )
-Strickler_table_1.SetColor( u"Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
+Strickler_table_1.Set( "Périmètres irrigués en permanence", 1.0212 )
+Strickler_table_1.SetAttrValue( "Périmètres irrigués en permanence", "212" )
+Strickler_table_1.SetColor( "Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
 
-Strickler_table_1.Set( u"Plans d'eau", 1.0512 )
-Strickler_table_1.SetAttrValue( u"Plans d'eau", "512" )
-Strickler_table_1.SetColor( u"Plans d'eau", QColor( 128, 242, 230 ) )
+Strickler_table_1.Set( "Plans d'eau", 1.0512 )
+Strickler_table_1.SetAttrValue( "Plans d'eau", "512" )
+Strickler_table_1.SetColor( "Plans d'eau", QColor( 128, 242, 230 ) )
 
-Strickler_table_1.Set( u"Territoires agroforestiers", 1.0244 )
-Strickler_table_1.SetAttrValue( u"Territoires agroforestiers", "244" )
-Strickler_table_1.SetColor( u"Territoires agroforestiers", QColor( 242, 204, 166 ) )
+Strickler_table_1.Set( "Territoires agroforestiers", 1.0244 )
+Strickler_table_1.SetAttrValue( "Territoires agroforestiers", "244" )
+Strickler_table_1.SetColor( "Territoires agroforestiers", QColor( 242, 204, 166 ) )
 
-Strickler_table_1.Set( u"Forêts mélangées", 1.0313 )
-Strickler_table_1.SetAttrValue( u"Forêts mélangées", "313" )
-Strickler_table_1.SetColor( u"Forêts mélangées", QColor( 77, 255, 0 ) )
+Strickler_table_1.Set( "Forêts mélangées", 1.0313 )
+Strickler_table_1.SetAttrValue( "Forêts mélangées", "313" )
+Strickler_table_1.SetColor( "Forêts mélangées", QColor( 77, 255, 0 ) )
 
-Strickler_table_1.Set( u"Glaciers et neiges éternelles", 1.0335 )
-Strickler_table_1.SetAttrValue( u"Glaciers et neiges éternelles", "335" )
-Strickler_table_1.SetColor( u"Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
+Strickler_table_1.Set( "Glaciers et neiges éternelles", 1.0335 )
+Strickler_table_1.SetAttrValue( "Glaciers et neiges éternelles", "335" )
+Strickler_table_1.SetColor( "Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
 
-Strickler_table_1.Set( u"Plages, dunes et sable", 1.0331 )
-Strickler_table_1.SetAttrValue( u"Plages, dunes et sable", "331" )
-Strickler_table_1.SetColor( u"Plages, dunes et sable", QColor( 230, 230, 230 ) )
+Strickler_table_1.Set( "Plages, dunes et sable", 1.0331 )
+Strickler_table_1.SetAttrValue( "Plages, dunes et sable", "331" )
+Strickler_table_1.SetColor( "Plages, dunes et sable", QColor( 230, 230, 230 ) )
 
-Strickler_table_1.Set( u"Zones incendiées", 1.0334 )
-Strickler_table_1.SetAttrValue( u"Zones incendiées", "334" )
-Strickler_table_1.SetColor( u"Zones incendiées", QColor( 0, 0, 0 ) )
+Strickler_table_1.Set( "Zones incendiées", 1.0334 )
+Strickler_table_1.SetAttrValue( "Zones incendiées", "334" )
+Strickler_table_1.SetColor( "Zones incendiées", QColor( 0, 0, 0 ) )
 
-Strickler_table_1.Set( u"Tissu urbain continu", 1.0111 )
-Strickler_table_1.SetAttrValue( u"Tissu urbain continu", "111" )
-Strickler_table_1.SetColor( u"Tissu urbain continu", QColor( 230, 0, 77 ) )
+Strickler_table_1.Set( "Tissu urbain continu", 1.0111 )
+Strickler_table_1.SetAttrValue( "Tissu urbain continu", "111" )
+Strickler_table_1.SetColor( "Tissu urbain continu", QColor( 230, 0, 77 ) )
 
-Strickler_table_1.Set( u"Chantiers", 1.0133 )
-Strickler_table_1.SetAttrValue( u"Chantiers", "133" )
-Strickler_table_1.SetColor( u"Chantiers", QColor( 255, 77, 255 ) )
+Strickler_table_1.Set( "Chantiers", 1.0133 )
+Strickler_table_1.SetAttrValue( "Chantiers", "133" )
+Strickler_table_1.SetColor( "Chantiers", QColor( 255, 77, 255 ) )
 
-Strickler_table_1.Set( u"Estuaires", 1.0522 )
-Strickler_table_1.SetAttrValue( u"Estuaires", "522" )
-Strickler_table_1.SetColor( u"Estuaires", QColor( 166, 255, 230 ) )
+Strickler_table_1.Set( "Estuaires", 1.0522 )
+Strickler_table_1.SetAttrValue( "Estuaires", "522" )
+Strickler_table_1.SetColor( "Estuaires", QColor( 166, 255, 230 ) )
 
-Strickler_table_1.Set( u"Marais maritimes", 1.0421 )
-Strickler_table_1.SetAttrValue( u"Marais maritimes", "421" )
-Strickler_table_1.SetColor( u"Marais maritimes", QColor( 204, 204, 255 ) )
+Strickler_table_1.Set( "Marais maritimes", 1.0421 )
+Strickler_table_1.SetAttrValue( "Marais maritimes", "421" )
+Strickler_table_1.SetColor( "Marais maritimes", QColor( 204, 204, 255 ) )
 
-Strickler_table_1.Set( u"Forêts de conifères", 1.0312 )
-Strickler_table_1.SetAttrValue( u"Forêts de conifères", "312" )
-Strickler_table_1.SetColor( u"Forêts de conifères", QColor( 0, 166, 0 ) )
+Strickler_table_1.Set( "Forêts de conifères", 1.0312 )
+Strickler_table_1.SetAttrValue( "Forêts de conifères", "312" )
+Strickler_table_1.SetColor( "Forêts de conifères", QColor( 0, 166, 0 ) )
 
-Strickler_table_1.Set( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 1.0243 )
-Strickler_table_1.SetAttrValue( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
-Strickler_table_1.SetColor( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
+Strickler_table_1.Set( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 1.0243 )
+Strickler_table_1.SetAttrValue( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
+Strickler_table_1.SetColor( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
 
-Strickler_table_1.Set( u"Tourbières", 1.0412 )
-Strickler_table_1.SetAttrValue( u"Tourbières", "412" )
-Strickler_table_1.SetColor( u"Tourbières", QColor( 77, 77, 255 ) )
+Strickler_table_1.Set( "Tourbières", 1.0412 )
+Strickler_table_1.SetAttrValue( "Tourbières", "412" )
+Strickler_table_1.SetColor( "Tourbières", QColor( 77, 77, 255 ) )
 
-Strickler_table_1.Set( u"Extraction de matériaux", 1.0131 )
-Strickler_table_1.SetAttrValue( u"Extraction de matériaux", "131" )
-Strickler_table_1.SetColor( u"Extraction de matériaux", QColor( 166, 0, 204 ) )
+Strickler_table_1.Set( "Extraction de matériaux", 1.0131 )
+Strickler_table_1.SetAttrValue( "Extraction de matériaux", "131" )
+Strickler_table_1.SetColor( "Extraction de matériaux", QColor( 166, 0, 204 ) )
 
-Strickler_table_1.Set( u"Réseaux routier et ferroviaire et espaces associés", 1.0122 )
-Strickler_table_1.SetAttrValue( u"Réseaux routier et ferroviaire et espaces associés", "122" )
-Strickler_table_1.SetColor( u"Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
+Strickler_table_1.Set( "Réseaux routier et ferroviaire et espaces associés", 1.0122 )
+Strickler_table_1.SetAttrValue( "Réseaux routier et ferroviaire et espaces associés", "122" )
+Strickler_table_1.SetColor( "Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
 
-Strickler_table_1.Set( u"Mers et océans", 1.0523 )
-Strickler_table_1.SetAttrValue( u"Mers et océans", "523" )
-Strickler_table_1.SetColor( u"Mers et océans", QColor( 230, 242, 255 ) )
+Strickler_table_1.Set( "Mers et océans", 1.0523 )
+Strickler_table_1.SetAttrValue( "Mers et océans", "523" )
+Strickler_table_1.SetColor( "Mers et océans", QColor( 230, 242, 255 ) )
 
-Strickler_table_1.Set( u"Equipements sportifs et de loisirs", 1.0142 )
-Strickler_table_1.SetAttrValue( u"Equipements sportifs et de loisirs", "142" )
-Strickler_table_1.SetColor( u"Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
+Strickler_table_1.Set( "Equipements sportifs et de loisirs", 1.0142 )
+Strickler_table_1.SetAttrValue( "Equipements sportifs et de loisirs", "142" )
+Strickler_table_1.SetColor( "Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
 
-Strickler_table_1.Set( u"Forêts de feuillus", 1.0311 )
-Strickler_table_1.SetAttrValue( u"Forêts de feuillus", "311" )
-Strickler_table_1.SetColor( u"Forêts de feuillus", QColor( 128, 255, 0 ) )
+Strickler_table_1.Set( "Forêts de feuillus", 1.0311 )
+Strickler_table_1.SetAttrValue( "Forêts de feuillus", "311" )
+Strickler_table_1.SetColor( "Forêts de feuillus", QColor( 128, 255, 0 ) )
 
-Strickler_table_1.Set( u"Vergers et petits fruits", 1.0222 )
-Strickler_table_1.SetAttrValue( u"Vergers et petits fruits", "222" )
-Strickler_table_1.SetColor( u"Vergers et petits fruits", QColor( 242, 166, 77 ) )
+Strickler_table_1.Set( "Vergers et petits fruits", 1.0222 )
+Strickler_table_1.SetAttrValue( "Vergers et petits fruits", "222" )
+Strickler_table_1.SetColor( "Vergers et petits fruits", QColor( 242, 166, 77 ) )
 
-Strickler_table_1.Set( u"Végétation sclérophylle", 1.0323 )
-Strickler_table_1.SetAttrValue( u"Végétation sclérophylle", "323" )
-Strickler_table_1.SetColor( u"Végétation sclérophylle", QColor( 166, 230, 77 ) )
+Strickler_table_1.Set( "Végétation sclérophylle", 1.0323 )
+Strickler_table_1.SetAttrValue( "Végétation sclérophylle", "323" )
+Strickler_table_1.SetColor( "Végétation sclérophylle", QColor( 166, 230, 77 ) )
 
-Strickler_table_1.Set( u"Landes et broussailles", 1.0322 )
-Strickler_table_1.SetAttrValue( u"Landes et broussailles", "322" )
-Strickler_table_1.SetColor( u"Landes et broussailles", QColor( 166, 255, 128 ) )
+Strickler_table_1.Set( "Landes et broussailles", 1.0322 )
+Strickler_table_1.SetAttrValue( "Landes et broussailles", "322" )
+Strickler_table_1.SetColor( "Landes et broussailles", QColor( 166, 255, 128 ) )
 
-Strickler_table_1.Set( u"Tissu urbain discontinu", 1.0112 )
-Strickler_table_1.SetAttrValue( u"Tissu urbain discontinu", "112" )
-Strickler_table_1.SetColor( u"Tissu urbain discontinu", QColor( 255, 0, 0 ) )
+Strickler_table_1.Set( "Tissu urbain discontinu", 1.0112 )
+Strickler_table_1.SetAttrValue( "Tissu urbain discontinu", "112" )
+Strickler_table_1.SetColor( "Tissu urbain discontinu", QColor( 255, 0, 0 ) )
 
-Strickler_table_1.Set( u"Cours et voies d'eau", 1.0511 )
-Strickler_table_1.SetAttrValue( u"Cours et voies d'eau", "511" )
-Strickler_table_1.SetColor( u"Cours et voies d'eau", QColor( 0, 204, 242 ) )
+Strickler_table_1.Set( "Cours et voies d'eau", 1.0511 )
+Strickler_table_1.SetAttrValue( "Cours et voies d'eau", "511" )
+Strickler_table_1.SetColor( "Cours et voies d'eau", QColor( 0, 204, 242 ) )
 
-Strickler_table_1.Set( u"Oliveraies", 1.0223 )
-Strickler_table_1.SetAttrValue( u"Oliveraies", "223" )
-Strickler_table_1.SetColor( u"Oliveraies", QColor( 230, 166, 0 ) )
+Strickler_table_1.Set( "Oliveraies", 1.0223 )
+Strickler_table_1.SetAttrValue( "Oliveraies", "223" )
+Strickler_table_1.SetColor( "Oliveraies", QColor( 230, 166, 0 ) )
 
-Strickler_table_1.Set( u"Vignobles", 1.0221 )
-Strickler_table_1.SetAttrValue( u"Vignobles", "221" )
-Strickler_table_1.SetColor( u"Vignobles", QColor( 230, 128, 0 ) )
+Strickler_table_1.Set( "Vignobles", 1.0221 )
+Strickler_table_1.SetAttrValue( "Vignobles", "221" )
+Strickler_table_1.SetColor( "Vignobles", QColor( 230, 128, 0 ) )
 
-Strickler_table_1.Set( u"Rizières", 1.0213 )
-Strickler_table_1.SetAttrValue( u"Rizières", "213" )
-Strickler_table_1.SetColor( u"Rizières", QColor( 230, 230, 0 ) )
+Strickler_table_1.Set( "Rizières", 1.0213 )
+Strickler_table_1.SetAttrValue( "Rizières", "213" )
+Strickler_table_1.SetColor( "Rizières", QColor( 230, 230, 0 ) )
 
-Strickler_table_1.Set( u"Zones portuaires", 1.0123 )
-Strickler_table_1.SetAttrValue( u"Zones portuaires", "123" )
-Strickler_table_1.SetColor( u"Zones portuaires", QColor( 230, 204, 204 ) )
+Strickler_table_1.Set( "Zones portuaires", 1.0123 )
+Strickler_table_1.SetAttrValue( "Zones portuaires", "123" )
+Strickler_table_1.SetColor( "Zones portuaires", QColor( 230, 204, 204 ) )
 
-Strickler_table_1.Set( u"Zones industrielles ou commerciales et installations publiques", 1.0121 )
-Strickler_table_1.SetAttrValue( u"Zones industrielles ou commerciales et installations publiques", "121" )
-Strickler_table_1.SetColor( u"Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
+Strickler_table_1.Set( "Zones industrielles ou commerciales et installations publiques", 1.0121 )
+Strickler_table_1.SetAttrValue( "Zones industrielles ou commerciales et installations publiques", "121" )
+Strickler_table_1.SetColor( "Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
 
-Strickler_table_1.Set( u"Marais salants", 1.0422 )
-Strickler_table_1.SetAttrValue( u"Marais salants", "422" )
-Strickler_table_1.SetColor( u"Marais salants", QColor( 230, 230, 255 ) )
+Strickler_table_1.Set( "Marais salants", 1.0422 )
+Strickler_table_1.SetAttrValue( "Marais salants", "422" )
+Strickler_table_1.SetColor( "Marais salants", QColor( 230, 230, 255 ) )
 
-Strickler_table_1.Set( u"Marais intérieurs", 1.0411 )
-Strickler_table_1.SetAttrValue( u"Marais intérieurs", "411" )
-Strickler_table_1.SetColor( u"Marais intérieurs", QColor( 166, 166, 255 ) )
+Strickler_table_1.Set( "Marais intérieurs", 1.0411 )
+Strickler_table_1.SetAttrValue( "Marais intérieurs", "411" )
+Strickler_table_1.SetColor( "Marais intérieurs", QColor( 166, 166, 255 ) )
 
-Strickler_table_1.Set( u"Espaces verts urbains", 1.0141 )
-Strickler_table_1.SetAttrValue( u"Espaces verts urbains", "141" )
-Strickler_table_1.SetColor( u"Espaces verts urbains", QColor( 255, 166, 255 ) )
+Strickler_table_1.Set( "Espaces verts urbains", 1.0141 )
+Strickler_table_1.SetAttrValue( "Espaces verts urbains", "141" )
+Strickler_table_1.SetColor( "Espaces verts urbains", QColor( 255, 166, 255 ) )
 
-Strickler_table_1.Set( u"Lagunes littorales", 1.0521 )
-Strickler_table_1.SetAttrValue( u"Lagunes littorales", "521" )
-Strickler_table_1.SetColor( u"Lagunes littorales", QColor( 0, 255, 166 ) )
+Strickler_table_1.Set( "Lagunes littorales", 1.0521 )
+Strickler_table_1.SetAttrValue( "Lagunes littorales", "521" )
+Strickler_table_1.SetColor( "Lagunes littorales", QColor( 0, 255, 166 ) )
 
-Strickler_table_1.Set( u"Roches nues", 1.0332 )
-Strickler_table_1.SetAttrValue( u"Roches nues", "332" )
-Strickler_table_1.SetColor( u"Roches nues", QColor( 204, 204, 204 ) )
+Strickler_table_1.Set( "Roches nues", 1.0332 )
+Strickler_table_1.SetAttrValue( "Roches nues", "332" )
+Strickler_table_1.SetColor( "Roches nues", QColor( 204, 204, 204 ) )
 
-Strickler_table_1.Set( u"Terres arables hors périmètres d'irrigation", 1.0211 )
-Strickler_table_1.SetAttrValue( u"Terres arables hors périmètres d'irrigation", "211" )
-Strickler_table_1.SetColor( u"Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
+Strickler_table_1.Set( "Terres arables hors périmètres d'irrigation", 1.0211 )
+Strickler_table_1.SetAttrValue( "Terres arables hors périmètres d'irrigation", "211" )
+Strickler_table_1.SetColor( "Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
 
-Strickler_table_1.Set( u"Zones intertidales", 1.0423 )
-Strickler_table_1.SetAttrValue( u"Zones intertidales", "423" )
-Strickler_table_1.SetColor( u"Zones intertidales", QColor( 166, 166, 230 ) )
+Strickler_table_1.Set( "Zones intertidales", 1.0423 )
+Strickler_table_1.SetAttrValue( "Zones intertidales", "423" )
+Strickler_table_1.SetColor( "Zones intertidales", QColor( 166, 166, 230 ) )
 
 
 Strickler_table_1.Update()
@@ -252,7 +252,7 @@ profiles.SetName( "profiles" )
 badProfilesIds=[]
 isToProject=True
 nbp = profiles.ImportFromFile(hydro_doc, os.path.join(HYDRO_SAMPLES, "profilsStream.xyz"), badProfilesIds, isToProject)
-print "nombre profils: " , nbp
+print("nombre profils: " , nbp)
 if not(nbp):
   raise ValueError('problem while loading profiles')
 #profiles.Update()
@@ -345,10 +345,10 @@ import SALOMEDS
 from salome.hydrotools.controls import controlGeomProps
 
 # Get geometry shape and print debug information
-print "Entry:", Case_1_entry
+print("Entry:", Case_1_entry)
 HYDRO_Case_1 = salome.IDToObject( str( Case_1_entry ) )
-print "Geom shape:", HYDRO_Case_1
-print "Geom shape name:", HYDRO_Case_1.GetName()
+print("Geom shape:", HYDRO_Case_1)
+print("Geom shape name:", HYDRO_Case_1.GetName())
 
 geompy = geomBuilder.New(theStudy)
 
@@ -362,19 +362,19 @@ geompy.UnionIDs(Case_1_plaine_Outer, [4, 12, 19, 23, 25, 21, 14, 9])
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_Case_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_Case_1)
 geompy.addToStudyInFather(HYDRO_Case_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_Case_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_Case_1, litMineur], geompy.ShapeType["EDGE"], True)
 edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_Case_1, edges_litMineur[i]) for i in range(len(edges_litMineur)) ]
 sectionsIds = [Id for Id in edges_litMineurIds if Id in freeBoundaryIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 sections = geompy.CreateGroup(HYDRO_Case_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(sections, sectionsIds)
 
@@ -461,7 +461,7 @@ plaine.SetAutoColor( 1 )
 try:
   plaine.ExportMED( med_file, 0, SMESH.MED_V2_2, 1, None ,1)
 except:
-  print 'ExportToMEDX() failed. Invalid file name?'
+  print('ExportToMEDX() failed. Invalid file name?')
 
 controlMeshStats(plaine, 1680, 227, 3251)
 controlSubMeshStats(litMineur_2, 2400)
index 67374e70049810bd9a5789e1fd487400fd1605be..09b6897d6cade557e9ff8191cff82fa702bcbda7 100644 (file)
@@ -64,181 +64,181 @@ def_strickler_table_06.SetName( "def_strickler_table_06" )
 
 def_strickler_table_06.SetAttrName( "CODE_06" )
 
-def_strickler_table_06.Set( u"Pelouses et pâturages naturels", 31 )
-def_strickler_table_06.SetAttrValue( u"Pelouses et pâturages naturels", "321" )
-def_strickler_table_06.SetColor( u"Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
+def_strickler_table_06.Set( "Pelouses et pâturages naturels", 31 )
+def_strickler_table_06.SetAttrValue( "Pelouses et pâturages naturels", "321" )
+def_strickler_table_06.SetColor( "Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
 
-def_strickler_table_06.Set( u"Aéroports", 43 )
-def_strickler_table_06.SetAttrValue( u"Aéroports", "124" )
-def_strickler_table_06.SetColor( u"Aéroports", QColor( 230, 204, 230 ) )
+def_strickler_table_06.Set( "Aéroports", 43 )
+def_strickler_table_06.SetAttrValue( "Aéroports", "124" )
+def_strickler_table_06.SetColor( "Aéroports", QColor( 230, 204, 230 ) )
 
-def_strickler_table_06.Set( u"Systèmes culturaux et parcellaires complexes", 19 )
-def_strickler_table_06.SetAttrValue( u"Systèmes culturaux et parcellaires complexes", "242" )
-def_strickler_table_06.SetColor( u"Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
+def_strickler_table_06.Set( "Systèmes culturaux et parcellaires complexes", 19 )
+def_strickler_table_06.SetAttrValue( "Systèmes culturaux et parcellaires complexes", "242" )
+def_strickler_table_06.SetColor( "Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
 
-def_strickler_table_06.Set( u"Cultures annuelles associées à des cultures permanentes", 27 )
-def_strickler_table_06.SetAttrValue( u"Cultures annuelles associées à des cultures permanentes", "241" )
-def_strickler_table_06.SetColor( u"Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
+def_strickler_table_06.Set( "Cultures annuelles associées à des cultures permanentes", 27 )
+def_strickler_table_06.SetAttrValue( "Cultures annuelles associées à des cultures permanentes", "241" )
+def_strickler_table_06.SetColor( "Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
 
-def_strickler_table_06.Set( u"Forêt et végétation arbustive en mutation", 9 )
-def_strickler_table_06.SetAttrValue( u"Forêt et végétation arbustive en mutation", "324" )
-def_strickler_table_06.SetColor( u"Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
+def_strickler_table_06.Set( "Forêt et végétation arbustive en mutation", 9 )
+def_strickler_table_06.SetAttrValue( "Forêt et végétation arbustive en mutation", "324" )
+def_strickler_table_06.SetColor( "Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
 
-def_strickler_table_06.Set( u"Décharges", 21 )
-def_strickler_table_06.SetAttrValue( u"Décharges", "132" )
-def_strickler_table_06.SetColor( u"Décharges", QColor( 166, 77, 0 ) )
+def_strickler_table_06.Set( "Décharges", 21 )
+def_strickler_table_06.SetAttrValue( "Décharges", "132" )
+def_strickler_table_06.SetColor( "Décharges", QColor( 166, 77, 0 ) )
 
-def_strickler_table_06.Set( u"Végétation clairsemée", 43 )
-def_strickler_table_06.SetAttrValue( u"Végétation clairsemée", "333" )
-def_strickler_table_06.SetColor( u"Végétation clairsemée", QColor( 204, 255, 204 ) )
+def_strickler_table_06.Set( "Végétation clairsemée", 43 )
+def_strickler_table_06.SetAttrValue( "Végétation clairsemée", "333" )
+def_strickler_table_06.SetColor( "Végétation clairsemée", QColor( 204, 255, 204 ) )
 
-def_strickler_table_06.Set( u"Prairies et autres surfaces toujours en herbe à usage agricole", 33 )
-def_strickler_table_06.SetAttrValue( u"Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
-def_strickler_table_06.SetColor( u"Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
+def_strickler_table_06.Set( "Prairies et autres surfaces toujours en herbe à usage agricole", 33 )
+def_strickler_table_06.SetAttrValue( "Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
+def_strickler_table_06.SetColor( "Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
 
-def_strickler_table_06.Set( u"Périmètres irrigués en permanence", 43 )
-def_strickler_table_06.SetAttrValue( u"Périmètres irrigués en permanence", "212" )
-def_strickler_table_06.SetColor( u"Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
+def_strickler_table_06.Set( "Périmètres irrigués en permanence", 43 )
+def_strickler_table_06.SetAttrValue( "Périmètres irrigués en permanence", "212" )
+def_strickler_table_06.SetColor( "Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
 
-def_strickler_table_06.Set( u"Plans d'eau", 90 )
-def_strickler_table_06.SetAttrValue( u"Plans d'eau", "512" )
-def_strickler_table_06.SetColor( u"Plans d'eau", QColor( 128, 242, 230 ) )
+def_strickler_table_06.Set( "Plans d'eau", 90 )
+def_strickler_table_06.SetAttrValue( "Plans d'eau", "512" )
+def_strickler_table_06.SetColor( "Plans d'eau", QColor( 128, 242, 230 ) )
 
-def_strickler_table_06.Set( u"Territoires agroforestiers", 14 )
-def_strickler_table_06.SetAttrValue( u"Territoires agroforestiers", "244" )
-def_strickler_table_06.SetColor( u"Territoires agroforestiers", QColor( 242, 204, 166 ) )
+def_strickler_table_06.Set( "Territoires agroforestiers", 14 )
+def_strickler_table_06.SetAttrValue( "Territoires agroforestiers", "244" )
+def_strickler_table_06.SetColor( "Territoires agroforestiers", QColor( 242, 204, 166 ) )
 
-def_strickler_table_06.Set( u"Forêts mélangées", 10 )
-def_strickler_table_06.SetAttrValue( u"Forêts mélangées", "313" )
-def_strickler_table_06.SetColor( u"Forêts mélangées", QColor( 77, 255, 0 ) )
+def_strickler_table_06.Set( "Forêts mélangées", 10 )
+def_strickler_table_06.SetAttrValue( "Forêts mélangées", "313" )
+def_strickler_table_06.SetColor( "Forêts mélangées", QColor( 77, 255, 0 ) )
 
-def_strickler_table_06.Set( u"Glaciers et neiges éternelles", 75 )
-def_strickler_table_06.SetAttrValue( u"Glaciers et neiges éternelles", "335" )
-def_strickler_table_06.SetColor( u"Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
+def_strickler_table_06.Set( "Glaciers et neiges éternelles", 75 )
+def_strickler_table_06.SetAttrValue( "Glaciers et neiges éternelles", "335" )
+def_strickler_table_06.SetColor( "Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
 
-def_strickler_table_06.Set( u"Plages, dunes et sable", 39 )
-def_strickler_table_06.SetAttrValue( u"Plages, dunes et sable", "331" )
-def_strickler_table_06.SetColor( u"Plages, dunes et sable", QColor( 230, 230, 230 ) )
+def_strickler_table_06.Set( "Plages, dunes et sable", 39 )
+def_strickler_table_06.SetAttrValue( "Plages, dunes et sable", "331" )
+def_strickler_table_06.SetColor( "Plages, dunes et sable", QColor( 230, 230, 230 ) )
 
-def_strickler_table_06.Set( u"Zones incendiées", 65 )
-def_strickler_table_06.SetAttrValue( u"Zones incendiées", "334" )
-def_strickler_table_06.SetColor( u"Zones incendiées", QColor( 0, 0, 0 ) )
+def_strickler_table_06.Set( "Zones incendiées", 65 )
+def_strickler_table_06.SetAttrValue( "Zones incendiées", "334" )
+def_strickler_table_06.SetColor( "Zones incendiées", QColor( 0, 0, 0 ) )
 
-def_strickler_table_06.Set( u"Tissu urbain continu", 15 )
-def_strickler_table_06.SetAttrValue( u"Tissu urbain continu", "111" )
-def_strickler_table_06.SetColor( u"Tissu urbain continu", QColor( 230, 0, 77 ) )
+def_strickler_table_06.Set( "Tissu urbain continu", 15 )
+def_strickler_table_06.SetAttrValue( "Tissu urbain continu", "111" )
+def_strickler_table_06.SetColor( "Tissu urbain continu", QColor( 230, 0, 77 ) )
 
-def_strickler_table_06.Set( u"Chantiers", 17 )
-def_strickler_table_06.SetAttrValue( u"Chantiers", "133" )
-def_strickler_table_06.SetColor( u"Chantiers", QColor( 255, 77, 255 ) )
+def_strickler_table_06.Set( "Chantiers", 17 )
+def_strickler_table_06.SetAttrValue( "Chantiers", "133" )
+def_strickler_table_06.SetColor( "Chantiers", QColor( 255, 77, 255 ) )
 
-def_strickler_table_06.Set( u"Estuaires", 98 )
-def_strickler_table_06.SetAttrValue( u"Estuaires", "522" )
-def_strickler_table_06.SetColor( u"Estuaires", QColor( 166, 255, 230 ) )
+def_strickler_table_06.Set( "Estuaires", 98 )
+def_strickler_table_06.SetAttrValue( "Estuaires", "522" )
+def_strickler_table_06.SetColor( "Estuaires", QColor( 166, 255, 230 ) )
 
-def_strickler_table_06.Set( u"Marais maritimes", 74 )
-def_strickler_table_06.SetAttrValue( u"Marais maritimes", "421" )
-def_strickler_table_06.SetColor( u"Marais maritimes", QColor( 204, 204, 255 ) )
+def_strickler_table_06.Set( "Marais maritimes", 74 )
+def_strickler_table_06.SetAttrValue( "Marais maritimes", "421" )
+def_strickler_table_06.SetColor( "Marais maritimes", QColor( 204, 204, 255 ) )
 
-def_strickler_table_06.Set( u"Forêts de conifères", 13 )
-def_strickler_table_06.SetAttrValue( u"Forêts de conifères", "312" )
-def_strickler_table_06.SetColor( u"Forêts de conifères", QColor( 0, 166, 0 ) )
+def_strickler_table_06.Set( "Forêts de conifères", 13 )
+def_strickler_table_06.SetAttrValue( "Forêts de conifères", "312" )
+def_strickler_table_06.SetColor( "Forêts de conifères", QColor( 0, 166, 0 ) )
 
-def_strickler_table_06.Set( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 16 )
-def_strickler_table_06.SetAttrValue( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
-def_strickler_table_06.SetColor( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
+def_strickler_table_06.Set( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 16 )
+def_strickler_table_06.SetAttrValue( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
+def_strickler_table_06.SetColor( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
 
-def_strickler_table_06.Set( u"Tourbières", 65 )
-def_strickler_table_06.SetAttrValue( u"Tourbières", "412" )
-def_strickler_table_06.SetColor( u"Tourbières", QColor( 77, 77, 255 ) )
+def_strickler_table_06.Set( "Tourbières", 65 )
+def_strickler_table_06.SetAttrValue( "Tourbières", "412" )
+def_strickler_table_06.SetColor( "Tourbières", QColor( 77, 77, 255 ) )
 
-def_strickler_table_06.Set( u"Extraction de matériaux", 19 )
-def_strickler_table_06.SetAttrValue( u"Extraction de matériaux", "131" )
-def_strickler_table_06.SetColor( u"Extraction de matériaux", QColor( 166, 0, 204 ) )
+def_strickler_table_06.Set( "Extraction de matériaux", 19 )
+def_strickler_table_06.SetAttrValue( "Extraction de matériaux", "131" )
+def_strickler_table_06.SetColor( "Extraction de matériaux", QColor( 166, 0, 204 ) )
 
-def_strickler_table_06.Set( u"Réseaux routier et ferroviaire et espaces associés", 35 )
-def_strickler_table_06.SetAttrValue( u"Réseaux routier et ferroviaire et espaces associés", "122" )
-def_strickler_table_06.SetColor( u"Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
+def_strickler_table_06.Set( "Réseaux routier et ferroviaire et espaces associés", 35 )
+def_strickler_table_06.SetAttrValue( "Réseaux routier et ferroviaire et espaces associés", "122" )
+def_strickler_table_06.SetColor( "Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
 
-def_strickler_table_06.Set( u"Mers et océans", 99 )
-def_strickler_table_06.SetAttrValue( u"Mers et océans", "523" )
-def_strickler_table_06.SetColor( u"Mers et océans", QColor( 230, 242, 255 ) )
+def_strickler_table_06.Set( "Mers et océans", 99 )
+def_strickler_table_06.SetAttrValue( "Mers et océans", "523" )
+def_strickler_table_06.SetColor( "Mers et océans", QColor( 230, 242, 255 ) )
 
-def_strickler_table_06.Set( u"Equipements sportifs et de loisirs", 40 )
-def_strickler_table_06.SetAttrValue( u"Equipements sportifs et de loisirs", "142" )
-def_strickler_table_06.SetColor( u"Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
+def_strickler_table_06.Set( "Equipements sportifs et de loisirs", 40 )
+def_strickler_table_06.SetAttrValue( "Equipements sportifs et de loisirs", "142" )
+def_strickler_table_06.SetColor( "Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
 
-def_strickler_table_06.Set( u"Forêts de feuillus", 9 )
-def_strickler_table_06.SetAttrValue( u"Forêts de feuillus", "311" )
-def_strickler_table_06.SetColor( u"Forêts de feuillus", QColor( 128, 255, 0 ) )
+def_strickler_table_06.Set( "Forêts de feuillus", 9 )
+def_strickler_table_06.SetAttrValue( "Forêts de feuillus", "311" )
+def_strickler_table_06.SetColor( "Forêts de feuillus", QColor( 128, 255, 0 ) )
 
-def_strickler_table_06.Set( u"Vergers et petits fruits", 25 )
-def_strickler_table_06.SetAttrValue( u"Vergers et petits fruits", "222" )
-def_strickler_table_06.SetColor( u"Vergers et petits fruits", QColor( 242, 166, 77 ) )
+def_strickler_table_06.Set( "Vergers et petits fruits", 25 )
+def_strickler_table_06.SetAttrValue( "Vergers et petits fruits", "222" )
+def_strickler_table_06.SetColor( "Vergers et petits fruits", QColor( 242, 166, 77 ) )
 
-def_strickler_table_06.Set( u"Végétation sclérophylle", 10 )
-def_strickler_table_06.SetAttrValue( u"Végétation sclérophylle", "323" )
-def_strickler_table_06.SetColor( u"Végétation sclérophylle", QColor( 166, 230, 77 ) )
+def_strickler_table_06.Set( "Végétation sclérophylle", 10 )
+def_strickler_table_06.SetAttrValue( "Végétation sclérophylle", "323" )
+def_strickler_table_06.SetColor( "Végétation sclérophylle", QColor( 166, 230, 77 ) )
 
-def_strickler_table_06.Set( u"Landes et broussailles", 12 )
-def_strickler_table_06.SetAttrValue( u"Landes et broussailles", "322" )
-def_strickler_table_06.SetColor( u"Landes et broussailles", QColor( 166, 255, 128 ) )
+def_strickler_table_06.Set( "Landes et broussailles", 12 )
+def_strickler_table_06.SetAttrValue( "Landes et broussailles", "322" )
+def_strickler_table_06.SetColor( "Landes et broussailles", QColor( 166, 255, 128 ) )
 
-def_strickler_table_06.Set( u"Tissu urbain discontinu", 32 )
-def_strickler_table_06.SetAttrValue( u"Tissu urbain discontinu", "112" )
-def_strickler_table_06.SetColor( u"Tissu urbain discontinu", QColor( 255, 0, 0 ) )
+def_strickler_table_06.Set( "Tissu urbain discontinu", 32 )
+def_strickler_table_06.SetAttrValue( "Tissu urbain discontinu", "112" )
+def_strickler_table_06.SetColor( "Tissu urbain discontinu", QColor( 255, 0, 0 ) )
 
-def_strickler_table_06.Set( u"Cours et voies d'eau", 88 )
-def_strickler_table_06.SetAttrValue( u"Cours et voies d'eau", "511" )
-def_strickler_table_06.SetColor( u"Cours et voies d'eau", QColor( 0, 204, 242 ) )
+def_strickler_table_06.Set( "Cours et voies d'eau", 88 )
+def_strickler_table_06.SetAttrValue( "Cours et voies d'eau", "511" )
+def_strickler_table_06.SetColor( "Cours et voies d'eau", QColor( 0, 204, 242 ) )
 
-def_strickler_table_06.Set( u"Oliveraies", 26 )
-def_strickler_table_06.SetAttrValue( u"Oliveraies", "223" )
-def_strickler_table_06.SetColor( u"Oliveraies", QColor( 230, 166, 0 ) )
+def_strickler_table_06.Set( "Oliveraies", 26 )
+def_strickler_table_06.SetAttrValue( "Oliveraies", "223" )
+def_strickler_table_06.SetColor( "Oliveraies", QColor( 230, 166, 0 ) )
 
-def_strickler_table_06.Set( u"Vignobles", 24 )
-def_strickler_table_06.SetAttrValue( u"Vignobles", "221" )
-def_strickler_table_06.SetColor( u"Vignobles", QColor( 230, 128, 0 ) )
+def_strickler_table_06.Set( "Vignobles", 24 )
+def_strickler_table_06.SetAttrValue( "Vignobles", "221" )
+def_strickler_table_06.SetColor( "Vignobles", QColor( 230, 128, 0 ) )
 
-def_strickler_table_06.Set( u"Rizières", 42 )
-def_strickler_table_06.SetAttrValue( u"Rizières", "213" )
-def_strickler_table_06.SetColor( u"Rizières", QColor( 230, 230, 0 ) )
+def_strickler_table_06.Set( "Rizières", 42 )
+def_strickler_table_06.SetAttrValue( "Rizières", "213" )
+def_strickler_table_06.SetColor( "Rizières", QColor( 230, 230, 0 ) )
 
-def_strickler_table_06.Set( u"Zones portuaires", 45 )
-def_strickler_table_06.SetAttrValue( u"Zones portuaires", "123" )
-def_strickler_table_06.SetColor( u"Zones portuaires", QColor( 230, 204, 204 ) )
+def_strickler_table_06.Set( "Zones portuaires", 45 )
+def_strickler_table_06.SetAttrValue( "Zones portuaires", "123" )
+def_strickler_table_06.SetColor( "Zones portuaires", QColor( 230, 204, 204 ) )
 
-def_strickler_table_06.Set( u"Zones industrielles ou commerciales et installations publiques", 30 )
-def_strickler_table_06.SetAttrValue( u"Zones industrielles ou commerciales et installations publiques", "121" )
-def_strickler_table_06.SetColor( u"Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
+def_strickler_table_06.Set( "Zones industrielles ou commerciales et installations publiques", 30 )
+def_strickler_table_06.SetAttrValue( "Zones industrielles ou commerciales et installations publiques", "121" )
+def_strickler_table_06.SetColor( "Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
 
-def_strickler_table_06.Set( u"Marais salants", 73 )
-def_strickler_table_06.SetAttrValue( u"Marais salants", "422" )
-def_strickler_table_06.SetColor( u"Marais salants", QColor( 230, 230, 255 ) )
+def_strickler_table_06.Set( "Marais salants", 73 )
+def_strickler_table_06.SetAttrValue( "Marais salants", "422" )
+def_strickler_table_06.SetColor( "Marais salants", QColor( 230, 230, 255 ) )
 
-def_strickler_table_06.Set( u"Marais intérieurs", 60 )
-def_strickler_table_06.SetAttrValue( u"Marais intérieurs", "411" )
-def_strickler_table_06.SetColor( u"Marais intérieurs", QColor( 166, 166, 255 ) )
+def_strickler_table_06.Set( "Marais intérieurs", 60 )
+def_strickler_table_06.SetAttrValue( "Marais intérieurs", "411" )
+def_strickler_table_06.SetColor( "Marais intérieurs", QColor( 166, 166, 255 ) )
 
-def_strickler_table_06.Set( u"Espaces verts urbains", 25 )
-def_strickler_table_06.SetAttrValue( u"Espaces verts urbains", "141" )
-def_strickler_table_06.SetColor( u"Espaces verts urbains", QColor( 255, 166, 255 ) )
+def_strickler_table_06.Set( "Espaces verts urbains", 25 )
+def_strickler_table_06.SetAttrValue( "Espaces verts urbains", "141" )
+def_strickler_table_06.SetColor( "Espaces verts urbains", QColor( 255, 166, 255 ) )
 
-def_strickler_table_06.Set( u"Lagunes littorales", 95 )
-def_strickler_table_06.SetAttrValue( u"Lagunes littorales", "521" )
-def_strickler_table_06.SetColor( u"Lagunes littorales", QColor( 0, 255, 166 ) )
+def_strickler_table_06.Set( "Lagunes littorales", 95 )
+def_strickler_table_06.SetAttrValue( "Lagunes littorales", "521" )
+def_strickler_table_06.SetColor( "Lagunes littorales", QColor( 0, 255, 166 ) )
 
-def_strickler_table_06.Set( u"Roches nues", 45 )
-def_strickler_table_06.SetAttrValue( u"Roches nues", "332" )
-def_strickler_table_06.SetColor( u"Roches nues", QColor( 204, 204, 204 ) )
+def_strickler_table_06.Set( "Roches nues", 45 )
+def_strickler_table_06.SetAttrValue( "Roches nues", "332" )
+def_strickler_table_06.SetColor( "Roches nues", QColor( 204, 204, 204 ) )
 
-def_strickler_table_06.Set( u"Terres arables hors périmètres d'irrigation", 31 )
-def_strickler_table_06.SetAttrValue( u"Terres arables hors périmètres d'irrigation", "211" )
-def_strickler_table_06.SetColor( u"Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
+def_strickler_table_06.Set( "Terres arables hors périmètres d'irrigation", 31 )
+def_strickler_table_06.SetAttrValue( "Terres arables hors périmètres d'irrigation", "211" )
+def_strickler_table_06.SetColor( "Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
 
-def_strickler_table_06.Set( u"Zones intertidales", 75 )
-def_strickler_table_06.SetAttrValue( u"Zones intertidales", "423" )
-def_strickler_table_06.SetColor( u"Zones intertidales", QColor( 166, 166, 230 ) )
+def_strickler_table_06.Set( "Zones intertidales", 75 )
+def_strickler_table_06.SetAttrValue( "Zones intertidales", "423" )
+def_strickler_table_06.SetColor( "Zones intertidales", QColor( 166, 166, 230 ) )
 
 
 def_strickler_table_06.Update()
@@ -447,95 +447,95 @@ CLC_decoupe.SetZLevel( 13 )
 if not(CLC_decoupe.ImportSHP( os.path.join(HYDRO_SAMPLES, 'HYDRO', 'CLC_decoupe.shp') )):
   raise ValueError('problem while loading LandCoverMap shape')
 attr_values = []
-attr_values.append( u"124" )
-attr_values.append( u"133" )
-attr_values.append( u"511" )
-attr_values.append( u"241" )
-attr_values.append( u"132" )
-attr_values.append( u"142" )
-attr_values.append( u"141" )
-attr_values.append( u"522" )
-attr_values.append( u"131" )
-attr_values.append( u"324" )
-attr_values.append( u"312" )
-attr_values.append( u"311" )
-attr_values.append( u"313" )
-attr_values.append( u"335" )
-attr_values.append( u"521" )
-attr_values.append( u"322" )
-attr_values.append( u"411" )
-attr_values.append( u"421" )
-attr_values.append( u"422" )
-attr_values.append( u"523" )
-attr_values.append( u"223" )
-attr_values.append( u"321" )
-attr_values.append( u"331" )
-attr_values.append( u"512" )
-attr_values.append( u"231" )
-attr_values.append( u"212" )
-attr_values.append( u"213" )
-attr_values.append( u"332" )
-attr_values.append( u"122" )
-attr_values.append( u"243" )
-attr_values.append( u"242" )
-attr_values.append( u"211" )
-attr_values.append( u"244" )
-attr_values.append( u"111" )
-attr_values.append( u"112" )
-attr_values.append( u"412" )
-attr_values.append( u"222" )
-attr_values.append( u"221" )
-attr_values.append( u"333" )
-attr_values.append( u"323" )
-attr_values.append( u"334" )
-attr_values.append( u"121" )
-attr_values.append( u"423" )
-attr_values.append( u"123" )
+attr_values.append( "124" )
+attr_values.append( "133" )
+attr_values.append( "511" )
+attr_values.append( "241" )
+attr_values.append( "132" )
+attr_values.append( "142" )
+attr_values.append( "141" )
+attr_values.append( "522" )
+attr_values.append( "131" )
+attr_values.append( "324" )
+attr_values.append( "312" )
+attr_values.append( "311" )
+attr_values.append( "313" )
+attr_values.append( "335" )
+attr_values.append( "521" )
+attr_values.append( "322" )
+attr_values.append( "411" )
+attr_values.append( "421" )
+attr_values.append( "422" )
+attr_values.append( "523" )
+attr_values.append( "223" )
+attr_values.append( "321" )
+attr_values.append( "331" )
+attr_values.append( "512" )
+attr_values.append( "231" )
+attr_values.append( "212" )
+attr_values.append( "213" )
+attr_values.append( "332" )
+attr_values.append( "122" )
+attr_values.append( "243" )
+attr_values.append( "242" )
+attr_values.append( "211" )
+attr_values.append( "244" )
+attr_values.append( "111" )
+attr_values.append( "112" )
+attr_values.append( "412" )
+attr_values.append( "222" )
+attr_values.append( "221" )
+attr_values.append( "333" )
+attr_values.append( "323" )
+attr_values.append( "334" )
+attr_values.append( "121" )
+attr_values.append( "423" )
+attr_values.append( "123" )
 types = []
-types.append( u"Aéroports" )
-types.append( u"Chantiers" )
-types.append( u"Cours et voies d'eau" )
-types.append( u"Cultures annuelles associées à des cultures permanentes" )
-types.append( u"Décharges" )
-types.append( u"Equipements sportifs et de loisirs" )
-types.append( u"Espaces verts urbains" )
-types.append( u"Estuaires" )
-types.append( u"Extraction de matériaux" )
-types.append( u"Forêt et végétation arbustive en mutation" )
-types.append( u"Forêts de conifères" )
-types.append( u"Forêts de feuillus" )
-types.append( u"Forêts mélangées" )
-types.append( u"Glaciers et neiges éternelles" )
-types.append( u"Lagunes littorales" )
-types.append( u"Landes et broussailles" )
-types.append( u"Marais intérieurs" )
-types.append( u"Marais maritimes" )
-types.append( u"Marais salants" )
-types.append( u"Mers et océans" )
-types.append( u"Oliveraies" )
-types.append( u"Pelouses et pâturages naturels" )
-types.append( u"Plages, dunes et sable" )
-types.append( u"Plans d'eau" )
-types.append( u"Prairies et autres surfaces toujours en herbe à usage agricole" )
-types.append( u"Périmètres irrigués en permanence" )
-types.append( u"Rizières" )
-types.append( u"Roches nues" )
-types.append( u"Réseaux routier et ferroviaire et espaces associés" )
-types.append( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants" )
-types.append( u"Systèmes culturaux et parcellaires complexes" )
-types.append( u"Terres arables hors périmètres d'irrigation" )
-types.append( u"Territoires agroforestiers" )
-types.append( u"Tissu urbain continu" )
-types.append( u"Tissu urbain discontinu" )
-types.append( u"Tourbières" )
-types.append( u"Vergers et petits fruits" )
-types.append( u"Vignobles" )
-types.append( u"Végétation clairsemée" )
-types.append( u"Végétation sclérophylle" )
-types.append( u"Zones incendiées" )
-types.append( u"Zones industrielles ou commerciales et installations publiques" )
-types.append( u"Zones intertidales" )
-types.append( u"Zones portuaires" )
+types.append( "Aéroports" )
+types.append( "Chantiers" )
+types.append( "Cours et voies d'eau" )
+types.append( "Cultures annuelles associées à des cultures permanentes" )
+types.append( "Décharges" )
+types.append( "Equipements sportifs et de loisirs" )
+types.append( "Espaces verts urbains" )
+types.append( "Estuaires" )
+types.append( "Extraction de matériaux" )
+types.append( "Forêt et végétation arbustive en mutation" )
+types.append( "Forêts de conifères" )
+types.append( "Forêts de feuillus" )
+types.append( "Forêts mélangées" )
+types.append( "Glaciers et neiges éternelles" )
+types.append( "Lagunes littorales" )
+types.append( "Landes et broussailles" )
+types.append( "Marais intérieurs" )
+types.append( "Marais maritimes" )
+types.append( "Marais salants" )
+types.append( "Mers et océans" )
+types.append( "Oliveraies" )
+types.append( "Pelouses et pâturages naturels" )
+types.append( "Plages, dunes et sable" )
+types.append( "Plans d'eau" )
+types.append( "Prairies et autres surfaces toujours en herbe à usage agricole" )
+types.append( "Périmètres irrigués en permanence" )
+types.append( "Rizières" )
+types.append( "Roches nues" )
+types.append( "Réseaux routier et ferroviaire et espaces associés" )
+types.append( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants" )
+types.append( "Systèmes culturaux et parcellaires complexes" )
+types.append( "Terres arables hors périmètres d'irrigation" )
+types.append( "Territoires agroforestiers" )
+types.append( "Tissu urbain continu" )
+types.append( "Tissu urbain discontinu" )
+types.append( "Tourbières" )
+types.append( "Vergers et petits fruits" )
+types.append( "Vignobles" )
+types.append( "Végétation clairsemée" )
+types.append( "Végétation sclérophylle" )
+types.append( "Zones incendiées" )
+types.append( "Zones industrielles ou commerciales et installations publiques" )
+types.append( "Zones intertidales" )
+types.append( "Zones portuaires" )
 if CLC_decoupe.ImportDBF( os.path.join(HYDRO_SAMPLES, 'HYDRO', 'CLC_decoupe.dbf'), 'CODE_06', attr_values, types ) != CLC_decoupe.DBFStatus_OK:
   raise ValueError('problem while loading LandCoverMap data base')
 
@@ -611,10 +611,10 @@ from salome.hydrotools.controls import controlGeomProps
 
 geompy = geomBuilder.New(theStudy)
 
-print "Entry:", garonne_1_entry
+print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
-print "Geom shape:", HYDRO_garonne_1
-print "Geom shape name:", HYDRO_garonne_1.GetName()
+print("Geom shape:", HYDRO_garonne_1)
+print("Geom shape name:", HYDRO_garonne_1.GetName())
 
 
 # --- manual definition: geometrical faces
@@ -628,14 +628,14 @@ controlGeomProps(geompy, garonne_riveDroite,  32012.343241, 25998769.23615)
 # --- manual identification of all useful edge groups (boundary conditions)
 
 allEdgesIds = geompy.SubShapeAllIDs(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
-print "allEdgesIds", allEdgesIds
+print("allEdgesIds", allEdgesIds)
 
 (isDone, ClosedFreeBoundary, OpenFreeBoundary) = geompy.GetFreeBoundary(HYDRO_garonne_1)
 geompy.addToStudyInFather(HYDRO_garonne_1, ClosedFreeBoundary[0], "ClosedFreeBoundary")
 
 freeBoundary = geompy.ExtractShapes(ClosedFreeBoundary[0], geompy.ShapeType["EDGE"], True)
 freeBoundaryIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, freeBoundary[i]) for i in range(len(freeBoundary)) ]
-print "freeBoundaryIds", freeBoundaryIds
+print("freeBoundaryIds", freeBoundaryIds)
 
 [litMineur_droite] = geompy.GetSharedShapesMulti([garonne_riveDroite, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 [litMineur_gauche] = geompy.GetSharedShapesMulti([garonne_riveGauche, garonne_litMineur], geompy.ShapeType["EDGE"], True)
@@ -643,7 +643,7 @@ geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_droite, "litMineur_droite")
 geompy.addToStudyInFather(HYDRO_garonne_1, litMineur_gauche, "litMineur_gauche")
 rives = [litMineur_droite, litMineur_gauche]
 rivesIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, rives[i]) for i in range(len(rives)) ]
-print "rivesIds", rivesIds
+print("rivesIds", rivesIds)
 
 edges_litMineur = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_litMineur], geompy.ShapeType["EDGE"], True)
 edges_riveGauche = geompy.GetSharedShapesMulti([HYDRO_garonne_1, garonne_riveGauche], geompy.ShapeType["EDGE"], True)
@@ -652,20 +652,20 @@ edges_litMineurIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_litMineur[i])
 edges_riveGaucheIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveGauche[i]) for i in range(len(edges_riveGauche)) ]
 edges_riveDroiteIds = [ geompy.GetSubShapeID(HYDRO_garonne_1, edges_riveDroite[i]) for i in range(len(edges_riveDroite)) ]
 
-print "edges_litMineurIds", edges_litMineurIds 
-print "edges_riveGaucheIds", edges_riveGaucheIds
-print "edges_riveDroiteIds", edges_riveDroiteIds
+print("edges_litMineurIds", edges_litMineurIds) 
+print("edges_riveGaucheIds", edges_riveGaucheIds)
+print("edges_riveDroiteIds", edges_riveDroiteIds)
 
 sectionsIds = [Id for Id in edges_litMineurIds if Id not in rivesIds]
-print "sectionsIds", sectionsIds
+print("sectionsIds", sectionsIds)
 SectionsGaronne = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(SectionsGaronne, sectionsIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, SectionsGaronne, "SectionsGaronne")
 
 bordGaucheDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveGaucheIds]
 bordDroiteDomaineIds = [Id for Id in freeBoundaryIds if Id in edges_riveDroiteIds]
-print "bordGaucheDomaineIds", bordGaucheDomaineIds
-print "bordDroiteDomaineIds", bordDroiteDomaineIds
+print("bordGaucheDomaineIds", bordGaucheDomaineIds)
+print("bordDroiteDomaineIds", bordDroiteDomaineIds)
 bordGaucheDomaine = geompy.CreateGroup(HYDRO_garonne_1, geompy.ShapeType["EDGE"])
 geompy.UnionIDs(bordGaucheDomaine, bordGaucheDomaineIds)
 geompy.addToStudyInFather(HYDRO_garonne_1, bordGaucheDomaine, "bordGaucheDomaine")
@@ -754,7 +754,7 @@ aval_2 = garonne_1.GroupOnGeom(aval,'aval',SMESH.NODE)
 
 garonne_1.SetAutoColor( 1 )
 tmpdir = tempfile.mkdtemp()
-print "tmpdir=",tmpdir
+print("tmpdir=",tmpdir)
 fichierMaillage = os.path.join(tmpdir, 'garonne_1.med')
 garonne_1.ExportMED(fichierMaillage, 0, SMESH.MED_V2_2, 1, None ,1)
 
index a6cef1194fc27ff05370e196ba1359f7b71f5a24..a9076fb7897650320dd6c8d179f8c01d7784d789 100644 (file)
@@ -40,8 +40,8 @@ source_suffix = '.rst'
 master_doc = 'index'
 
 # General information about the project.
-project = u'module HYDRO'
-copyright = u'2015-2017, EDF'
+project = 'module HYDRO'
+copyright = '2015-2017, EDF'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
@@ -187,7 +187,7 @@ latex_elements = {
 # (source start file, target name, title, author, documentclass [howto/manual]).
 latex_documents = [
   ('index', 'moduleHYDRO_V82.tex', project,
-   u'EDF', 'manual'),
+   'EDF', 'manual'),
 ]
 
 # The name of an image file (relative to this directory) to place at the top of
@@ -205,7 +205,7 @@ latex_documents = [
 #latex_show_urls = False
 
 # Additional stuff for the LaTeX preamble.
-latex_preamble = """\usepackage{pdfpages}
+latex_preamble = """\\usepackage{pdfpages}
 \setcounter{tocdepth}{2}"""
 
 # Documents to append as an appendix to all manuals.
index 2c25738172914ac6c2dea6c71003c72a86d79cbe..5c175e36c802d65533d0bc63bc72002b83a09766 100644 (file)
@@ -175,7 +175,7 @@ def activateOBContextMenuItem(parent, item, *menuPath):
         selectObjectBrowserItem(item, parent)
         openItemContextMenu(waitForObject(":Object Browser_QtxTreeView"), name, 10, 1, 0)
         popupItem(*menuPath)
-    except LookupError,err:
+    except LookupError as err:
         test.fail("Unexpectedly failed to find the object in OB", str(err))
 
 """
@@ -458,7 +458,7 @@ def checkContainsStringValues(values, stringKeys):
     res = True
     
     for key in stringKeys:
-        if not values.has_key(key):
+        if key not in values:
             res = False
             test.fatal("Map of values doesn't contain %s key" % key)
         elif len(values[key]) < 1:
@@ -489,7 +489,7 @@ def checkContainsIntValues(values, intKeys):
     res = True
     
     for key in intKeys:
-        if not values.has_key(key):
+        if key not in values:
             res = False
             test.fatal("Map of values doesn't contain %s key" % key)
         elif not isInteger(values[key]):
@@ -502,7 +502,7 @@ def checkContainsListOfIntValues(values, listOfIntKeys, sep):
     res = True
     
     for key in listOfIntKeys:
-        if not values.has_key(key):
+        if key not in values:
             res = False
             test.fatal("Map of values doesn't contain %s key" % key)
         else:
@@ -519,7 +519,7 @@ def checkContainsFloatValues(values, floatKeys):
     res = True
     
     for key in floatKeys:
-        if not values.has_key(key):
+        if key not in values:
             res = False
             test.fatal("Map of values doesn't contain %s key" % key)
         elif not isFloat(values[key]):
index ab85ffd60eba373d17732d0a16db95da7a438e6f..7b5fd09539a76a92985c3c2d66c16fcb3e5f2546 100644 (file)
@@ -190,7 +190,7 @@ def S2():
     test.vp("VP3")  # Sections list widget
     
     # 31. Click Undo button 10 times
-    for i in xrange(1, 11):
+    for i in range(1, 11):
         clickButton(waitForObject(":Sections.Undo_QToolButton"))
         
     # 33. Check that "Closed_spline" and "Open_spline" don't contain points now
@@ -205,7 +205,7 @@ def S2():
     #test.compare(findObject(":Sections.0_QModelIndex_2").text, "0")
     
     # 34. Click Redo button 10 times
-    for i in xrange(1, 11):
+    for i in range(1, 11):
         clickButton(waitForObject(":Sections.Redo_QToolButton"))
 
     # 35. Click Apply button
index 72246bc44133406dfb07011d1b3a2f3f71608033..7b1bce0ca1ed09f5e3d739181f9e95051200d18b 100644 (file)
@@ -8,16 +8,16 @@ def controlGeomProps(geompy, geomShape, refLength, refArea):
   with relative precision of 1.E-3
   """
   props = geompy.BasicProperties(geomShape)
-  print " Wires length: ", props[0]
-  print " Surface area: ", props[1]
-  print " Volume      : ", props[2]
+  print(" Wires length: ", props[0])
+  print(" Surface area: ", props[1])
+  print(" Volume      : ", props[2])
   deltaLength = 2.0*abs((props[0] - refLength)/(props[0] + refLength))
   deltaArea   = 2.0*abs((props[1] - refArea)/(props[1] + refArea))
   if deltaLength > 1e-3 or deltaArea > 1e-3 or props[2] != 0:
-    print "While must be:"
-    print " Wires length: ", refLength
-    print " Surface area: ", refArea
-    print " Volume      : ", 0.
+    print("While must be:")
+    print(" Wires length: ", refLength)
+    print(" Surface area: ", refArea)
+    print(" Volume      : ", 0.)
     raise ValueError("Bad length or area")
 
 # -------------------------------------
@@ -37,13 +37,13 @@ def controlMeshStats(aMesh, nbNodes, nbEdges, nbTriangles):
   mesures = aMesh.GetMeshInfo()
   #print mesures
   d= {}
-  for key, value in mesures.iteritems():
+  for key, value in mesures.items():
     d[str(key)] = value
   for key in ('Entity_Triangle', 'Entity_Edge', 'Entity_Node'):
     if (d[key] < (1.0 - tolerance)*references[key]) \
     or (d[key] > (1.0 + tolerance)*references[key]):
-      print aMesh.GetName()
-      print key, ": value: ", d[key], " reference: ", references[key]
+      print(aMesh.GetName())
+      print(key, ": value: ", d[key], " reference: ", references[key])
       raise ValueError("Bad number of nodes or elements")
 
 # -------------------------------------
@@ -59,8 +59,8 @@ def controlSubMeshStats(aSubMesh, nbItems):
   nbRef = sum(mesures)
   if (nbItems < (1.0 - tolerance)*nbRef) \
   or (nbItems > (1.0 + tolerance)*nbRef):
-    print aSubMesh.GetName()
-    print "value: ", nbRef, " reference: ", nbItems
+    print(aSubMesh.GetName())
+    print("value: ", nbRef, " reference: ", nbItems)
     raise ValueError("Bad number of nodes or elements")
 
 # -------------------------------------
@@ -70,7 +70,7 @@ def controlStatZ(statz,refstatz):
   Compare min, max, mean, standard deviation, percentile 5 and 95 of z of regions with a reference,
   with a precision of 0.05m by default and 1.0m for min and max.
   """
-  for nomreg, valsref in refstatz.iteritems():
+  for nomreg, valsref in refstatz.items():
     vals = statz[nomreg]
     tolerance =0.1
     if len(valsref) > 6:
@@ -81,14 +81,14 @@ def controlStatZ(statz,refstatz):
     or abs(vals[3] - valsref[3]) > tolerance \
     or abs(vals[4] - valsref[4]) > 10*tolerance \
     or abs(vals[5] - valsref[5]) > 10*tolerance :
-      print nomreg
-      print "value: ", vals
-      print "reference: ", valsref, "tolerance for mean, std dev: ", tolerance, "and ", 10*tolerance, "for other values"
+      print(nomreg)
+      print("value: ", vals)
+      print("reference: ", valsref, "tolerance for mean, std dev: ", tolerance, "and ", 10*tolerance, "for other values")
       raise ValueError("z interpolation error")
     else:
-      print nomreg
-      print "value: ", vals
-      print "reference: ", valsref, "tolerance for mean, std dev: ", tolerance, "and ", 10*tolerance, "for other values: OK"
+      print(nomreg)
+      print("value: ", vals)
+      print("reference: ", valsref, "tolerance for mean, std dev: ", tolerance, "and ", 10*tolerance, "for other values: OK")
 
 
 import MEDLoader
@@ -99,10 +99,10 @@ def controlTelemacResult(aMedFile, refs):
   """
   Check if the result med file exist and contains result fields
   """
-  print aMedFile
+  print(aMedFile)
   for i in range(10):
     time.sleep(3)
-    print 'waiting result...'
+    print('waiting result...')
     if os.path.exists(aMedFile):
       break
   time.sleep(3)
@@ -117,10 +117,10 @@ def controlTelemacResult(aMedFile, refs):
   stats['nbNodes'] = infos[3]
   stats['fieldNames'] = MEDLoader.GetNodeFieldNamesOnMesh(aMedFile, names[0])
   stats['iterations'] = MEDLoader.GetNodeFieldIterations(aMedFile, names[0], 'SURFACE LIBRE')
-  for nomreg, valsref in refs.iteritems():
+  for nomreg, valsref in refs.items():
     vals = stats[nomreg]
     if vals != valsref:
-      print nomreg
-      print "value: ", vals, " reference: ", valsref
+      print(nomreg)
+      print("value: ", vals, " reference: ", valsref)
       raise ValueError("error in Telemac result")
 
index 55c017a64d991727ad5000c7e3dafc47ffc19aa9..914afc18ee232f5617de5845e022726488649eab 100755 (executable)
@@ -44,10 +44,10 @@ def assignStrickler(nomCas, input_file_name, output_file_name="", med_field_name
   while not erreur:
 
     if verbose:
-      print "nomCas:", nomCas
-      print "input_file_name:", input_file_name
-      print "output_file_name:", output_file_name
-      print "med_field_name:", med_field_name
+      print("nomCas:", nomCas)
+      print("input_file_name:", input_file_name)
+      print("output_file_name:", output_file_name)
+      print("med_field_name:", med_field_name)
 
 # 1. Controls
 # 1.1. Check calculation case
@@ -78,7 +78,7 @@ def assignStrickler(nomCas, input_file_name, output_file_name="", med_field_name
 #
     nbnodes = meshMEDFileRead.getNumberOfNodes()
     if verbose:
-      print "Number of nodes: %d" % nbnodes
+      print("Number of nodes: %d" % nbnodes)
 #
     coords = meshMEDFileRead.getCoords()
     #print "coords =\n", coords
@@ -97,7 +97,7 @@ def assignStrickler(nomCas, input_file_name, output_file_name="", med_field_name
     coeff.setInfoOnComponents(["Strickler [SI]"])
     #print "coeff =\n", coeff
     if verbose:
-      print ".. Ecriture du Strickler sous le nom '"+med_field_name+"'"
+      print(".. Ecriture du Strickler sous le nom '"+med_field_name+"'")
     fieldOnNodes = ml.MEDCouplingFieldDouble(ml.ON_NODES)
     fieldOnNodes.setName(med_field_name)
     fieldOnNodes.setMesh(meshMEDFileRead.getMeshAtLevel(0))
@@ -115,6 +115,6 @@ def assignStrickler(nomCas, input_file_name, output_file_name="", med_field_name
     break
 
   if erreur:
-    print message
+    print(message)
 
   return
index 2c81d63ec80eb70f3f8c9b2c2572797867ed9661..ead2f43bbc8d47ef130217f0cc16d8e961625da8 100644 (file)
@@ -109,13 +109,13 @@ def interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef=90., regions_int
 
     doc = HYDROPy.HYDROData_Document.Document(theStudyId)
     cas = doc.FindObjectByName(nomCas)
-    print ( "cas : ", cas)
+    print(( "cas : ", cas))
     custom_inter = MyInterpolator()
 
     basename = fichierMaillage[:-4]
     fichierFMaillage = basename + 'F.med'
 
-    print ("dicoGroupeRegion = ", dicoGroupeRegion)
+    print(("dicoGroupeRegion = ", dicoGroupeRegion))
     ligne = "fichierMaillage  = %s" % fichierMaillage
     ligne += "\nfichierFMaillage = %s" % fichierFMaillage
     if xyzFile:
@@ -236,7 +236,7 @@ def interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef=90., regions_int
 #
       interpolMethod = 0
       if regions_interp_method is not None:
-        if isinstance(regions_interp_method, dict) and nomreg in regions_interp_method.keys():
+        if isinstance(regions_interp_method, dict) and nomreg in list(regions_interp_method.keys()):
           interpolMethod = int(regions_interp_method[nomreg])
         elif isinstance(regions_interp_method, int):
           interpolMethod = regions_interp_method
@@ -249,7 +249,7 @@ def interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef=90., regions_int
       maxz = np.amax(vz)
       meanz = np.mean(vz)
       stdz = np.std(vz)
-      v05z = np.percentile(vz, 05)
+      v05z = np.percentile(vz, 0o5)
       v95z = np.percentile(vz, 95)
 #
       if verbose:
@@ -356,7 +356,7 @@ def interpolZ(nomCas, fichierMaillage, dicoGroupeRegion, zUndef=90., regions_int
     break
 #
   if erreur:
-    print message
+    print(message)
 #
   return statz
 
@@ -387,7 +387,7 @@ def interpolZ_B(bathyName, fichierMaillage, gr_face_name, zUndef=90., interp_met
   """
   doc = HYDROPy.HYDROData_Document.Document(theStudyId)
   bathy_obj = doc.FindObjectByName(bathyName)
-  print ( "bathy : ", bathy_obj)
+  print(( "bathy : ", bathy_obj))
   if bathy_obj is None:
     print ( "bathy is None")
     return False
@@ -414,7 +414,7 @@ def interpolZ_B(bathyName, fichierMaillage, gr_face_name, zUndef=90., interp_met
   t_group_n = meshMEDFileRead.getGroupsNames()
   gr_face_name_tr = gr_face_name.strip()
   if gr_face_name_tr not in t_group_n:
-    print "Group not found"
+    print("Group not found")
     return False         
 #
 # 3. Gets the information about the nodes
@@ -491,7 +491,7 @@ def interpolZ_B(bathyName, fichierMaillage, gr_face_name, zUndef=90., interp_met
   maxz = np.amax(vz)
   meanz = np.mean(vz)
   stdz = np.std(vz)
-  v05z = np.percentile(vz, 05)
+  v05z = np.percentile(vz, 0o5)
   v95z = np.percentile(vz, 95)
 #
   if verbose:
index eb3dbca5d0e12e582e241529c1e327b3ee7ae0a8..40b1f23391781d285feec53507c49319f0a139d8 100644 (file)
@@ -31,37 +31,37 @@ DefStr.SetName( "DefStr" );
 
 DefStr.SetAttrName( "CODE_06" );
 
-DefStr.Set( u"Zones de champs, prairies, sans cultures", 20 );
-DefStr.SetAttrValue( u"Zones de champs, prairies, sans cultures", "511" );
-DefStr.SetColor( u"Zones de champs, prairies, sans cultures", QColor( 255, 0, 0 ) );
+DefStr.Set( "Zones de champs, prairies, sans cultures", 20 );
+DefStr.SetAttrValue( "Zones de champs, prairies, sans cultures", "511" );
+DefStr.SetColor( "Zones de champs, prairies, sans cultures", QColor( 255, 0, 0 ) );
 
-DefStr.Set( u"Zones à faible urbanisation (bourg)", 9 );
-DefStr.SetAttrValue( u"Zones à faible urbanisation (bourg)", "" );
-DefStr.SetColor( u"Zones à faible urbanisation (bourg)", QColor( 0, 0, 255 ) );
+DefStr.Set( "Zones à faible urbanisation (bourg)", 9 );
+DefStr.SetAttrValue( "Zones à faible urbanisation (bourg)", "" );
+DefStr.SetColor( "Zones à faible urbanisation (bourg)", QColor( 0, 0, 255 ) );
 
-DefStr.Set( u"Zones de champs cultivé à végétation haute", 12.5 );
-DefStr.SetAttrValue( u"Zones de champs cultivé à végétation haute", "" );
-DefStr.SetColor( u"Zones de champs cultivé à végétation haute", QColor( 0, 255, 0 ) );
+DefStr.Set( "Zones de champs cultivé à végétation haute", 12.5 );
+DefStr.SetAttrValue( "Zones de champs cultivé à végétation haute", "" );
+DefStr.SetColor( "Zones de champs cultivé à végétation haute", QColor( 0, 255, 0 ) );
 
-DefStr.Set( u"Canaux artificiels en béton", 65 );
-DefStr.SetAttrValue( u"Canaux artificiels en béton", "" );
-DefStr.SetColor( u"Canaux artificiels en béton", QColor( 136, 136, 136 ) );
+DefStr.Set( "Canaux artificiels en béton", 65 );
+DefStr.SetAttrValue( "Canaux artificiels en béton", "" );
+DefStr.SetColor( "Canaux artificiels en béton", QColor( 136, 136, 136 ) );
 
-DefStr.Set( u"Canaux naturels", 35 );
-DefStr.SetAttrValue( u"Canaux naturels", "" );
-DefStr.SetColor( u"Canaux naturels", QColor( 255, 0, 255 ) );
+DefStr.Set( "Canaux naturels", 35 );
+DefStr.SetAttrValue( "Canaux naturels", "" );
+DefStr.SetColor( "Canaux naturels", QColor( 255, 0, 255 ) );
 
-DefStr.Set( u"Zones à forte urbanisation (agglomération)", 9 );
-DefStr.SetAttrValue( u"Zones à forte urbanisation (agglomération)", "" );
-DefStr.SetColor( u"Zones à forte urbanisation (agglomération)", QColor( 18, 52, 86 ) );
+DefStr.Set( "Zones à forte urbanisation (agglomération)", 9 );
+DefStr.SetAttrValue( "Zones à forte urbanisation (agglomération)", "" );
+DefStr.SetColor( "Zones à forte urbanisation (agglomération)", QColor( 18, 52, 86 ) );
 
-DefStr.Set( u"Zones de champs cultivé à végétation basse", 17.5 );
-DefStr.SetAttrValue( u"Zones de champs cultivé à végétation basse", "512" );
-DefStr.SetColor( u"Zones de champs cultivé à végétation basse", QColor( 255, 255, 0 ) );
+DefStr.Set( "Zones de champs cultivé à végétation basse", 17.5 );
+DefStr.SetAttrValue( "Zones de champs cultivé à végétation basse", "512" );
+DefStr.SetColor( "Zones de champs cultivé à végétation basse", QColor( 255, 255, 0 ) );
 
-DefStr.Set( u"Zones d'arbustes, de sous-bois", 10 );
-DefStr.SetAttrValue( u"Zones d'arbustes, de sous-bois", "" );
-DefStr.SetColor( u"Zones d'arbustes, de sous-bois", QColor( 0, 255, 255 ) );
+DefStr.Set( "Zones d'arbustes, de sous-bois", 10 );
+DefStr.SetAttrValue( "Zones d'arbustes, de sous-bois", "" );
+DefStr.SetColor( "Zones d'arbustes, de sous-bois", QColor( 0, 255, 255 ) );
 
 
 DefStr.Update();
@@ -70,23 +70,23 @@ test_LCM = hydro_doc.CreateObject( KIND_LAND_COVER_MAP );
 test_LCM.SetName( "test_LCM" );
 
 attr_values = QStringList()
-attr_values.append( u"" )
-attr_values.append( u"" )
-attr_values.append( u"" )
-attr_values.append( u"512" )
-attr_values.append( u"" )
-attr_values.append( u"511" )
-attr_values.append( u"" )
-attr_values.append( u"" )
+attr_values.append( "" )
+attr_values.append( "" )
+attr_values.append( "" )
+attr_values.append( "512" )
+attr_values.append( "" )
+attr_values.append( "511" )
+attr_values.append( "" )
+attr_values.append( "" )
 types = QStringList()
-types.append( u"Canaux artificiels en béton" )
-types.append( u"Canaux naturels" )
-types.append( u"Zones d'arbustes, de sous-bois" )
-types.append( u"Zones de champs cultivé à végétation basse" )
-types.append( u"Zones de champs cultivé à végétation haute" )
-types.append( u"Zones de champs, prairies, sans cultures" )
-types.append( u"Zones à faible urbanisation (bourg)" )
-types.append( u"Zones à forte urbanisation (agglomération)" )
+types.append( "Canaux artificiels en béton" )
+types.append( "Canaux naturels" )
+types.append( "Zones d'arbustes, de sous-bois" )
+types.append( "Zones de champs cultivé à végétation basse" )
+types.append( "Zones de champs cultivé à végétation haute" )
+types.append( "Zones de champs, prairies, sans cultures" )
+types.append( "Zones à faible urbanisation (bourg)" )
+types.append( "Zones à forte urbanisation (agglomération)" )
 test_LCM.ImportSHP( 'lc_dump.shp' )
 test_LCM.ImportDBF( 'lc_dump.dbf', 'CODE_06', attr_values, types )
 
index c7d80b22ea502153ae94a90e7938e5f974b1e4c4..79ad0dda5ec5915ed6ba6d180e7f94cba57cba1b 100644 (file)
@@ -11,181 +11,181 @@ ST.SetName( "ST" )
 
 ST.SetAttrName( "CODE_06" )
 
-ST.Set( u"Pelouses et pâturages naturels", 31 )
-ST.SetAttrValue( u"Pelouses et pâturages naturels", "321" )
-ST.SetColor( u"Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
+ST.Set( "Pelouses et pâturages naturels", 31 )
+ST.SetAttrValue( "Pelouses et pâturages naturels", "321" )
+ST.SetColor( "Pelouses et pâturages naturels", QColor( 204, 242, 77 ) )
 
-ST.Set( u"Aéroports", 43 )
-ST.SetAttrValue( u"Aéroports", "124" )
-ST.SetColor( u"Aéroports", QColor( 230, 204, 230 ) )
+ST.Set( "Aéroports", 43 )
+ST.SetAttrValue( "Aéroports", "124" )
+ST.SetColor( "Aéroports", QColor( 230, 204, 230 ) )
 
-ST.Set( u"Systèmes culturaux et parcellaires complexes", 19 )
-ST.SetAttrValue( u"Systèmes culturaux et parcellaires complexes", "242" )
-ST.SetColor( u"Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
+ST.Set( "Systèmes culturaux et parcellaires complexes", 19 )
+ST.SetAttrValue( "Systèmes culturaux et parcellaires complexes", "242" )
+ST.SetColor( "Systèmes culturaux et parcellaires complexes", QColor( 255, 230, 77 ) )
 
-ST.Set( u"Cultures annuelles associées à des cultures permanentes", 27 )
-ST.SetAttrValue( u"Cultures annuelles associées à des cultures permanentes", "241" )
-ST.SetColor( u"Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
+ST.Set( "Cultures annuelles associées à des cultures permanentes", 27 )
+ST.SetAttrValue( "Cultures annuelles associées à des cultures permanentes", "241" )
+ST.SetColor( "Cultures annuelles associées à des cultures permanentes", QColor( 255, 230, 166 ) )
 
-ST.Set( u"Forêt et végétation arbustive en mutation", 9 )
-ST.SetAttrValue( u"Forêt et végétation arbustive en mutation", "324" )
-ST.SetColor( u"Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
+ST.Set( "Forêt et végétation arbustive en mutation", 9 )
+ST.SetAttrValue( "Forêt et végétation arbustive en mutation", "324" )
+ST.SetColor( "Forêt et végétation arbustive en mutation", QColor( 166, 242, 0 ) )
 
-ST.Set( u"Décharges", 21 )
-ST.SetAttrValue( u"Décharges", "132" )
-ST.SetColor( u"Décharges", QColor( 166, 77, 0 ) )
+ST.Set( "Décharges", 21 )
+ST.SetAttrValue( "Décharges", "132" )
+ST.SetColor( "Décharges", QColor( 166, 77, 0 ) )
 
-ST.Set( u"Végétation clairsemée", 43 )
-ST.SetAttrValue( u"Végétation clairsemée", "333" )
-ST.SetColor( u"Végétation clairsemée", QColor( 204, 255, 204 ) )
+ST.Set( "Végétation clairsemée", 43 )
+ST.SetAttrValue( "Végétation clairsemée", "333" )
+ST.SetColor( "Végétation clairsemée", QColor( 204, 255, 204 ) )
 
-ST.Set( u"Prairies et autres surfaces toujours en herbe à usage agricole", 33 )
-ST.SetAttrValue( u"Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
-ST.SetColor( u"Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
+ST.Set( "Prairies et autres surfaces toujours en herbe à usage agricole", 33 )
+ST.SetAttrValue( "Prairies et autres surfaces toujours en herbe à usage agricole", "231" )
+ST.SetColor( "Prairies et autres surfaces toujours en herbe à usage agricole", QColor( 230, 230, 77 ) )
 
-ST.Set( u"Périmètres irrigués en permanence", 43 )
-ST.SetAttrValue( u"Périmètres irrigués en permanence", "212" )
-ST.SetColor( u"Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
+ST.Set( "Périmètres irrigués en permanence", 43 )
+ST.SetAttrValue( "Périmètres irrigués en permanence", "212" )
+ST.SetColor( "Périmètres irrigués en permanence", QColor( 255, 255, 0 ) )
 
-ST.Set( u"Plans d'eau", 90 )
-ST.SetAttrValue( u"Plans d'eau", "512" )
-ST.SetColor( u"Plans d'eau", QColor( 128, 242, 230 ) )
+ST.Set( "Plans d'eau", 90 )
+ST.SetAttrValue( "Plans d'eau", "512" )
+ST.SetColor( "Plans d'eau", QColor( 128, 242, 230 ) )
 
-ST.Set( u"Territoires agroforestiers", 14 )
-ST.SetAttrValue( u"Territoires agroforestiers", "244" )
-ST.SetColor( u"Territoires agroforestiers", QColor( 242, 204, 166 ) )
+ST.Set( "Territoires agroforestiers", 14 )
+ST.SetAttrValue( "Territoires agroforestiers", "244" )
+ST.SetColor( "Territoires agroforestiers", QColor( 242, 204, 166 ) )
 
-ST.Set( u"Forêts mélangées", 10 )
-ST.SetAttrValue( u"Forêts mélangées", "313" )
-ST.SetColor( u"Forêts mélangées", QColor( 77, 255, 0 ) )
+ST.Set( "Forêts mélangées", 10 )
+ST.SetAttrValue( "Forêts mélangées", "313" )
+ST.SetColor( "Forêts mélangées", QColor( 77, 255, 0 ) )
 
-ST.Set( u"Glaciers et neiges éternelles", 75 )
-ST.SetAttrValue( u"Glaciers et neiges éternelles", "335" )
-ST.SetColor( u"Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
+ST.Set( "Glaciers et neiges éternelles", 75 )
+ST.SetAttrValue( "Glaciers et neiges éternelles", "335" )
+ST.SetColor( "Glaciers et neiges éternelles", QColor( 166, 230, 204 ) )
 
-ST.Set( u"Plages, dunes et sable", 39 )
-ST.SetAttrValue( u"Plages, dunes et sable", "331" )
-ST.SetColor( u"Plages, dunes et sable", QColor( 230, 230, 230 ) )
+ST.Set( "Plages, dunes et sable", 39 )
+ST.SetAttrValue( "Plages, dunes et sable", "331" )
+ST.SetColor( "Plages, dunes et sable", QColor( 230, 230, 230 ) )
 
-ST.Set( u"Zones incendiées", 65 )
-ST.SetAttrValue( u"Zones incendiées", "334" )
-ST.SetColor( u"Zones incendiées", QColor( 0, 0, 0 ) )
+ST.Set( "Zones incendiées", 65 )
+ST.SetAttrValue( "Zones incendiées", "334" )
+ST.SetColor( "Zones incendiées", QColor( 0, 0, 0 ) )
 
-ST.Set( u"Tissu urbain continu", 15 )
-ST.SetAttrValue( u"Tissu urbain continu", "111" )
-ST.SetColor( u"Tissu urbain continu", QColor( 230, 0, 77 ) )
+ST.Set( "Tissu urbain continu", 15 )
+ST.SetAttrValue( "Tissu urbain continu", "111" )
+ST.SetColor( "Tissu urbain continu", QColor( 230, 0, 77 ) )
 
-ST.Set( u"Chantiers", 17 )
-ST.SetAttrValue( u"Chantiers", "133" )
-ST.SetColor( u"Chantiers", QColor( 255, 77, 255 ) )
+ST.Set( "Chantiers", 17 )
+ST.SetAttrValue( "Chantiers", "133" )
+ST.SetColor( "Chantiers", QColor( 255, 77, 255 ) )
 
-ST.Set( u"Estuaires", 98 )
-ST.SetAttrValue( u"Estuaires", "522" )
-ST.SetColor( u"Estuaires", QColor( 166, 255, 230 ) )
+ST.Set( "Estuaires", 98 )
+ST.SetAttrValue( "Estuaires", "522" )
+ST.SetColor( "Estuaires", QColor( 166, 255, 230 ) )
 
-ST.Set( u"Marais maritimes", 74 )
-ST.SetAttrValue( u"Marais maritimes", "421" )
-ST.SetColor( u"Marais maritimes", QColor( 204, 204, 255 ) )
+ST.Set( "Marais maritimes", 74 )
+ST.SetAttrValue( "Marais maritimes", "421" )
+ST.SetColor( "Marais maritimes", QColor( 204, 204, 255 ) )
 
-ST.Set( u"Forêts de conifères", 13 )
-ST.SetAttrValue( u"Forêts de conifères", "312" )
-ST.SetColor( u"Forêts de conifères", QColor( 0, 166, 0 ) )
+ST.Set( "Forêts de conifères", 13 )
+ST.SetAttrValue( "Forêts de conifères", "312" )
+ST.SetColor( "Forêts de conifères", QColor( 0, 166, 0 ) )
 
-ST.Set( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 16 )
-ST.SetAttrValue( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
-ST.SetColor( u"Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
+ST.Set( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", 16 )
+ST.SetAttrValue( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", "243" )
+ST.SetColor( "Surfaces essentiellement agricoles, interrompues par des espaces naturels importants", QColor( 230, 204, 77 ) )
 
-ST.Set( u"Tourbières", 65 )
-ST.SetAttrValue( u"Tourbières", "412" )
-ST.SetColor( u"Tourbières", QColor( 77, 77, 255 ) )
+ST.Set( "Tourbières", 65 )
+ST.SetAttrValue( "Tourbières", "412" )
+ST.SetColor( "Tourbières", QColor( 77, 77, 255 ) )
 
-ST.Set( u"Extraction de matériaux", 19 )
-ST.SetAttrValue( u"Extraction de matériaux", "131" )
-ST.SetColor( u"Extraction de matériaux", QColor( 166, 0, 204 ) )
+ST.Set( "Extraction de matériaux", 19 )
+ST.SetAttrValue( "Extraction de matériaux", "131" )
+ST.SetColor( "Extraction de matériaux", QColor( 166, 0, 204 ) )
 
-ST.Set( u"Réseaux routier et ferroviaire et espaces associés", 35 )
-ST.SetAttrValue( u"Réseaux routier et ferroviaire et espaces associés", "122" )
-ST.SetColor( u"Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
+ST.Set( "Réseaux routier et ferroviaire et espaces associés", 35 )
+ST.SetAttrValue( "Réseaux routier et ferroviaire et espaces associés", "122" )
+ST.SetColor( "Réseaux routier et ferroviaire et espaces associés", QColor( 204, 0, 0 ) )
 
-ST.Set( u"Mers et océans", 99 )
-ST.SetAttrValue( u"Mers et océans", "523" )
-ST.SetColor( u"Mers et océans", QColor( 230, 242, 255 ) )
+ST.Set( "Mers et océans", 99 )
+ST.SetAttrValue( "Mers et océans", "523" )
+ST.SetColor( "Mers et océans", QColor( 230, 242, 255 ) )
 
-ST.Set( u"Equipements sportifs et de loisirs", 40 )
-ST.SetAttrValue( u"Equipements sportifs et de loisirs", "142" )
-ST.SetColor( u"Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
+ST.Set( "Equipements sportifs et de loisirs", 40 )
+ST.SetAttrValue( "Equipements sportifs et de loisirs", "142" )
+ST.SetColor( "Equipements sportifs et de loisirs", QColor( 255, 230, 255 ) )
 
-ST.Set( u"Forêts de feuillus", 9 )
-ST.SetAttrValue( u"Forêts de feuillus", "311" )
-ST.SetColor( u"Forêts de feuillus", QColor( 128, 255, 0 ) )
+ST.Set( "Forêts de feuillus", 9 )
+ST.SetAttrValue( "Forêts de feuillus", "311" )
+ST.SetColor( "Forêts de feuillus", QColor( 128, 255, 0 ) )
 
-ST.Set( u"Vergers et petits fruits", 25 )
-ST.SetAttrValue( u"Vergers et petits fruits", "222" )
-ST.SetColor( u"Vergers et petits fruits", QColor( 242, 166, 77 ) )
+ST.Set( "Vergers et petits fruits", 25 )
+ST.SetAttrValue( "Vergers et petits fruits", "222" )
+ST.SetColor( "Vergers et petits fruits", QColor( 242, 166, 77 ) )
 
-ST.Set( u"Végétation sclérophylle", 10 )
-ST.SetAttrValue( u"Végétation sclérophylle", "323" )
-ST.SetColor( u"Végétation sclérophylle", QColor( 166, 230, 77 ) )
+ST.Set( "Végétation sclérophylle", 10 )
+ST.SetAttrValue( "Végétation sclérophylle", "323" )
+ST.SetColor( "Végétation sclérophylle", QColor( 166, 230, 77 ) )
 
-ST.Set( u"Landes et broussailles", 12 )
-ST.SetAttrValue( u"Landes et broussailles", "322" )
-ST.SetColor( u"Landes et broussailles", QColor( 166, 255, 128 ) )
+ST.Set( "Landes et broussailles", 12 )
+ST.SetAttrValue( "Landes et broussailles", "322" )
+ST.SetColor( "Landes et broussailles", QColor( 166, 255, 128 ) )
 
-ST.Set( u"Tissu urbain discontinu", 32 )
-ST.SetAttrValue( u"Tissu urbain discontinu", "112" )
-ST.SetColor( u"Tissu urbain discontinu", QColor( 255, 0, 0 ) )
+ST.Set( "Tissu urbain discontinu", 32 )
+ST.SetAttrValue( "Tissu urbain discontinu", "112" )
+ST.SetColor( "Tissu urbain discontinu", QColor( 255, 0, 0 ) )
 
-ST.Set( u"Cours et voies d'eau", 88 )
-ST.SetAttrValue( u"Cours et voies d'eau", "511" )
-ST.SetColor( u"Cours et voies d'eau", QColor( 0, 204, 242 ) )
+ST.Set( "Cours et voies d'eau", 88 )
+ST.SetAttrValue( "Cours et voies d'eau", "511" )
+ST.SetColor( "Cours et voies d'eau", QColor( 0, 204, 242 ) )
 
-ST.Set( u"Oliveraies", 26 )
-ST.SetAttrValue( u"Oliveraies", "223" )
-ST.SetColor( u"Oliveraies", QColor( 230, 166, 0 ) )
+ST.Set( "Oliveraies", 26 )
+ST.SetAttrValue( "Oliveraies", "223" )
+ST.SetColor( "Oliveraies", QColor( 230, 166, 0 ) )
 
-ST.Set( u"Vignobles", 24 )
-ST.SetAttrValue( u"Vignobles", "221" )
-ST.SetColor( u"Vignobles", QColor( 230, 128, 0 ) )
+ST.Set( "Vignobles", 24 )
+ST.SetAttrValue( "Vignobles", "221" )
+ST.SetColor( "Vignobles", QColor( 230, 128, 0 ) )
 
-ST.Set( u"Rizières", 42 )
-ST.SetAttrValue( u"Rizières", "213" )
-ST.SetColor( u"Rizières", QColor( 230, 230, 0 ) )
+ST.Set( "Rizières", 42 )
+ST.SetAttrValue( "Rizières", "213" )
+ST.SetColor( "Rizières", QColor( 230, 230, 0 ) )
 
-ST.Set( u"Zones portuaires", 45 )
-ST.SetAttrValue( u"Zones portuaires", "123" )
-ST.SetColor( u"Zones portuaires", QColor( 230, 204, 204 ) )
+ST.Set( "Zones portuaires", 45 )
+ST.SetAttrValue( "Zones portuaires", "123" )
+ST.SetColor( "Zones portuaires", QColor( 230, 204, 204 ) )
 
-ST.Set( u"Zones industrielles ou commerciales et installations publiques", 30 )
-ST.SetAttrValue( u"Zones industrielles ou commerciales et installations publiques", "121" )
-ST.SetColor( u"Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
+ST.Set( "Zones industrielles ou commerciales et installations publiques", 30 )
+ST.SetAttrValue( "Zones industrielles ou commerciales et installations publiques", "121" )
+ST.SetColor( "Zones industrielles ou commerciales et installations publiques", QColor( 204, 77, 242 ) )
 
-ST.Set( u"Marais salants", 73 )
-ST.SetAttrValue( u"Marais salants", "422" )
-ST.SetColor( u"Marais salants", QColor( 230, 230, 255 ) )
+ST.Set( "Marais salants", 73 )
+ST.SetAttrValue( "Marais salants", "422" )
+ST.SetColor( "Marais salants", QColor( 230, 230, 255 ) )
 
-ST.Set( u"Marais intérieurs", 60 )
-ST.SetAttrValue( u"Marais intérieurs", "411" )
-ST.SetColor( u"Marais intérieurs", QColor( 166, 166, 255 ) )
+ST.Set( "Marais intérieurs", 60 )
+ST.SetAttrValue( "Marais intérieurs", "411" )
+ST.SetColor( "Marais intérieurs", QColor( 166, 166, 255 ) )
 
-ST.Set( u"Espaces verts urbains", 25 )
-ST.SetAttrValue( u"Espaces verts urbains", "141" )
-ST.SetColor( u"Espaces verts urbains", QColor( 255, 166, 255 ) )
+ST.Set( "Espaces verts urbains", 25 )
+ST.SetAttrValue( "Espaces verts urbains", "141" )
+ST.SetColor( "Espaces verts urbains", QColor( 255, 166, 255 ) )
 
-ST.Set( u"Lagunes littorales", 95 )
-ST.SetAttrValue( u"Lagunes littorales", "521" )
-ST.SetColor( u"Lagunes littorales", QColor( 0, 255, 166 ) )
+ST.Set( "Lagunes littorales", 95 )
+ST.SetAttrValue( "Lagunes littorales", "521" )
+ST.SetColor( "Lagunes littorales", QColor( 0, 255, 166 ) )
 
-ST.Set( u"Roches nues", 45 )
-ST.SetAttrValue( u"Roches nues", "332" )
-ST.SetColor( u"Roches nues", QColor( 204, 204, 204 ) )
+ST.Set( "Roches nues", 45 )
+ST.SetAttrValue( "Roches nues", "332" )
+ST.SetColor( "Roches nues", QColor( 204, 204, 204 ) )
 
-ST.Set( u"Terres arables hors périmètres d'irrigation", 31 )
-ST.SetAttrValue( u"Terres arables hors périmètres d'irrigation", "211" )
-ST.SetColor( u"Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
+ST.Set( "Terres arables hors périmètres d'irrigation", 31 )
+ST.SetAttrValue( "Terres arables hors périmètres d'irrigation", "211" )
+ST.SetColor( "Terres arables hors périmètres d'irrigation", QColor( 255, 255, 168 ) )
 
-ST.Set( u"Zones intertidales", 75 )
-ST.SetAttrValue( u"Zones intertidales", "423" )
-ST.SetColor( u"Zones intertidales", QColor( 166, 166, 230 ) )
+ST.Set( "Zones intertidales", 75 )
+ST.SetAttrValue( "Zones intertidales", "423" )
+ST.SetColor( "Zones intertidales", QColor( 166, 166, 230 ) )
 
 
 ST.Update()
index eb3dbca5d0e12e582e241529c1e327b3ee7ae0a8..40b1f23391781d285feec53507c49319f0a139d8 100644 (file)
@@ -31,37 +31,37 @@ DefStr.SetName( "DefStr" );
 
 DefStr.SetAttrName( "CODE_06" );
 
-DefStr.Set( u"Zones de champs, prairies, sans cultures", 20 );
-DefStr.SetAttrValue( u"Zones de champs, prairies, sans cultures", "511" );
-DefStr.SetColor( u"Zones de champs, prairies, sans cultures", QColor( 255, 0, 0 ) );
+DefStr.Set( "Zones de champs, prairies, sans cultures", 20 );
+DefStr.SetAttrValue( "Zones de champs, prairies, sans cultures", "511" );
+DefStr.SetColor( "Zones de champs, prairies, sans cultures", QColor( 255, 0, 0 ) );
 
-DefStr.Set( u"Zones à faible urbanisation (bourg)", 9 );
-DefStr.SetAttrValue( u"Zones à faible urbanisation (bourg)", "" );
-DefStr.SetColor( u"Zones à faible urbanisation (bourg)", QColor( 0, 0, 255 ) );
+DefStr.Set( "Zones à faible urbanisation (bourg)", 9 );
+DefStr.SetAttrValue( "Zones à faible urbanisation (bourg)", "" );
+DefStr.SetColor( "Zones à faible urbanisation (bourg)", QColor( 0, 0, 255 ) );
 
-DefStr.Set( u"Zones de champs cultivé à végétation haute", 12.5 );
-DefStr.SetAttrValue( u"Zones de champs cultivé à végétation haute", "" );
-DefStr.SetColor( u"Zones de champs cultivé à végétation haute", QColor( 0, 255, 0 ) );
+DefStr.Set( "Zones de champs cultivé à végétation haute", 12.5 );
+DefStr.SetAttrValue( "Zones de champs cultivé à végétation haute", "" );
+DefStr.SetColor( "Zones de champs cultivé à végétation haute", QColor( 0, 255, 0 ) );
 
-DefStr.Set( u"Canaux artificiels en béton", 65 );
-DefStr.SetAttrValue( u"Canaux artificiels en béton", "" );
-DefStr.SetColor( u"Canaux artificiels en béton", QColor( 136, 136, 136 ) );
+DefStr.Set( "Canaux artificiels en béton", 65 );
+DefStr.SetAttrValue( "Canaux artificiels en béton", "" );
+DefStr.SetColor( "Canaux artificiels en béton", QColor( 136, 136, 136 ) );
 
-DefStr.Set( u"Canaux naturels", 35 );
-DefStr.SetAttrValue( u"Canaux naturels", "" );
-DefStr.SetColor( u"Canaux naturels", QColor( 255, 0, 255 ) );
+DefStr.Set( "Canaux naturels", 35 );
+DefStr.SetAttrValue( "Canaux naturels", "" );
+DefStr.SetColor( "Canaux naturels", QColor( 255, 0, 255 ) );
 
-DefStr.Set( u"Zones à forte urbanisation (agglomération)", 9 );
-DefStr.SetAttrValue( u"Zones à forte urbanisation (agglomération)", "" );
-DefStr.SetColor( u"Zones à forte urbanisation (agglomération)", QColor( 18, 52, 86 ) );
+DefStr.Set( "Zones à forte urbanisation (agglomération)", 9 );
+DefStr.SetAttrValue( "Zones à forte urbanisation (agglomération)", "" );
+DefStr.SetColor( "Zones à forte urbanisation (agglomération)", QColor( 18, 52, 86 ) );
 
-DefStr.Set( u"Zones de champs cultivé à végétation basse", 17.5 );
-DefStr.SetAttrValue( u"Zones de champs cultivé à végétation basse", "512" );
-DefStr.SetColor( u"Zones de champs cultivé à végétation basse", QColor( 255, 255, 0 ) );
+DefStr.Set( "Zones de champs cultivé à végétation basse", 17.5 );
+DefStr.SetAttrValue( "Zones de champs cultivé à végétation basse", "512" );
+DefStr.SetColor( "Zones de champs cultivé à végétation basse", QColor( 255, 255, 0 ) );
 
-DefStr.Set( u"Zones d'arbustes, de sous-bois", 10 );
-DefStr.SetAttrValue( u"Zones d'arbustes, de sous-bois", "" );
-DefStr.SetColor( u"Zones d'arbustes, de sous-bois", QColor( 0, 255, 255 ) );
+DefStr.Set( "Zones d'arbustes, de sous-bois", 10 );
+DefStr.SetAttrValue( "Zones d'arbustes, de sous-bois", "" );
+DefStr.SetColor( "Zones d'arbustes, de sous-bois", QColor( 0, 255, 255 ) );
 
 
 DefStr.Update();
@@ -70,23 +70,23 @@ test_LCM = hydro_doc.CreateObject( KIND_LAND_COVER_MAP );
 test_LCM.SetName( "test_LCM" );
 
 attr_values = QStringList()
-attr_values.append( u"" )
-attr_values.append( u"" )
-attr_values.append( u"" )
-attr_values.append( u"512" )
-attr_values.append( u"" )
-attr_values.append( u"511" )
-attr_values.append( u"" )
-attr_values.append( u"" )
+attr_values.append( "" )
+attr_values.append( "" )
+attr_values.append( "" )
+attr_values.append( "512" )
+attr_values.append( "" )
+attr_values.append( "511" )
+attr_values.append( "" )
+attr_values.append( "" )
 types = QStringList()
-types.append( u"Canaux artificiels en béton" )
-types.append( u"Canaux naturels" )
-types.append( u"Zones d'arbustes, de sous-bois" )
-types.append( u"Zones de champs cultivé à végétation basse" )
-types.append( u"Zones de champs cultivé à végétation haute" )
-types.append( u"Zones de champs, prairies, sans cultures" )
-types.append( u"Zones à faible urbanisation (bourg)" )
-types.append( u"Zones à forte urbanisation (agglomération)" )
+types.append( "Canaux artificiels en béton" )
+types.append( "Canaux naturels" )
+types.append( "Zones d'arbustes, de sous-bois" )
+types.append( "Zones de champs cultivé à végétation basse" )
+types.append( "Zones de champs cultivé à végétation haute" )
+types.append( "Zones de champs, prairies, sans cultures" )
+types.append( "Zones à faible urbanisation (bourg)" )
+types.append( "Zones à forte urbanisation (agglomération)" )
 test_LCM.ImportSHP( 'lc_dump.shp' )
 test_LCM.ImportDBF( 'lc_dump.dbf', 'CODE_06', attr_values, types )