| 1 |
============================== |
| 2 |
PyWavelets 0.5.0 Release Notes |
| 3 |
============================== |
| 4 |
|
| 5 |
.. |MATLAB| unicode:: MATLAB U+02122 .. with trademark sign |
| 6 |
|
| 7 |
.. contents:: |
| 8 |
|
| 9 |
PyWavelets is a Python toolbox implementing both discrete and continuous |
| 10 |
wavelet transforms (mathematical time-frequency transforms) with a wide range |
| 11 |
of built-in wavelets. C/Cython are used for the low-level routines, enabling |
| 12 |
high performance. Key Features of PyWavelets are: |
| 13 |
|
| 14 |
* 1D, 2D and nD Forward and Inverse Discrete Wavelet Transform (DWT and IDWT) |
| 15 |
* 1D, 2D and nD Multilevel DWT and IDWT |
| 16 |
* 1D and 2D Forward and Inverse Stationary Wavelet Transform |
| 17 |
* 1D and 2D Wavelet Packet decomposition and reconstruction |
| 18 |
* 1D Continuous Wavelet Transform |
| 19 |
* When multiple valid implementations are available, we have chosen to maintain consistency with |MATLAB|'s Wavelet Toolbox. |
| 20 |
|
| 21 |
PyWavelets 0.5.0 is the culmination of 1 year of work. In addition to |
| 22 |
several new features, substantial refactoring of the underlying C and Cython |
| 23 |
code have been made. |
| 24 |
|
| 25 |
This release requires Python 2.6, 2.7 or 3.3-3.5 and NumPy 1.9.1 or greater. |
| 26 |
This will be the final release supporting Python 2.6 and 3.3. |
| 27 |
|
| 28 |
Highlights of this release include: |
| 29 |
|
| 30 |
- 1D continuous wavelet transforms |
| 31 |
- new discrete wavelets added (additional Debauchies and Coiflet wavelets) |
| 32 |
- new 'reflect' extension mode for discrete wavelet transforms |
| 33 |
- faster performance for multilevel forward stationary wavelet transforms (SWT) |
| 34 |
- n-dimensional support added to forward SWT |
| 35 |
- routines to convert multilevel DWT coefficients to and from a single array |
| 36 |
- axis support for multilevel DWT |
| 37 |
- substantial refactoring/reorganization of the underlying C and Cython code |
| 38 |
|
| 39 |
|
| 40 |
New features |
| 41 |
============ |
| 42 |
|
| 43 |
1D Continuous Wavelet Transforms |
| 44 |
------------------------------- |
| 45 |
A wide range of continuous wavelets are now available. These include the |
| 46 |
following: |
| 47 |
|
| 48 |
- Gaussian wavelets (``gaus1``...``gaus8``) |
| 49 |
- Mexican hat wavelet (``mexh``) |
| 50 |
- Morlet wavelet (``morl``) |
| 51 |
- Complex Gaussian wavelets (``cgau1``...``cgau8``) |
| 52 |
- Shannon wavelet (``shan``) |
| 53 |
- Frequency B-Spline wavelet (``fbsp``) |
| 54 |
- Complex Morlet wavelet (``cmor``) |
| 55 |
|
| 56 |
Also, see the new CWT-related demo: demo/cwt_analysis.py |
| 57 |
|
| 58 |
New discrete wavelets |
| 59 |
--------------------- |
| 60 |
Additional Debauchies wavelets (``db20``...``db38``) and Coiflets |
| 61 |
(``coif6``...``coif17``) have been added. |
| 62 |
|
| 63 |
New extension mode: reflect |
| 64 |
--------------------------- |
| 65 |
Discrete wavelet transforms support a new extension mode, ``reflect``. This |
| 66 |
mode pads an array symmetrically, but without repeating the edge value. As an |
| 67 |
example:: |
| 68 |
|
| 69 |
pad array pad |
| 70 |
4 3 2 | 1 2 3 4 5 | 4 3 2 |
| 71 |
|
| 72 |
This differs from ``symmetric``, which repeats the values at the boundaries:: |
| 73 |
|
| 74 |
pad array pad |
| 75 |
3 2 1 | 1 2 3 4 5 | 5 4 3 |
| 76 |
|
| 77 |
Multilevel DWT Coefficient Handling |
| 78 |
----------------------------------- |
| 79 |
New routines to convert the coefficients returned by multilevel DWT routines |
| 80 |
to and from a single n-dimensional array have been added. |
| 81 |
``pywt.coeffs_to_array`` concatenates the output of ``wavedec``, ``wavedec2`` |
| 82 |
or ``wavedecn`` into a single numpy array. ``pywt.array_to_coeffs`` can be |
| 83 |
used to transform back from a single coefficient array to a format appropriate |
| 84 |
for ``waverec``, ``waverec2`` or ``waverecn``. |
| 85 |
|
| 86 |
More C function calls release the GIL |
| 87 |
------------------------------------- |
| 88 |
Cython code calling the wavelet filtering routines (DWT and SWT) now releases |
| 89 |
the global interpreter lock (GIL) where possible. A potential use case is in |
| 90 |
speeding up the batch computation of several large DWTs using multi-threading |
| 91 |
(e.g. via concurrent.futures). |
| 92 |
|
| 93 |
Multilevel wavelet transforms along specific axes |
| 94 |
------------------------------------------------- |
| 95 |
The axis specific transform support introduced in the prior release was |
| 96 |
extended to the multilevel DWT transforms. All ``wavedec*`` and ``waverec*`` |
| 97 |
routines have a new `axis` (1D) or `axes` (2D, nD) keyword argument. If |
| 98 |
unspecified the default behaviour is to transform all axes of the input. |
| 99 |
|
| 100 |
Faster multilevel stationary wavelet transforms |
| 101 |
----------------------------------------------- |
| 102 |
Stationary wavelet transforms are now faster when the number of levels is |
| 103 |
greater than one. The improvement can be very large (multiple orders of |
| 104 |
magnitude) for transforms with a large number of levels. |
| 105 |
|
| 106 |
|
| 107 |
Deprecated features |
| 108 |
=================== |
| 109 |
|
| 110 |
|
| 111 |
Backwards incompatible changes |
| 112 |
============================== |
| 113 |
|
| 114 |
A FutureWarning was added to ``swt2`` and ``iswt2`` to warn about a pending |
| 115 |
backwards incompatible change to the order of the coefficients in the list |
| 116 |
returned by these routines. The actual change will not occur until the next |
| 117 |
release. Transform coefficients will be returned in descending rather than |
| 118 |
ascending order. This change is being made for consistency with all other |
| 119 |
existing multi-level transforms in PyWavelets. |
| 120 |
|
| 121 |
Bugs Fixed |
| 122 |
========== |
| 123 |
|
| 124 |
``demo/image_blender.py`` was updated to support the new api of Pillow 3.x |
| 125 |
|
| 126 |
A bug related to size of assumed ``size_t`` on some platforms/compilers |
| 127 |
(e.g. Windows with mingw64) was fixed. |
| 128 |
|
| 129 |
Fix to memory leak in ``(i)dwt_axis`` |
| 130 |
|
| 131 |
Fix to a performance regression in ``idwt`` and ``iswt`` that was introduced |
| 132 |
in v0.4.0. |
| 133 |
|
| 134 |
Fixed a bug in ``dwtn`` and ``idwtn`` for data with complex dtype when |
| 135 |
``axes != None``. |
| 136 |
|
| 137 |
Other changes |
| 138 |
============= |
| 139 |
|
| 140 |
The minimum supported numpy version has been increased to 1.9.1. |
| 141 |
|
| 142 |
Test coverage (including for the Cython and C code) via |
| 143 |
`Codecov <https://codecov.io/>`_ was added and the overall test coverage has |
| 144 |
been improved. |
| 145 |
|
| 146 |
A substantial overhaul of the C extension code has been performed. Custom |
| 147 |
templating is no longer used. The intention is to make this code easier to |
| 148 |
maintain and expand in the future. |
| 149 |
|
| 150 |
The Cython code has been split out into a multiple files to hopefully make |
| 151 |
relevant portions of the wrappers easier to find for future developers. |
| 152 |
|
| 153 |
``setup.py`` now relies on setuptools in all cases (rather than distutils). |
| 154 |
|
| 155 |
Authors |
| 156 |
======= |
| 157 |
|
| 158 |
* Jonathan Dan + |
| 159 |
* Ralf Gommers |
| 160 |
* David Menéndez Hurtado |
| 161 |
* Gregory R. Lee |
| 162 |
* Holger Nahrstaedt + |
| 163 |
* Daniel M. Pelt + |
| 164 |
* Alexandre Saint + |
| 165 |
* Scott Sievert + |
| 166 |
* Kai Wohlfahrt |
| 167 |
* Frank Yu + |
| 168 |
|
| 169 |
A total of 10 people contributed to this release. |
| 170 |
People with a "+" by their names contributed a patch for the first time. |
| 171 |
This list of names is automatically generated, and may not be fully complete. |
| 172 |
|
| 173 |
|
| 174 |
Issues closed for v0.5.0 |
| 175 |
------------------------ |
| 176 |
|
| 177 |
- `#48 <https://github.com/PyWavelets/pywt/issues/48>`__: Continuous wavelet transform? |
| 178 |
- `#127 <https://github.com/PyWavelets/pywt/issues/127>`__: Reorganize _pywt |
| 179 |
- `#160 <https://github.com/PyWavelets/pywt/issues/160>`__: Appveyor failing on recent PRs |
| 180 |
- `#163 <https://github.com/PyWavelets/pywt/issues/163>`__: Set up coveralls |
| 181 |
- `#166 <https://github.com/PyWavelets/pywt/issues/166>`__: Wavelet coefficients to single array (and vice versa?) |
| 182 |
- `#177 <https://github.com/PyWavelets/pywt/issues/177>`__: Fail to install pywt due to the use of index_t which conflict with the definition in /usr/include/sys/types.h on smartos system(open solaris like system) |
| 183 |
- `#180 <https://github.com/PyWavelets/pywt/issues/180>`__: Memory leak |
| 184 |
- `#187 <https://github.com/PyWavelets/pywt/issues/187>`__: 'reflect' signal extension mode |
| 185 |
- `#189 <https://github.com/PyWavelets/pywt/issues/189>`__: bump minimum numpy version? |
| 186 |
- `#191 <https://github.com/PyWavelets/pywt/issues/191>`__: Upgrade removed Pillow methods |
| 187 |
- `#196 <https://github.com/PyWavelets/pywt/issues/196>`__: building in-place for development. |
| 188 |
- `#200 <https://github.com/PyWavelets/pywt/issues/200>`__: swt implementation is considerably slower than MATLAB |
| 189 |
- `#209 <https://github.com/PyWavelets/pywt/issues/209>`__: broken doctests |
| 190 |
- `#210 <https://github.com/PyWavelets/pywt/issues/210>`__: Run doctests in CI setup |
| 191 |
- `#211 <https://github.com/PyWavelets/pywt/issues/211>`__: Typo in iswt documentation |
| 192 |
- `#217 <https://github.com/PyWavelets/pywt/issues/217>`__: `blank_discrete_wavelet` does not properly initialize some properties |
| 193 |
- `#231 <https://github.com/PyWavelets/pywt/issues/231>`__: I can't compile pywt |
| 194 |
|
| 195 |
|
| 196 |
Pull requests for v0.5.0 |
| 197 |
------------------------ |
| 198 |
|
| 199 |
- `#148 <https://github.com/PyWavelets/pywt/pull/148>`__: Reorganize C v2 |
| 200 |
- `#161 <https://github.com/PyWavelets/pywt/pull/161>`__: Remove numpy distutils |
| 201 |
- `#162 <https://github.com/PyWavelets/pywt/pull/162>`__: fix: iswt/idwt performance regression |
| 202 |
- `#164 <https://github.com/PyWavelets/pywt/pull/164>`__: Improved coefficients for db and coif |
| 203 |
- `#167 <https://github.com/PyWavelets/pywt/pull/167>`__: Add coverage (codecov.io) |
| 204 |
- `#168 <https://github.com/PyWavelets/pywt/pull/168>`__: convert transform coefficients to and from a single n-dimensional array |
| 205 |
- `#169 <https://github.com/PyWavelets/pywt/pull/169>`__: Remove templating |
| 206 |
- `#170 <https://github.com/PyWavelets/pywt/pull/170>`__: :Always install new pip on Appveyor |
| 207 |
- `#172 <https://github.com/PyWavelets/pywt/pull/172>`__: Adding of missing wavelets from the matlab list |
| 208 |
- `#178 <https://github.com/PyWavelets/pywt/pull/178>`__: use Index_t instead of index_t |
| 209 |
- `#179 <https://github.com/PyWavelets/pywt/pull/179>`__: add axis/axes support to multilevel discrete wavelet transforms |
| 210 |
- `#181 <https://github.com/PyWavelets/pywt/pull/181>`__: Fix memory leak |
| 211 |
- `#182 <https://github.com/PyWavelets/pywt/pull/182>`__: improve test coverage for _multidim.py and _multilevel.py |
| 212 |
- `#183 <https://github.com/PyWavelets/pywt/pull/183>`__: improve coverage for _dwt.py |
| 213 |
- `#184 <https://github.com/PyWavelets/pywt/pull/184>`__: fix corner case in coeffs_to_array |
| 214 |
- `#188 <https://github.com/PyWavelets/pywt/pull/188>`__: Drop GIL in c_wt calls |
| 215 |
- `#190 <https://github.com/PyWavelets/pywt/pull/190>`__: bump minimum numpy to 1.9 |
| 216 |
- `#192 <https://github.com/PyWavelets/pywt/pull/192>`__: Upgrade to Pillow>=3 api |
| 217 |
- `#193 <https://github.com/PyWavelets/pywt/pull/193>`__: ENH: add 'reflect' extension mode |
| 218 |
- `#197 <https://github.com/PyWavelets/pywt/pull/197>`__: BLD: fix "python setup.py develop". Closes gh-196 |
| 219 |
- `#198 <https://github.com/PyWavelets/pywt/pull/198>`__: Choose clz* based on SIZE_MAX |
| 220 |
- `#201 <https://github.com/PyWavelets/pywt/pull/201>`__: speedup multi-level swt |
| 221 |
- `#205 <https://github.com/PyWavelets/pywt/pull/205>`__: fix dwtn/idwtn with axes != None and complex data |
| 222 |
- `#206 <https://github.com/PyWavelets/pywt/pull/206>`__: DOC: correct typo in iswt docstring |
| 223 |
- `#207 <https://github.com/PyWavelets/pywt/pull/207>`__: minor documentation updates |
| 224 |
- `#208 <https://github.com/PyWavelets/pywt/pull/208>`__: document coeff_to_array and array_to_coeff |
| 225 |
- `#214 <https://github.com/PyWavelets/pywt/pull/214>`__: FIX: update several doctests to reflect the new wavelets added |
| 226 |
- `#218 <https://github.com/PyWavelets/pywt/pull/218>`__: FIX: initialize all properties of a blank discrete wavelet |
| 227 |
- `#219 <https://github.com/PyWavelets/pywt/pull/219>`__: document coordinate conventions for 2D DWT routines. |
| 228 |
- `#220 <https://github.com/PyWavelets/pywt/pull/220>`__: Run doctests on TravisCI |
| 229 |
- `#221 <https://github.com/PyWavelets/pywt/pull/221>`__: Documentation for cwt and ContinuousWavelet |
| 230 |
- `#222 <https://github.com/PyWavelets/pywt/pull/222>`__: consistent use of double backticks in docs |
| 231 |
- `#223 <https://github.com/PyWavelets/pywt/pull/223>`__: add FutureWarning about swt2 coefficient order |
| 232 |
- `#224 <https://github.com/PyWavelets/pywt/pull/224>`__: n-dimensional stationary wavelet transform (swtn) and axis support in swt, swt2 |
| 233 |
- `#225 <https://github.com/PyWavelets/pywt/pull/225>`__: BUG: fix breakage on 32-bit Python. |
| 234 |
- `#226 <https://github.com/PyWavelets/pywt/pull/226>`__: DOC: update Copyright statements. |
| 235 |
- `#227 <https://github.com/PyWavelets/pywt/pull/227>`__: ENH: add kind keyword to wavelist() |
| 236 |
- `#228 <https://github.com/PyWavelets/pywt/pull/228>`__: MAINT: avoid using a builtin as variable name in qmf(). |
| 237 |
- `#229 <https://github.com/PyWavelets/pywt/pull/229>`__: DOC: add swtn, iswt, iswt2 to the API documentation |
| 238 |
- `#230 <https://github.com/PyWavelets/pywt/pull/230>`__: add demo of batch processing via concurrent.futures |
| 239 |
- `#234 <https://github.com/PyWavelets/pywt/pull/234>`__: ENH: coeffs_to_array supports axes argument as recently added to wavedec* |
| 240 |
- `#236 <https://github.com/PyWavelets/pywt/pull/236>`__: BLD: raise an ImportError if Cython should be installed but isn't. |