]> SALOME platform Git repositories - modules/hydro.git/blobdiff - doc/salome/examples/h019_normalCaseManualInterpolZStrickler.py
Salome HOME
Merge branch 'BR_H2018_4' into BR_PY3
[modules/hydro.git] / doc / salome / examples / h019_normalCaseManualInterpolZStrickler.py
index 09b6897d6cade557e9ff8191cff82fa702bcbda7..f21324a9f78a7e60bc33eb7aebabf1f737baf807 100644 (file)
@@ -7,7 +7,6 @@ import sys
 import salome
 
 salome.salome_init()
-theStudy = salome.myStudy
 
 #----------------------
 # --- HYDRO
@@ -17,7 +16,7 @@ from HYDROPy import *
 from PyQt5.QtCore import *
 from PyQt5.QtGui import *
 
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
 
 hydro_doc.SetLocalCS( 430000, 6.35e+06 )
 
@@ -596,7 +595,7 @@ garonne_1_riveDroite.SetName("garonne_1_riveDroite")
 garonne_1_riveGauche.SetName("garonne_1_riveGauche")
 
 # Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
 
 #----------------------
 # --- Geometry
@@ -609,7 +608,7 @@ import math
 import SALOMEDS
 from salome.hydrotools.controls import controlGeomProps
 
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
 
 print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
@@ -687,7 +686,7 @@ from salome.smesh import smeshBuilder
 from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
 import tempfile
 
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
 
 # --- algorithms and hypothesis
 garonne_1 = smesh.Mesh(HYDRO_garonne_1)
@@ -764,7 +763,7 @@ controlSubMeshStats(riveDroite_1, 2342)
 controlSubMeshStats(riveGauche_1, 2871)
 
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
+  salome.sg.updateObjBrowser()
 
 #----------------------
 # --- Z interpolation with HYDRO