[Paraview] Newbie question on Python Programmable Filters

2012-09-04 Thread Frank Horowitz
Hi All, I'm trying to visualize some vector component field time series written by a seismic wave propagation code, and converted into .vtu files by a set of upstream scripts. I'm trying to compute the norm of the vector at each timeslice and then visualize the resulting scalar field. The data

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-04 Thread Hal Canary
On 09/04/2012 02:20 PM, Frank Horowitz wrote: x = inputs[0].PointData['Scalars_'] I thought one needs to convert a vtkarray to a numpy array with x = numpy.array(inputs[0].PointData['Scalars_']) before doing anything with it. ___ Powered by

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-04 Thread Frank Horowitz
Hal Canary wrote on Tue Sep 4 15:22:01 EDT 2012: > On 09/04/2012 02:20 PM, Frank Horowitz wrote: > > > x = inputs[0].PointData['Scalars_'] > > > > I thought one needs to convert a vtkarray to a numpy array with > > x = numpy.array(inputs[0].PointData['Scalars_']) > > before doing anythi

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-04 Thread Andy Bauer
Hi Frank, I didn't have a problem with the following on my windows machine using the ParaView 3.14.1 installer. === try: paraview.simple except: from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() Wavelet1 = Wavelet() RenderView1 = GetRenderView() ProgrammableFi

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
iew] Newbie question on Python Programmable Filters Hi Frank, I didn't have a problem with the following on my windows machine using the ParaView 3.14.1 installer. === try: paraview.simple except: from paraview.simple import * paraview.simple._DisableFirstRenderCameraReset() Wavelet1

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Andy Bauer
> Thanks again for your help, > Frank Horowitz > > -- > *From:* Andy Bauer [andy.ba...@kitware.com] > *Sent:* Tuesday, September 04, 2012 7:57 PM > *To:* Frank Horowitz > *Cc:* paraview@paraview.org > *Subject:* Re: [Paraview] Newbie quest

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
ld >> iterate not only over the point values of the spatial array, but also over >> all timeslices. Is that a correct assumption? Is that the source of my >> problems??? >> >> Thanks again for your help, >>Frank Horowitz >> >> ---

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
[0] (at least as I understand it). >>> >>> In my original code snippet, I assumed that the "m = x*x" statement would >>> iterate not only over the point values of the spatial array, but also over >>> all timeslices. Is that a correct assumption? Is that

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-05 Thread Frank Horowitz
, >>>> >>>> Thanks for that! >>>> >>>> I've compiled and installed Paraview from git's release branch, and (a >>>> slight modification) of your code runs correctly. I think that means that >>>> my paraview/python in

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Andy Bauer
t;> Thanks for that! > >>>> > >>>> I've compiled and installed Paraview from git's release branch, and (a > >>>> slight modification) of your code runs correctly. I think that means > that > >>>> my paraview/python in

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Berk Geveci
I am just starting to read this thread so I wanted to answer various questions here separately. Your assumption is correct. m = x*x will be 100% evaluated by NumPy. In theory, this should be pretty much instantaneous for ~1M elements, even for 20 timeslices. On Tue, Sep 4, 2012 at 2:20 PM, Frank

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Berk Geveci
> *Sent:* Tuesday, September 04, 2012 7:57 PM > *To:* Frank Horowitz > *Cc:* paraview@paraview.org > *Subject:* Re: [Paraview] Newbie question on Python Programmable Filters > > Hi Frank, > > I didn't have a problem with the following on my windows machine using the > Par

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Berk Geveci
Paraview from git's release branch, and (a > >>> slight modification) of your code runs correctly. I think that means > that > >>> my paraview/python integration is semi-sane. > >>> > >>> However, my problem still occurs. Recall that I have a time s

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Berk Geveci
t; OK Andy, > >>>> > >>>> Thanks for that! > >>>> > >>>> I've compiled and installed Paraview from git's release branch, and (a > >>>> slight modification) of your code runs correctly. I think that means > that >

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Berk Geveci
re trying to do, I'd suggest giving a >> >>> description of what you're trying to do and maybe there's a simpler >> way of >> >>> doing it. >> >>> >> >>> Andy >> >>> >> >>> On Wed, Sep

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Frank Horowitz
iply the results by the number of time steps. >>>>> >>>>> If I'm misunderstanding what you're trying to do, I'd suggest giving a >>>>> description of what you're trying to do and maybe there's a simpler >> way of >>>>

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Berk Geveci
a > >> set > >>>>> resulting from the loaded file > >>>>> > >>>>> If you want time statistics for your variables I think you probably > >> want to > >>>>> use the calculator filter to square the value at each po

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-06 Thread Andy Bauer
loaded file > >>>>> > >>>>> If you want time statistics for your variables I think you probably > >> want to > >>>>> use the calculator filter to square the value at each point and then > >> use > >>>>> the tempora

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-10 Thread Frank Horowitz
t;>>> of >>>>>>> RequestData(). You can think of the order of operations if you have 5 >>>> time >>>>>>> steps as: >>>>>>> 1) iterate over each of the 5 time steps (i.e. load a file and update >>>> th

Re: [Paraview] Newbie question on Python Programmable Filters

2012-09-10 Thread Pat Marion
the rest of the list's) help is greatly > >>>> appreciated! > >>>>>> > >>>>>> Cheers, > >>>>>>Frank > >>>>>> > >>>>>> > >>>>>> On 05/09/2012, at 4:01