Any idea if python will respect that call too?<br><br>Pat<br><br><div class="gmail_quote">On Fri, Jun 4, 2010 at 10:15 AM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I've committed a fix. Attached is the patch for the same.<br>
<br>
commit 3f4904f94224ef3a6c03989a012c4484a759a607<br>
Author: Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>><br>
Date: Fri Jun 4 10:14:30 2010 -0400<br>
<br>
setlocale to avoid locale related numeric issues.<br>
<br>
Refer to <a href="http://www.paraview.org/pipermail/paraview/2009-August/013278.html" target="_blank">http://www.paraview.org/pipermail/paraview/2009-August/013278.html</a><br>
thread for details.<br>
<font color="#888888"><br>
<br>
Utkarsh<br>
</font><div><div></div><div class="h5"><br>
On Fri, Jun 4, 2010 at 9:50 AM, Berk Geveci <<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>> wrote:<br>
> Thanks Takuya. We'll take care of it.<br>
><br>
> 2010/6/4 Takuya OSHIMA <<a href="mailto:oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>>:<br>
>> Hi,<br>
>><br>
>>> This seems to be related to the way the LOCALE is set on your system. It is<br>
>>> probably set to French in one case and English in the other. Does anybody know<br>
>>> if we can force LOCALE to English in the ParaView application or the reader?<br>
>><br>
>> Indeed, forcing the locale where the PV application runs under to C<br>
>> was what I proposed a while ago, which failed to draw attention:<br>
>> <a href="http://www.paraview.org/pipermail/paraview/2009-August/013278.html" target="_blank">http://www.paraview.org/pipermail/paraview/2009-August/013278.html</a><br>
>><br>
>> I'd really appreciate if the PV developers reconsider this.<br>
>><br>
>> Takuya<br>
>><br>
>> Takuya OSHIMA, Ph.D.<br>
>> Faculty of Engineering, Niigata University<br>
>> 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<br>
>><br>
>><br>
>> From: Berk Geveci <<a href="mailto:berk.geveci@kitware.com">berk.geveci@kitware.com</a>><br>
>> Subject: Re: [Paraview] Write and read a vtk file (in python)<br>
>> Date: Fri, 4 Jun 2010 09:25:02 -0400<br>
>><br>
>>> > 1) reading :<br>
>>> > ------------<br>
>>> ><br>
>>> > from a vtkStructuredGrid object, I use a vtkStructuredGridWriter to create a<br>
>>> > vtk file, and I have the following problem :<br>
>>> > when I launch the script in Paraview, the format of floating points is not<br>
>>> > good (I obtain for example 33,1632 instead of 33.1632). So, the file created<br>
>>> > is not readable by Paraview. If I launch the script directly in a terminal,<br>
>>> > it works fine. Perhaps because the version of vtk module is not the same ?<br>
>>> > If I use the binary format I have not this problem.<br>
>>><br>
>>> This seems to be related to the way the LOCALE is set on your system. It is<br>
>>> probably set to French in one case and English in the other. Does anybody know<br>
>>> if we can force LOCALE to English in the ParaView application or the reader?<br>
>>><br>
>>> > 2) writing :<br>
>>> > ------------<br>
>>> ><br>
>>> > I would like to read my vtk files from the python shell, with<br>
>>> > OpenDataFile(), but It didn't succeed and I have the following message (with<br>
>>> > a file which can be read in paraview using menu open of course :-) :<br>
>>><br>
>>> Unless I am mistaken, you give the filename directly to OpenDataFile(),<br>
>>> without FileName=.<br>
>>><br>
>>> -berk<br>
>>><br>
>>> ><br>
>>> ><br>
>>> > /home/plumecoq/tmp/ParaView/flow_1_0075.vtk<br>
>>> > Traceback (most recent call last):<br>
>>> > File "<string>", line 1, in <module><br>
>>> > File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 91, in <module><br>
>>> > main()<br>
>>> > File "/home/plumecoq/EHPOC/plugins/ElsaMenu/elsa.py", line 73, in main<br>
>>> > reader_vtk = OpenDataFile(file_name_vtk)<br>
>>> > File<br>
>>> > "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py",<br>
>>> > line 115, in OpenDataFile<br>
>>> > reader = globals()[xml_name](FileName=filename, **extraArgs)<br>
>>> > File<br>
>>> > "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/simple.py",<br>
>>> > line 542, in CreateObject<br>
>>> > setattr(px, param, params[param])<br>
>>> > File<br>
>>> > "/home/plumecoq/Paraview/ParaView-3.8.0-bin/Utilities/VTKPythonWrapping/paraview/servermanager.py",<br>
>>> > line 201, in __setattr__<br>
>>> > "to add this attribute.")<br>
>>> > AttributeError: Attribute FileName does not exist. This class does not<br>
>>> > allow addition of new attributes to avoid mistakes due to typos. Use<br>
>>> > add_attribute() if you really want to add this attribute.<br>
>>> ><br>
>>> ><br>
>>> > any ideas ? I try to use LegacyVTKFileReader instead, but I have also some<br>
>>> > problems.<br>
>>> ><br>
>>> > I use a re-compile version of Paraview 3.8, under Linux (Fedora 10 - 64<br>
>>> > bits)<br>
>>> ><br>
>>> > thanks for your help.<br>
>>> ><br>
>>> > Jérôme<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<br>
>>> > <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:<br>
>>> > <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>
> _______________________________________________<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>
</div></div><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>