From ba327a94971cc0b48966afd5330af53561e693f9 Mon Sep 17 00:00:00 2001 From: macondiano4ever <islen.vallejo@protonmail.com> Date: Tue, 11 Apr 2023 15:13:54 +0200 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3b226f5..cb34f89 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ pip install -r requirements.txt ``` -Older versions of `pywavelet` were able to handle `discrete wavelet transform` using the `cwt()` function mean for +Older versions of `pywavelet` were able to handle `discrete wavelet transform` using the `cwt()` function meant for continuous wavelets. To get `pywavelet` library working with the (discrete) `haar` wavelet we need to make two small -modifications to the source of the `pywavelet` library. To do so, locate the installation directory: Let's say -`<some_path>/lib/python3.10/site-packages/pywt`. Open the `/_cwt.py` module. Replace the line -`dt_out = dt_cplx if wavelet.complex_cwt else dt` by `dt_out = dt` and comment +modifications to the source of the `pywavelet` library. Let's sayt that the installation directory is `<some_path>/lib/python3.10/site-packages/pywt`. +Open the `/_cwt.py` module. 1. Replace the line +`dt_out = dt_cplx if wavelet.complex_cwt else dt` by `dt_out = dt` and 2. comment `int_psi = np.conj(int_psi) if wavelet.complex_cwt else int_psi`. Clone the develop branch -- GitLab