... Ok.... I think this is rather a dependance with the version of vtk. <br><br>Doing this in a programmable filter in paraview <br>
<style type="text/css">p, li { white-space: pre-wrap; }</style>
<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(&#39;1.4&#39;)</p>
<p style="margin: 0px 0px 0px 40px; text-indent: 0px;">c.SetResultArrayName(&#39;test&#39;)</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(&#39;test&#39;).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">&lt;<a href="mailto:aur.marsan@gmail.com">aur.marsan@gmail.com</a>&gt;</span> a écrit :<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 &quot;.&quot; and the &quot;,&quot; in the numbers... <br><br><div class="gmail_quote">Le 15 septembre 2010 14:24, Aurélien Marsan <span dir="ltr">&lt;<a href="mailto:aur.marsan@gmail.com" target="_blank">aur.marsan@gmail.com</a>&gt;</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;">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><br>