From: vsr Date: Thu, 6 Oct 2016 07:34:01 +0000 (+0300) Subject: 0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateO... X-Git-Tag: V8_2_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=48796c436da9f7fa86db02c997c22df8386aa245;p=plugins%2Fblsurfplugin.git 0023360: [CEA 1963] Use salome.sg.updateObjBrowser(True) instead of salome.sg.updateObjBrowser(1) --- diff --git a/doc/salome/examples/test_periodicity_precad.py b/doc/salome/examples/test_periodicity_precad.py index bbbfaa2..c15afcb 100644 --- a/doc/salome/examples/test_periodicity_precad.py +++ b/doc/salome/examples/test_periodicity_precad.py @@ -136,5 +136,5 @@ checkProjection(gr_right, left_translated) checkProjection(gr_back, front_translated) checkProjection(gr_top, bottom_translated) -salome.sg.updateObjBrowser(0) +salome.sg.updateObjBrowser(True) diff --git a/tests/test_enforced_internal_vertex.py b/tests/test_enforced_internal_vertex.py index 85dc59c..5459def 100644 --- a/tests/test_enforced_internal_vertex.py +++ b/tests/test_enforced_internal_vertex.py @@ -50,5 +50,5 @@ x, y, z = Mesh.GetNodeXYZ(id_node) assert("%.2f, %.2f, %.2f"%(x, y, z) == "%.2f, %.2f, %.2f"%(dist_coin, 0, dist_coin)) -salome.sg.updateObjBrowser(0) +salome.sg.updateObjBrowser(True) diff --git a/tests/test_enforced_vertex.py b/tests/test_enforced_vertex.py index 5004bf6..19172cd 100644 --- a/tests/test_enforced_vertex.py +++ b/tests/test_enforced_vertex.py @@ -48,5 +48,5 @@ x, y, z = Mesh.GetNodeXYZ(id_node) assert("%.2f, %.2f, %.2f"%(x, y, z) == "%.2f, %.2f, %.2f"%(dist_coin, 0, dist_coin)) -salome.sg.updateObjBrowser(0) +salome.sg.updateObjBrowser(True) diff --git a/tests/test_periodicity_2D_precad.py b/tests/test_periodicity_2D_precad.py index 027c4f3..0bad8e8 100644 --- a/tests/test_periodicity_2D_precad.py +++ b/tests/test_periodicity_2D_precad.py @@ -107,4 +107,4 @@ checkProjection(gr_right, left_translated) checkProjection(gr_top, bottom_translated) if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_periodicity_precad.py b/tests/test_periodicity_precad.py index bbbfaa2..c15afcb 100644 --- a/tests/test_periodicity_precad.py +++ b/tests/test_periodicity_precad.py @@ -136,5 +136,5 @@ checkProjection(gr_right, left_translated) checkProjection(gr_back, front_translated) checkProjection(gr_top, bottom_translated) -salome.sg.updateObjBrowser(0) +salome.sg.updateObjBrowser(True) diff --git a/tests/test_periodicity_reflexion_2D_precad.py b/tests/test_periodicity_reflexion_2D_precad.py index 8c0393f..f8674fe 100644 --- a/tests/test_periodicity_reflexion_2D_precad.py +++ b/tests/test_periodicity_reflexion_2D_precad.py @@ -122,5 +122,5 @@ checkProjection(gr_right, bottom_rotated) #salome.myStudyManager.SaveAs("test.hdf", salome.myStudy, 0) if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_periodicity_reflexion_precad.py b/tests/test_periodicity_reflexion_precad.py index f11a4df..8c9d7cd 100644 --- a/tests/test_periodicity_reflexion_precad.py +++ b/tests/test_periodicity_reflexion_precad.py @@ -118,5 +118,5 @@ def checkProjection(gr, mesh_translated, tol=1e-7): checkProjection(gr_front, left_rotated) -salome.sg.updateObjBrowser(0) +salome.sg.updateObjBrowser(True) diff --git a/tests/test_periodicity_with_points_2D_precad.py b/tests/test_periodicity_with_points_2D_precad.py index f303d63..3dbc01d 100644 --- a/tests/test_periodicity_with_points_2D_precad.py +++ b/tests/test_periodicity_with_points_2D_precad.py @@ -120,6 +120,6 @@ def checkProjection(gr, mesh_translated, tol=1e-7): checkProjection(gr_top, bottom_translated) if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_precad_intersections.py b/tests/test_precad_intersections.py index 884fbf4..0602459 100644 --- a/tests/test_precad_intersections.py +++ b/tests/test_precad_intersections.py @@ -66,4 +66,4 @@ nodesGroup = Mesh_1.MakeGroupByIds("nodes", SMESH.NODE, nodes) assert nodesGroup.Size() == 1, nodesGroup.GetIDs() if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_precad_keep_gaps.py b/tests/test_precad_keep_gaps.py index 592ce3f..4ca8a06 100644 --- a/tests/test_precad_keep_gaps.py +++ b/tests/test_precad_keep_gaps.py @@ -65,4 +65,4 @@ Mesh_1.MakeGroupByIds("nodes", SMESH.NODE, nodes) assert len(nodes) == 3, "We should have 3 nodes. We got %i. => The preprocessing has done something, but we did not ask him to."%len(nodes) if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_proximity.py b/tests/test_proximity.py index ced3cb5..a649832 100644 --- a/tests/test_proximity.py +++ b/tests/test_proximity.py @@ -86,4 +86,4 @@ if min_area > 1.5: raise Exception("Wrong minimal area on box. Proximity has not worked.") if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_quadrangles_gradation.py b/tests/test_quadrangles_gradation.py index 965e201..2fd6f80 100644 --- a/tests/test_quadrangles_gradation.py +++ b/tests/test_quadrangles_gradation.py @@ -150,6 +150,6 @@ if abs(nb_faces_2-nb_faces_2_ref) > nb_faces_tolerance: raise Exception("Number of faces of Mesh_2 incorrect") if salome.sg.hasDesktop(): - salome.sg.updateObjBrowser(1) + salome.sg.updateObjBrowser(True) diff --git a/tests/test_remove_tiny_edges.py b/tests/test_remove_tiny_edges.py index 403f40d..1e863ee 100644 --- a/tests/test_remove_tiny_edges.py +++ b/tests/test_remove_tiny_edges.py @@ -107,4 +107,4 @@ if min_length