class_docstr: A really simple test suite to check simple implementation.
      
class_docstr_tok: ["A","really","simple","test","suite","to","check","simple","implementation","."]
code: def test_scipy_overwrite(self):
      new_style_scipy_fftn = False
      try:
          scipy_fftn = scipy.signal.signaltools.fftn
          scipy_ifftn = scipy.signal.signaltools.ifftn
      except AttributeError:
          scipy_fftn = scipy.fftpack.fftn
          scipy_ifftn = scipy.fftpack.ifftn
          new_style_scipy_fftn = True
  
      a = pyfftw.empty_aligned((128, 64), dtype="complex128", n=16)
      b = pyfftw.empty_aligned((128, 64), dtype="complex128", n=16)
  
      a[:] = numpy.random.randn(*a.shape) + 1j * numpy.random.randn(
          *a.shape
      )
      b[:] = numpy.random.randn(*b.shape) + 1j * numpy.random.randn(
          *b.shape
      )
  
      scipy_c = scipy.signal.fftconvolve(a, b)
  
      if new_style_scipy_fftn:
          scipy.fftpack.fftn = scipy_fftpack.fftn
          scipy.fftpack.ifftn = scipy_fftpack.ifftn
  
      else:
          scipy.signal.signaltools.fftn = scipy_fftpack.fftn
          scipy.signal.signaltools.ifftn = scipy_fftpack.ifftn
  
      scipy_replaced_c = scipy.signal.fftconvolve(a, b)
  
      self.assertTrue(numpy.allclose(scipy_c, scipy_replaced_c))
  
      if new_style_scipy_fftn:
          scipy.fftpack.fftn = scipy_fftn
          scipy.fftpack.ifftn = scipy_ifftn
  
      else:
          scipy.signal.signaltools.fftn = scipy_fftn
          scipy.signal.signaltools.ifftn = scipy_ifftn
  
imports: from pyfftw.interfaces import scipy_fftpack
  from packaging.version import Version
  import pyfftw
  from pyfftw import _supported_types
  import numpy
  import unittest
  from .test_pyfftw_base import run_test_suites, miss
  from .None import test_pyfftw_numpy_interface
label_desc: Use image node_id 1 for calling the InterfacesScipyR2RFFTPackTestSimple obj's underlying member method code with example usage: obj.test_scipy_overwrite() without return types