No subject
Thu May 27 11:52:52 EDT 2010
filter, and in pvpython, I don't get the same result ... !=20
from paraview import vtk
i =3D self.GetInput()
b =3D i.GetBlock(1)
c =3D vtk.vtkArrayCalculator()
c.SetInput(b)
c.SetFunction('1.4')
c.SetResultArrayName('test')
c.Update()
print c.GetOutput().GetPointData().GetArray('test').GetTuple1(1)
in pvpython ---> 1.4
in paraview ---> 1.0
Could someone reproduce this ?=20
**********************************************************************
This email contains information that is private and confidential and is int=
ended only for the addressee.
If you are not the intended recipient please delete it and notify us immedi=
ately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone oth=
er than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No =
503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
**********************************************************************
------=_NextPart_000_010C_01CB54EC.85B9C330
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16981" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D088464014-15092010><FONT face=3DArial color=3D#0000ff si=
ze=3D2>I=20
tried it with a vtkPolyData and vtkUnstructuredGrid input within ParaView 3=
.8.0=20
and it worked fine. Is it just with a multiblock data-set you are having=20
issues?</FONT></SPAN></DIV>
<DIV> </DIV><!-- Converted from text/plain format -->
<P><FONT size=3D2>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<BR><BR>Adriano Gagliardi=20
MEng PhD<BR>Business Sector Leader<BR>Computational Aerodynamics<BR>Aircraf=
t=20
Research Association Ltd.<BR>Manton Lane<BR>Bedford<BR><BR>Tel: 01234 32=20
4644<BR>E-mail: agagliardi at ara.co.uk<BR>Url: www.ara.co.uk </FONT></P>
<DIV> </DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> paraview-bounces at paraview.org=20
[mailto:paraview-bounces at paraview.org] <B>On Behalf Of </B>Aur=E9lien=20
Marsan<BR><B>Sent:</B> 15 September 2010 15:36<BR><B>To:</B> Dave=20
Partyka<BR><B>Cc:</B> Paraview<BR><B>Subject:</B> Re: [Paraview] ... someth=
ing=20
really weird.... dependance with matplotlib version ?<BR></FONT><BR></DIV>
<DIV></DIV>... I don't understand anything at all now... <BR><BR>From a sam=
e=20
MultiBlockDataSet, doing this in Paraview through a programmable filter, an=
d in=20
pvpython, I don't get the same result ... ! <BR><BR>
<STYLE type=3Dtext/css>P {
=09
}
LI {
=09
}
</STYLE>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">from paraview import vtk</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">i =3D self.GetInput()</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">b =3D i.GetBlock(1)</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">c =3D vtk.vtkArrayCalculator()</=
P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">c.SetInput(b)</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">c.SetFunction('1.4')</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">c.SetResultArrayName('test')</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">c.Update()</P>
<P style=3D"MARGIN: 0px; TEXT-INDENT: 0px">print=20
c.GetOutput().GetPointData().GetArray('test').GetTuple1(1)</P><BR>in pvpyth=
on=20
---> 1.4<BR>in paraview ---> 1.0<BR><BR>Could someone reproduce this =
?=20
<BR><p>********************************************************************=
**<br />This email contains information that is private and confidential an=
d is intended only for the addressee.<br />If you are not the intended reci=
pient please delete it and notify us immediately by e-mailing the sender.<b=
r />Note: All email sent to or from this address may be accessed by someone=
other than the recipient, for<br />system management and security reasons.=
<br />Aircraft Research Association Ltd.=A0 Registered in England, Registra=
tion No 503668 Registered Office:<br />Manton Lane, Bedford MK41 7PF Englan=
d VAT No GB 196351245</p><p>***********************************************=
***********************</p>
</BODY></HTML>
------=_NextPart_000_010C_01CB54EC.85B9C330--
More information about the ParaView
mailing list