I'd suggest using the trace functionality to figure out how to set parameters on filter of interest.
In this case, to exact timestep 1 using ExtractTimeSteps filter, the correct approach is as follows: extractTimeSteps1 = ExtractTimeSteps(Input=Reader) extractTimeSteps1.TimeStepIndices = [1] OR extractTimeSteps1 = ExtractTimeSteps(Input=Reader, TimeStepIndices = [1]) Utkarsh On Mon, Feb 26, 2018 at 5:29 AM, Amine Aboufirass <[email protected]> wrote: > Hello, > > > > I have scalar data in a time series of unstructured grid datasets. I'd like > to extract this data for specific timesteps. I tried the following but only > seem to get the information for the very first time step: > > > AllFiles = ['File001.vtk', 'File002.vtk', 'File003.vtk', 'File004.vtk'] > Reader = LegacyVTKReader(FileNames = AllFiles) > Reader = ExtractTimeSteps(Reader,1) > > Output = servermanager.Fetch(Reader) > Results = vtk_to_numpy(Output.GetPointData().GetScalars('inc > remental_deviatoric_strain_solid')) > > I also tried: > > Reader = ExtractTimeSteps(Reader,1) > > But it throws an error: > > Reader = ExtractTimeSteps(Reader,1) > File "C:\Program Files\ParaView > 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\Lib\site-packages\paraview\simple.py", > line 1674, in CreateObject > raise RuntimeError ("Expecting a proxy as input.") > RuntimeError: Expecting a proxy as input. > > How can I pick the time step for which I want the data? Also is it possible > to specify a range of time steps? > > > > Amine Aboufirass > > > > DISCLAIMER: This message is intended exclusively for the addressee(s) and > may contain confidential and privileged information. If you are not the > intended recipient please notify the sender immediately and destroy this > message. Unauthorized use, disclosure or copying of this message is strictly > prohibited. The foundation 'Stichting Deltares', which has its seat at > Delft, The Netherlands, Commercial Registration Number 41146461, is not > liable in any way whatsoever for consequences and/or damages resulting from > the improper, incomplete and untimely dispatch, receipt and/or content of > this e-mail. > > _______________________________________________ > 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: > https://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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: https://public.kitware.com/mailman/listinfo/paraview
