diff --git a/src/powerbox/dft_backend.py b/src/powerbox/dft_backend.py index adcfb74..fd44930 100644 --- a/src/powerbox/dft_backend.py +++ b/src/powerbox/dft_backend.py @@ -88,7 +88,7 @@ def __init__(self, nthreads=None): try: pyfftw.builders._utils._default_threads(4) except ValueError: - if nthreads > 1: + if nthreads and nthreads > 1: warnings.warn( "pyFFTW was not installed with multithreading. Using 1 thread.", stacklevel=2,