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)