[Paraview] Pipeline not respecting the arrow of time after changing the inputs of a filter

2017-03-30 Thread Jonathan Borduas
Dear ParaViewers, I came across some weird behaviour in ParaView: We have a custom BooleanOperation filter that have two outputs (custom ParaView build). If both outputs are the inputs of an Append Geometry and we update the inputs of the BooleanOperation Filter, the Append Geometry will be

Re: [Paraview] (no subject)

2017-03-30 Thread Utkarsh Ayachit
Not sure what's going on. The attached script worked just fine for me. On Thu, Mar 30, 2017 at 1:02 PM, John Haase wrote: > Utkarsh, > > Using the script attached, and the same data sets as before. I get the error > > Traceback (most recent call last): > > File "", line 22, in >

Re: [Paraview] (no subject)

2017-03-30 Thread John Haase
Utkarsh, Using the script attached, and the same data sets as before. I get the error Traceback (most recent call last): File "", line 22, in File "", line 5, in RequestData File "C:\Program Files\ParaView

Re: [Paraview] (no subject)

2017-03-30 Thread Utkarsh Ayachit
John, That's the script for a "Programmable Filter", not simply to be added to your script, similar to what you're doing with `squareDiff`. e.g. myfilter = ProgrammableFilter(Input=integrateSqrVarOverSpace) myfilter.Script = "" # the script I provided. myfilter.UpdatePipeline() ...

Re: [Paraview] (no subject)

2017-03-30 Thread John Haase
Exploring 'integrateSqrVarOverSpace', it doesn't have a 'RowData' object. dir(integrateSqrVarOverSpace) ['CellData', 'FieldData', 'FileNameChanged', 'GetCellDataInformation', 'GetDataInformation', 'GetFieldDataInformation', 'GetPointDataInformation', 'GetProperty', 'GetPropertyValue',

Re: [Paraview] (no subject)

2017-03-30 Thread Utkarsh Ayachit
Isn't that simply a sum of all the rows in the output of integrateSqrVarOverSpace filter? If so, that can be done by using another *ProgrammableFilter* with the following *Script*: from numpy import sum for inTable, outTable in zip(inputs[0], output): for aname in inTable.RowData.keys():