]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Correct extraction of groups
authorakl <akl@opencascade.com>
Tue, 25 Mar 2014 10:31:52 +0000 (14:31 +0400)
committerakl <akl@opencascade.com>
Tue, 25 Mar 2014 10:33:33 +0000 (14:33 +0400)
test/VisuPrs/bugs/B1.py

index ea6674715aabd9a0892cdfd7b74ae61fb24e42ec..110429ce3bfdb981e4a9205b1a3d7703855759ed 100644 (file)
@@ -43,10 +43,9 @@ else:
     print "OK"
 
 # 2. Creation of presentation of each group
-groups_on_cells = get_group_names(med_reader, "MAILLAGE_01_001", EntityType.CELL, wo_nogroups=True)
-groups_on_nodes = get_group_names(med_reader, "MAILLAGE_01_001", EntityType.NODE, wo_nogroups=True)
-
-groups = groups_on_cells + groups_on_nodes
+extGrp = pvs.ExtractGroup()
+extGrp.UpdatePipelineInformation()
+groups = get_group_names(extGrp)
 
 errors = 0
 i = 0
@@ -54,7 +53,7 @@ for group in groups:
     i += 1
     shor_name = group.split('/')[-1]
     print "group: ", shor_name
-    prs = MeshOnGroup(med_reader, group)
+    prs = MeshOnGroup(med_reader, extGrp, group)
     
     if prs is None : 
         print "FAILED!!! Created presentation is None!!!"