Salome HOME
tests - fix import and attributes
authorCédric Aguerre <cedric.aguerre@edf.fr>
Thu, 3 Nov 2016 17:35:25 +0000 (18:35 +0100)
committerCédric Aguerre <cedric.aguerre@edf.fr>
Fri, 4 Nov 2016 15:23:30 +0000 (16:23 +0100)
test/VisuPrs/SWIG_scripts/B6.py
test/VisuPrs/SWIG_scripts/B7.py
test/VisuPrs/SWIG_scripts/B9.py

index 4bceb75a0fdde244891579899303aa773cd8f4ba..9fc25ca61defb005a2b692f2baff364054a5458b 100644 (file)
@@ -22,6 +22,7 @@
 
 from paravistest import tablesdir
 import pvsimple
+from presentations import delete_pv_object
 
 # Define script for table of integer creation
 script_ti = """
index 0572304f0b164f4361abd4dd47ac3c31c062ec92..f58ba62f7951c72d1ee6b8759555f3fc24789773 100644 (file)
@@ -55,17 +55,26 @@ pvsimple.Render(xy_view)
 xy_view.ShowLegend = 0
 pvsimple.Render(xy_view)
 
-xy_view.ShowAxis = [0, 0, 0, 0]
+xy_view.ShowLeftAxisGrid = 0
+xy_view.ShowLeftAxisLabels = 0
+xy_view.ShowBottomAxisGrid = 0
+xy_view.ShowBottomAxisLabels = 0
+xy_view.ShowRightAxisGrid = 0
+xy_view.ShowRightAxisLabels = 0
+xy_view.ShowTopAxisGrid = 0
+xy_view.ShowTopAxisLabels = 0
 pvsimple.Render(xy_view)
-xy_view.ShowAxis = [1, 0, 0, 0]
+xy_view.ShowLeftAxisGrid = 1
+xy_view.ShowLeftAxisLabels = 1
 pvsimple.Render(xy_view)
-xy_view.ShowAxis[1] = 1
+xy_view.ShowBottomAxisGrid = 1
+xy_view.ShowBottomAxisLabels = 1
 pvsimple.Render(xy_view)
 
 # Set logarithmic scaling
-xy_view.AxisLogScale[0] = 1
+xy_view.LeftAxisLogScale = 1
 pvsimple.Render(xy_view)
-xy_view.AxisLogScale[1] = 1
+xy_view.BottomAxisLogScale = 1
 pvsimple.Render(xy_view)
 
 # Set representation properties
index f38c9c8c76a940ebfa26b65b8ea3d82899b20fdd..72ddba7a0ae735b04e0aaa14afeca571a6a10b14 100644 (file)
@@ -20,7 +20,7 @@
 # This case corresponds to: /visu/SWIG_scripts/B9 case
 
 from paravistest import datadir
-from presentations import EntityType, ScalarMapOnField, CutPlanesOnField
+from presentations import EntityType, ScalarMapOnField, CutPlanesOnField, delete_pv_object
 import pvsimple
 
 # Get view