So this is a typically French problem... ! Thank you Joelle for the information, it works fine now..... <br>And so not having to do the export each time I lauch Paraview, <span id="result_box" class=""><span style="" title="">I preferred to change the language of my system in English. <br>
<br>But </span></span>I'm glad I noticed this, before making too many screen-shots... !<br><span id="result_box" class=""><span style="" title=""><br>Just a word for the paraview developpers : maybe it could be usefull to display an error message when the format of floats in a formula is not consistent with that of the system ? ..... </span></span><span id="result_box" class=""><span style="" title="">Or maybe the format of numbers in Paraview should not depend on the system language ?</span></span><br>
<span id="result_box" class=""><span style="" title=""><br>Regards,<br></span></span><br><div class="gmail_quote">2010/9/15 Joelle Caro <span dir="ltr"><<a href="mailto:Joelle.Caro@ec-lyon.fr">Joelle.Caro@ec-lyon.fr</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Aurelien,<br>
<br>
I have similar problem with the calculator in ParaView version 3.8.0.<br>
<br>
I do have to set "export LANG=C" before running paraview, as my system is set up to use language for which decimal is "," and not "."<br>
<br>
<br>
<br>
JC<br>
<br>
<br>
<br>
<br>
<br>
<br>
> No, it seems that it doesn't depend on the type of data. (I've tried with<br>
> structured bloc and poly data)<br>
><br>
> I tried with the binary version 3.8 too... same effect.<br>
> I will try with the 3.8.1, but I think I will have to replace all the dots<br>
> by comas.<br>
><br>
> Le 15 septembre 2010 16:41, Adriano Gagliardi <<a href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</a>> a<br>
> ?crit<br>
><br>
> > I tried it with a vtkPolyData and vtkUnstructuredGrid input within<br>
> > ParaView 3.8.0 and it worked fine. Is it just with a multiblock data-set<br>
> > you are having issues?<br>
> ><br>
> ><br>
> > ===================================<br>
> ><br>
> > Adriano Gagliardi MEng PhD<br>
> > Business Sector Leader<br>
> > Computational Aerodynamics<br>
> > Aircraft Research Association Ltd.<br>
> > Manton Lane<br>
> > Bedford<br>
> ><br>
> > Tel: 01234 32 4644<br>
> > E-mail: <a href="mailto:agagliardi@ara.co.uk">agagliardi@ara.co.uk</a><br>
> > Url: <a href="http://www.ara.co.uk" target="_blank">www.ara.co.uk</a><br>
> ><br>
> ><br>
> > ------------------------------<br>
> > *From:* <a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> [mailto:<br>
> > <a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a>] *On Behalf Of *Aur?lien Marsan<br>
> > *Sent:* 15 September 2010 15:36<br>
> > *To:* Dave Partyka<br>
> > *Cc:* Paraview<br>
> > *Subject:* Re: [Paraview] ... something really weird.... dependance with<br>
> > matplotlib version ?<br>
> ><br>
> > ... I don't understand anything at all now...<br>
> ><br>
> > From a same MultiBlockDataSet, doing this in Paraview through a<br>
> > programmable filter, and in pvpython, I don't get the same result ... !<br>
> ><br>
> > from paraview import vtk<br>
> ><br>
> > i = self.GetInput()<br>
> ><br>
> > b = i.GetBlock(1)<br>
> ><br>
> > c = vtk.vtkArrayCalculator()<br>
> ><br>
> > c.SetInput(b)<br>
> ><br>
> > c.SetFunction('1.4')<br>
> ><br>
> > c.SetResultArrayName('test')<br>
> ><br>
> > c.Update()<br>
> ><br>
> > print c.GetOutput().GetPointData().GetArray('test').GetTuple1(1)<br>
> ><br>
> > in pvpython ---> 1.4<br>
> > in paraview ---> 1.0<br>
> ><br>
> > Could someone reproduce this ?<br>
<br>
</blockquote></div><br>