I think this is not possible at the moment.
Of course you could do
your_trace_or_stream.taper(type='hann')
but as far as I understand the window length is set implicitly to 0.5.
The only window type supporting a different window length is 'cosine'
via its parameter 'p' .
the "hann" taper is directly executed by scipy and, as Tom pointed out,
the corresponding scipy routine always tapers the whole length of the
time series.
So with the builtin taper it is not possible to do.
But writing a custom function that does the job is fairly easy.
The rounding to ints for the length of the parts of the window would
need some attention to make sure you end up with a windowing function
that always fits the length of your data.
I cann't figure out what the problem I've been facing when using PPSD from OBSPY. The example data set as written in the tutorial works fine. But when I tried with my own data set, it fails and reported errors as attached below.
For understanding the example I write here: I am working with only 24-hours data (consisting of 24 1-hour files), 100 Hz sampling rate. The PPSD len(ppsd.times) resulted in 46 segments.
Thanks for the feedback, I just fixed it for the file that was missing
in your case, so if you reinstall from master (as you likely did
before?), the problem should be gone.