# Getting data from multiple timesteps in programmable filter

**URL:** https://discourse.paraview.org/t/getting-data-from-multiple-timesteps-in-programmable-filter/10358
**Category:** ParaView Support
**Tags:** python
**Created:** [September 20, 2022, 7:06am UTC](https://discourse.paraview.org/t/getting-data-from-multiple-timesteps-in-programmable-filter/10358 "2022-09-20T07:06:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mersoj](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mersoj/32/5848_2.png) [@mersoj](https://discourse.paraview.org/u/mersoj)
#### Post date: [September 20, 2022, 7:06am UTC](https://discourse.paraview.org/t/getting-data-from-multiple-timesteps-in-programmable-filter/10358/1 "2022-09-20T07:06:40Z")

</div>

As far as I can tell this question hasn’t been fully answered. I would like to do some operation that uses the state from two adjacent timesteps. And hopefully be able to do this for all sets of adjacent timesteps in my model (unlike temporal array operator which must specify the timesteps and doesn’t get updated with time).

The documentation here:  
[https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#reading-a-csv-file-series](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#reading-a-csv-file-series)

shows how to set data that is time varying in the programmable filter. However, it does not specify how to access data from multiple timesteps in the script since it assumes that data will be read in from file. Also, it’s somewhat unclear why the request information script is necessary since the model after the filter includes all of the original timesteps, not just those specified in request information.

Is using the GroupTimesteps filter as mentioned here: [Timesteps in ProgrammableFilter](https://discourse.paraview.org/t/timesteps-in-programmablefilter/9931) the recommended solution here?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [September 21, 2022, 3:45am UTC](https://discourse.paraview.org/t/getting-data-from-multiple-timesteps-in-programmable-filter/10358/2 "2022-09-21T03:45:28Z")

</div>

You should use CONTINUE\_EXECUTING, as in C++. See this great answer from @timothee.chabat[vtkTemporalStatistics in Programmable Filter](https://discourse.paraview.org/t/vtktemporalstatistics-in-programmable-filter/6252)
