<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Actually I did not realize this but I already faced this issue in the past, with the interactive PV.<br>This is due to the localization for sure. I am on a "french" lol Mac and I suppose there is some environment variable somewhere that tells qmake to compile a french version of the software. It would be interested to fix this bug though.<br>Thanks for your help.<br><br>&gt; Date: Tue, 1 Dec 2009 11:32:58 -0500<br>&gt; Subject: Re: [Paraview] CleanToGrid python version vs interactive version<br>&gt; From: berk.geveci@kitware.com<br>&gt; To: stan1313@hotmail.fr<br>&gt; CC: paraview@paraview.org<br>&gt; <br>&gt; Hmm. Strange. Looking at the files you sent, I see that this has<br>&gt; something to do with localization. Part of out.vtk looks like:<br>&gt; <br>&gt; pression 1 8 double<br>&gt; 5 5,1 5,2 5,3 5,4 5,5 5,6 5,7<br>&gt; <br>&gt; Somehow, when you write it from Python, the writer is using comma<br>&gt; rather than period for the decimal. Can you check what the file looks<br>&gt; like when you write it using the GUI?<br>&gt; <br>&gt; You can get around this by writing your files as binary for now. I<br>&gt; would also submit a bug report at vtk.org/Bug.<br>&gt; <br>&gt; -berk<br>&gt; <br>&gt; On Tue, Dec 1, 2009 at 8:13 AM, Berk Geveci &lt;berk.geveci@kitware.com&gt; wrote:<br>&gt; &gt; Can you post an example dataset (or send it to me directly)?<br>&gt; &gt;<br>&gt; &gt; -berk<br>&gt; &gt;<br>&gt; &gt; On Tue, Dec 1, 2009 at 8:00 AM, Fred Fred &lt;stan1313@hotmail.fr&gt; wrote:<br>&gt; &gt;&gt; My code:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; reader = LegacyVTKReader(FileNames=args[0])<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; filter = CleantoGrid(Input=reader)<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; writer = DataSetWriter(Input=filter, FileName=args[1])<br>&gt; &gt;&gt; if options.ascii:<br>&gt; &gt;&gt; &nbsp; writer.FileType = 1<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; writer.UpdatePipeline()<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; First dataset has 2 vector data and 3 scalar data, no warning when reading<br>&gt; &gt;&gt; with interactive PV, all associated data are here.<br>&gt; &gt;&gt; No warning during code execution.<br>&gt; &gt;&gt; If I read the resulting dataset with interactive PV, I get this warning:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Generic Warning: In /usr/local/ParaView3/VTK/IO/vtkDataReader.cxx, line 1383<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Error reading ascii data. Possible mismatch of datasize with declaration.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; and only 1 scalar data and 1 vector data have been loaded.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt; Date: Tue, 1 Dec 2009 06:52:28 -0500<br>&gt; &gt;&gt;&gt; Subject: Re: [Paraview] CleanToGrid python version vs interactive version<br>&gt; &gt;&gt;&gt; From: berk.geveci@kitware.com<br>&gt; &gt;&gt;&gt; To: stan1313@hotmail.fr<br>&gt; &gt;&gt;&gt; CC: paraview@paraview.org<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; I don't think that what you are describing is possible. That filter<br>&gt; &gt;&gt;&gt; does not have an option to process fewer than all of the arrays. Can<br>&gt; &gt;&gt;&gt; you tell us how to reproduce it?<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; -berk<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; On Tue, Dec 1, 2009 at 6:47 AM, Fred Fred &lt;stan1313@hotmail.fr&gt; wrote:<br>&gt; &gt;&gt;&gt; &gt; If a apply CleanToGrid to a dataset with several scalar and vector point<br>&gt; &gt;&gt;&gt; &gt; data, I get an unstructured grid with all the associated variables.<br>&gt; &gt;&gt;&gt; &gt; But if I apply the same process in Python, only 1 scalar and 1 vector<br>&gt; &gt;&gt;&gt; &gt; data<br>&gt; &gt;&gt;&gt; &gt; are sent to the resulting dataset.<br>&gt; &gt;&gt;&gt; &gt; How to ask CleanToGrid to include all associated data?<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;&gt; &gt; ________________________________<br>&gt; &gt;&gt;&gt; &gt; Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici !<br>&gt; &gt;&gt;&gt; &gt; _______________________________________________<br>&gt; &gt;&gt;&gt; &gt; Powered by www.kitware.com<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;&gt; &gt; Visit other Kitware open-source projects at<br>&gt; &gt;&gt;&gt; &gt; http://www.kitware.com/opensource/opensource.html<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;&gt; &gt; Please keep messages on-topic and check the ParaView Wiki at:<br>&gt; &gt;&gt;&gt; &gt; http://paraview.org/Wiki/ParaView<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>&gt; &gt;&gt;&gt; &gt; http://www.paraview.org/mailman/listinfo/paraview<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; ________________________________<br>&gt; &gt;&gt; PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! C'est<br>&gt; &gt;&gt; ici !<br>&gt; &gt;<br>                                               <br /><hr />Avec Internet Explorer, surfez en toute discrétion sur internet <a href='http://clk.atdmt.com/FRM/go/182932252/direct/01/' target='_new'>Cliquez ici !</a></body>
</html>