From 40cc60bd392c77362f4378585501c68b58f19896 Mon Sep 17 00:00:00 2001 From: ckemere Date: Tue, 2 Feb 2021 10:41:23 -0600 Subject: [PATCH] Remove cache clearing functions no longer in scipy --- ghost/sigtools/fourier.py | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/ghost/sigtools/fourier.py b/ghost/sigtools/fourier.py index cdcfd48..e5271e3 100644 --- a/ghost/sigtools/fourier.py +++ b/ghost/sigtools/fourier.py @@ -2,26 +2,13 @@ import logging import numpy as np -import scipy.fftpack._fftpack as sff from . import convolution __all__ = ['clean_scipy_cache', 'chirpz_dft'] def clean_scipy_cache(): - sff.destroy_zfft_cache() - sff.destroy_zfftnd_cache() - sff.destroy_drfft_cache() - sff.destroy_cfft_cache() - sff.destroy_cfftnd_cache() - sff.destroy_rfft_cache() - sff.destroy_ddct2_cache() - sff.destroy_ddct1_cache() - sff.destroy_dct2_cache() - sff.destroy_dct1_cache() - sff.destroy_ddst2_cache() - sff.destroy_ddst1_cache() - sff.destroy_dst2_cache() - sff.destroy_dst1_cache() + # Scipy no longer exposes the cache clearing functions + pass def chirpz_dft(x): """Computes the DFT of a signal using the Chirp Z-transform.