Currently, "PlotSelectionOverTime" can only generate summaries (aka
OnlyReportSelectionStatistics=1) when the selection is query-based
selection. The `simple.SelectCells` only creates query-based
selection. Currently here's no clean way to create an id-based
selection. Attached script directly create an ID-based selection
source. Now, OnlyReportSelectionStatistics=0 works as expected.


On Tue, Mar 7, 2017 at 1:43 PM, John <[email protected]> wrote:
> Hello Paraviewers,
>
> I'm trying to save a table to csv (similar to
> http://markmail.org/search/?q=ParaView+order%3Adate-backward+plotselectionovertime#query:ParaView%20order%3Adate-backward%20plotselectionovertime+page:3+mid:7k7wbaoz23uxhpgf+state:results
> )
>
> However, even though I have "OnlyReportSelectionStatistics = 0", I am still
> getting statistics rather than values.
>
> Is this a bug or am I doing sometime wrong?
>
> I've attached a simple version of my script.
>
> Thank you,
>
> John
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
from paraview.simple import *

def CreateCellSelection(ids):
    source = IDSelectionSource()
    source.FieldType = "CELL"
    sids = []
    for i in ids:
        sids.append(0) #proc-id
        sids.append(i) #cell-id
    source.IDs = sids
    return source

canex2 = OpenDataFile("/home/utkarsh/Kitware/ParaView3/ParaViewData/Data/can.ex2")
canex2.ElementVariables = ['EQPS']
canex2.PointVariables = ['DISPL', 'VEL', 'ACCL']
canex2.GlobalVariables = ['KE', 'XMOM', 'YMOM', 'ZMOM', 'NSTEPS', 'TMSTEP']
canex2.ElementBlocks = ['Unnamed block ID: 1 Type: HEX', 'Unnamed block ID: 2 Type: HEX']

# get animation scene
animationScene1 = GetAnimationScene()

# update animation scene based on data timesteps
animationScene1.UpdateAnimationUsingDataTimeSteps()

# create a new 'Integrate Variables'
integrateVariables = IntegrateVariables(Input=canex2)

# create a new 'Plot Selection Over Time'
selection = CreateCellSelection(ids=[0])
integrateVariablesOverTime = PlotSelectionOverTime(Input=integrateVariables, Selection=selection)
integrateVariablesOverTime.OnlyReportSelectionStatistics = 0
_______________________________________________
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

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to