# Timesteps in ProgrammableFilter

**URL:** https://discourse.paraview.org/t/timesteps-in-programmablefilter/9931
**Category:** ParaView Support
**Created:** [June 28, 2022, 12:20pm UTC](https://discourse.paraview.org/t/timesteps-in-programmablefilter/9931 "2022-06-28T12:20:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@Andrei](https://discourse.paraview.org/u/Andrei)
#### Post date: [June 28, 2022, 12:20pm UTC](https://discourse.paraview.org/t/timesteps-in-programmablefilter/9931/1 "2022-06-28T12:20:59Z")

</div>

How to access different timesteps in ProgrammableFilter?

---

<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: [June 29, 2022, 11:39am UTC](https://discourse.paraview.org/t/timesteps-in-programmablefilter/9931/2 "2022-06-29T11:39:02Z")

</div>

See an example here: [5. Programmable Filter — ParaView Documentation 5.10.0 documentation](https://docs.paraview.org/en/latest/ReferenceManual/pythonProgrammableFilter.html#reading-a-csv-file-series)

---

<div class="post-metadata">

### Author: ![Andrei](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@Andrei](https://discourse.paraview.org/u/Andrei)
#### Post date: [June 30, 2022, 10:09am UTC](https://discourse.paraview.org/t/timesteps-in-programmablefilter/9931/3 "2022-06-30T10:09:36Z")

</div>

Dear @mwestphal, thanks for the help!  
In my work, I found a different way. First, I applied the GroupTimeSteps Filter. From this point on, each result of CellData consists of a set of arrays, the number of which is equal to the number of timesteps. Next, in the Programmable Filter, I accessed the results for each timestep as follows.

```auto
input0=inputs[0]
data=input0.CellData['MyData']
for i in range(number_of_timesteps):
    print(sum(data.Arrays[i]))

```
