[Paraview] CleanToGrid python version vs interactive version
Fred Fred
stan1313 at hotmail.fr
Tue Dec 1 11:54:38 EST 2009
Actually I did not realize this but I already faced this issue in the past, with the interactive PV.
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.
Thanks for your help.
> Date: Tue, 1 Dec 2009 11:32:58 -0500
> Subject: Re: [Paraview] CleanToGrid python version vs interactive version
> From: berk.geveci at kitware.com
> To: stan1313 at hotmail.fr
> CC: paraview at paraview.org
>
> Hmm. Strange. Looking at the files you sent, I see that this has
> something to do with localization. Part of out.vtk looks like:
>
> pression 1 8 double
> 5 5,1 5,2 5,3 5,4 5,5 5,6 5,7
>
> Somehow, when you write it from Python, the writer is using comma
> rather than period for the decimal. Can you check what the file looks
> like when you write it using the GUI?
>
> You can get around this by writing your files as binary for now. I
> would also submit a bug report at vtk.org/Bug.
>
> -berk
>
> On Tue, Dec 1, 2009 at 8:13 AM, Berk Geveci <berk.geveci at kitware.com> wrote:
> > Can you post an example dataset (or send it to me directly)?
> >
> > -berk
> >
> > On Tue, Dec 1, 2009 at 8:00 AM, Fred Fred <stan1313 at hotmail.fr> wrote:
> >> My code:
> >>
> >> reader = LegacyVTKReader(FileNames=args[0])
> >>
> >> filter = CleantoGrid(Input=reader)
> >>
> >> writer = DataSetWriter(Input=filter, FileName=args[1])
> >> if options.ascii:
> >> writer.FileType = 1
> >>
> >> writer.UpdatePipeline()
> >>
> >>
> >> First dataset has 2 vector data and 3 scalar data, no warning when reading
> >> with interactive PV, all associated data are here.
> >> No warning during code execution.
> >> If I read the resulting dataset with interactive PV, I get this warning:
> >>
> >>
> >> Generic Warning: In /usr/local/ParaView3/VTK/IO/vtkDataReader.cxx, line 1383
> >>
> >> Error reading ascii data. Possible mismatch of datasize with declaration.
> >>
> >> and only 1 scalar data and 1 vector data have been loaded.
> >>
> >>> Date: Tue, 1 Dec 2009 06:52:28 -0500
> >>> Subject: Re: [Paraview] CleanToGrid python version vs interactive version
> >>> From: berk.geveci at kitware.com
> >>> To: stan1313 at hotmail.fr
> >>> CC: paraview at paraview.org
> >>>
> >>> I don't think that what you are describing is possible. That filter
> >>> does not have an option to process fewer than all of the arrays. Can
> >>> you tell us how to reproduce it?
> >>>
> >>> -berk
> >>>
> >>> On Tue, Dec 1, 2009 at 6:47 AM, Fred Fred <stan1313 at hotmail.fr> wrote:
> >>> > If a apply CleanToGrid to a dataset with several scalar and vector point
> >>> > data, I get an unstructured grid with all the associated variables.
> >>> > But if I apply the same process in Python, only 1 scalar and 1 vector
> >>> > data
> >>> > are sent to the resulting dataset.
> >>> > How to ask CleanToGrid to include all associated data?
> >>> >
> >>> >
> >>> > ________________________________
> >>> > Gagnez au cadeau par jour avec Hotmail Magic Moment ! Cliquez ici !
> >>> > _______________________________________________
> >>> > Powered by www.kitware.com
> >>> >
> >>> > Visit other Kitware open-source projects at
> >>> > http://www.kitware.com/opensource/opensource.html
> >>> >
> >>> > Please keep messages on-topic and check the ParaView Wiki at:
> >>> > http://paraview.org/Wiki/ParaView
> >>> >
> >>> > Follow this link to subscribe/unsubscribe:
> >>> > http://www.paraview.org/mailman/listinfo/paraview
> >>> >
> >>> >
> >>
> >> ________________________________
> >> PC, téléphones portables, souris hi-tech. à gagner grâce à Hotmail ! C'est
> >> ici !
> >
_________________________________________________________________
Windows 7 à 35€ pour les étudiants !
http://www.windows-7-pour-les-etudiants.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091201/e7280b9b/attachment-0001.htm>
More information about the ParaView
mailing list