How to access different timesteps in ProgrammableFilter?

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.

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

1 Like