Hi Utkarsh,

I am trying to get this to work.  I am trying it on 4.1 currently, as I have 
not yet compiled against 4.2.

When I try the code you gave me I get a segfault.

I wasn't expecting it to work first try (as all I did was copy/paste and change 
the variable name to one in the table), but I didn't expect the segfault.

The failure may be related to the fact that my table is a member of a 
multi-block... how do I address the specific block from the programmable 
filter? 

if you can advise, that would be great.

-Josh
________________________________________
From: Utkarsh Ayachit [[email protected]]
Sent: Thursday, September 25, 2014 11:23 AM
To: Joshua Murphy
Cc: [email protected]
Subject: Re: [Paraview] using calculator filter on a table?

For now, with 4.2 RC1, stick to using "Programmable Filter" with
"Script" as follows:

expr = inputs[0].RowData["RTData"] * 2.0
output.RowData.append(expr, "result")

If you can add a bug to the bug tracker for this, that'd be great too.

Thanks
Utkarsh

On Thu, Sep 25, 2014 at 12:45 PM, Joshua Murphy
<[email protected]> wrote:
> Hello all,
>
> Is there a way to use the Calculator filter on a table?
>
> My reader loads a bunch of auxiliary files that loads time-series information 
> for a specific point (at a higher temporal resolution than the 3D model 
> output).  I need to be able to convert the units in the time series 
> information with some simple calculations so that I can match the units of 
> the remainder of my work.
>
> Is there a way to use the calculator filter to do this? It is greyed out when 
> I have the table selected...  Are there some other steps I need to do to make 
> it work?
>
> Thanks,
> Josh
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/paraview
_______________________________________________
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://public.kitware.com/mailman/listinfo/paraview

Reply via email to