From: Gilles DAVID Date: Tue, 18 Apr 2017 14:24:50 +0000 (+0200) Subject: Merge remote-tracking branch 'origin/V8_3_BR' into gdd/python3_dev X-Git-Tag: V9_0_0~10^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a1927666be493ce1a193ae8ee2aab84ee5e5ee7f;p=modules%2Fparavis.git Merge remote-tracking branch 'origin/V8_3_BR' into gdd/python3_dev --- a1927666be493ce1a193ae8ee2aab84ee5e5ee7f diff --cc src/Plugins/MEDReader/Test/testMEDReader16.py index 3a07ef6a,db2357c1..68564261 --- a/src/Plugins/MEDReader/Test/testMEDReader16.py +++ b/src/Plugins/MEDReader/Test/testMEDReader16.py @@@ -84,14 -84,14 +84,14 @@@ for elt in [ELNOfieldToSurface1,ELNOfie assert(vtkArrToTest.GetNumberOfComponents()==2) assert(vtkArrToTest.GetComponentName(0)==arr2.getInfoOnComponent(0)) assert(vtkArrToTest.GetComponentName(1)==arr2.getInfoOnComponent(1)) - vals=[vtkArrToTest.GetValue(i) for i in xrange(32)] + vals=[vtkArrToTest.GetValue(i) for i in range(32)] assert(arr2.isEqualWithoutConsideringStr(DataArrayDouble(vals,16,2),1e-12)) pass - ELNOMesh1=ELNOMesh(Input=reader) - ELNOPoints1=ELNOPoints(Input=reader) - ELNOPoints1.SelectSourceArray=['ELNO@MyField'] - for elt in [ELNOMesh1,ELNOPoints1]: - elnoMesh=servermanager.Fetch(ELNOMesh1) + ELNOfieldToSurface1=ELNOfieldToSurface(Input=reader) + ELNOfieldToPointSprite1=ELNOfieldToPointSprite(Input=reader) + ELNOfieldToPointSprite1.SelectSourceArray=['ELNO@MyField'] + for elt in [ELNOfieldToSurface1,ELNOfieldToPointSprite1]: + elnoMesh=servermanager.Fetch(ELNOfieldToSurface1) vtkArrToTest=elnoMesh.GetBlock(0).GetPointData().GetArray("MyField") assert(vtkArrToTest.GetNumberOfTuples()==16) assert(vtkArrToTest.GetNumberOfComponents()==2)