summaryrefslogtreecommitdiff
path: root/gr-fft/python/fft/fft_vfc.py
blob: 5194b72f296f4ef6a6462148bfb78ea66030e236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# Copyright 2020 Free Software Foundation, Inc.
#
# This file is part of GNU Radio
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
#

from . import fft_python as fft


class fft_vfc():
    def __new__(self, fft_size,
                forward,
                window,
                shift=False,
                nthreads=1):
        if forward:
            return fft.fft_vfc_fwd(fft_size, window, shift, nthreads)
        else:
            return fft.fft_vfc_rev(fft_size, window, shift, nthreads)