# ppsd.times error

**URL:** <https://discourse.obspy.org/t/ppsd-times-error/835>\
**Category:** Users Mailing List Archive\
**Tags:** archive\
**Created:** [May 31, 2019, 5:59am UTC](https://discourse.obspy.org/t/ppsd-times-error/835 "2019-05-31T05:59:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![79seismo](https://discourse.obspy.org/user_avatar/discourse.obspy.org/79seismo/32/815_2.png) [@79seismo](https://discourse.obspy.org/u/79seismo)\
**Post date:** [May 31, 2019, 5:59am UTC](https://discourse.obspy.org/t/ppsd-times-error/835/1 "2019-05-31T05:59:24Z")

</div>

Hello all,  
I am following this tutorial ([https://docs.obspy.org/tutorial/code\_snippets/probabilistic\_power\_spectral\_density.html](https://docs.obspy.org/tutorial/code_snippets/probabilistic_power_spectral_density.html)) to calculate PPSDs and getting the following error. Can someone please tell me how I could fix it? Thanks very much!

print(ppsd.times[:2])

```python

```
