# Load time series with python state file

**URL:** https://discourse.paraview.org/t/load-time-series-with-python-state-file/3951
**Category:** ParaView Support
**Tags:** python
**Created:** [April 2, 2020, 4:20pm UTC](https://discourse.paraview.org/t/load-time-series-with-python-state-file/3951 "2020-04-02T16:20:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DGT](https://discourse.paraview.org/user_avatar/discourse.paraview.org/dgt/32/3515_2.png) [@DGT](https://discourse.paraview.org/u/DGT)
#### Post date: [April 2, 2020, 4:20pm UTC](https://discourse.paraview.org/t/load-time-series-with-python-state-file/3951/1 "2020-04-02T16:20:04Z")

</div>

Hello,

I am trying to load some time series through a python state file but unfortunately, I only manage to load the first time step. Here is the syntax I am using :  
xml\_reader = XMLMultiBlockDataReader(Filename= file\_list, TimestepValues = time\_list)  
xml\_reader.PointArrayStatus = [‘ro’, ‘rovx’, ‘rovy’, ‘rovz’, ‘p’]  
xml\_reader.PieceDistribution = ‘Block’`

I tried with the pvsm state file and when loading, everything is fine. At that point, I am stuck and I have no idea unless using pvsm but as I have several pictures to create, it would be much easier with python.

Thank you for your help.

---

<div class="post-metadata">

### Author: ![theodorebaltis](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/t/e480ec/32.png) [@theodorebaltis](https://discourse.paraview.org/u/theodorebaltis)
#### Post date: [April 3, 2020, 3:43pm UTC](https://discourse.paraview.org/t/load-time-series-with-python-state-file/3951/2 "2020-04-03T15:43:49Z")

</div>

There’s not complete parity between the pvsm and py state files as far as the GUI client goes.  
Stick with the pvsm for setting up your views, then output py for batch processing. Should work fine.

---

<div class="post-metadata">

### Author: ![wascott](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/w/8e8cbc/32.png) [@wascott](https://discourse.paraview.org/u/wascott)
#### Post date: [April 3, 2020, 3:54pm UTC](https://discourse.paraview.org/t/load-time-series-with-python-state-file/3951/3 "2020-04-03T15:54:10Z")

</div>

Another trick that works well is to create a state file, then Tools/ Start Trace loading that state file. Save this python trace, and you can now edit it.
