Hi Aurelien,<div><br></div><div>What version of ParaView are you using? Also, did you build ParaView or are you using binaries from <a href="http://www.paraview.org">www.paraview.org</a>? <br><br><div class="gmail_quote">2010/9/15 Aurélien Marsan <span dir="ltr"><<a href="mailto:aur.marsan@gmail.com">aur.marsan@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">... Ok.... I think this is rather a dependance with the version of vtk. <br><br>Doing this in a programmable filter in paraview <br>
<p style="margin:0px 0px 0px 40px;text-indent:0px">from paraview import vtk</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">i = self.GetInput()</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">o = self.GetOutput()</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">b = i.GetBlock(1)</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">c = vtk.vtkArrayCalculator()</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">c.SetInput(b)</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">c.SetFunction('1.4')</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">c.SetResultArrayName('test')</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">c.Update()</p>
<p style="margin:0px 0px 0px 40px;text-indent:0px">print c.GetOutput().GetPointData().GetArray('test').GetTuple1(1)</p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;text-indent:0px">it prints 1.0</p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;text-indent:0px"><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;text-indent:0px">While doing this in the python console, il prints 1.4</p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;text-indent:0px"><br></p><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;text-indent:0px">... I think I should use pvpython, in order to work with the same version of vtk ... <br>
</p><br><br><div class="gmail_quote">Le 15 septembre 2010 14:26, Aurélien Marsan <span dir="ltr"><<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>></span> a écrit :<div><div></div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
I give more precisions : it seems that it comes from the "." and the "," in the numbers... <br><br><div class="gmail_quote">Le 15 septembre 2010 14:24, Aurélien Marsan <span dir="ltr"><<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>></span> a écrit :<div>
<div></div><div><br>
<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi, <br><br>Upgrading my version of matplotlib, I encountered a really weird problem. <br><br>
Before, with the 0.99.1.1 version of matplotlib, I could calculate (in the calculator), <br>e_interne*(1.4-1)/286.95 without any problem. <br>
<br>After upgrading, the result of this calculation is zero everywhere... <br><br>Is there any explanation for this ?<br>
</blockquote></div></div></div><br>
</blockquote></div></div></div><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>