GotchasΒΆ

PyWavelets utilizes NumPy under the hood. That’s why handling the data containing None values can be surprising. None values are converted to ‘not a number’ (numpy.NaN) values:

>>> import numpy, pywt
>>> x = [None, None]
>>> mode = 'sym'
>>> wavelet = 'db1'
>>> cA, cD = pywt.dwt(x, wavelet, mode)
>>> numpy.all(numpy.isnan(cA))
True
>>> numpy.all(numpy.isnan(cD))
True
>>> rec = pywt.idwt(cA, cD, wavelet, mode)
>>> numpy.all(numpy.isnan(rec))
True

Previous topic

2D Wavelet Packets

Next topic

Development notes

Python Development

Django web development for startups and businesses.

Quality Python development and scientific applications.

Quick links

Edit this document

The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.