blob: f6aa703b0f47dd190937a885bfebeafd3dfe6bb4 [file] [log] [blame]
Philipp Le84173f62022-04-19 22:27:12 +02001# SPDX-License-Identifier: MPL-2.0
2# Copyright (c) 2022 Philipp Le <philipp@philipple.de>.
3# This Source Code Form is subject to the terms of the Mozilla Public
4# License, v. 2.0. If a copy of the MPL was not distributed with this
5# file, You can obtain one at https://mozilla.org/MPL/2.0/.
6
7from typing import List, Type
8from . import base
9
Philipp Leb0e45c82022-04-19 22:03:44 +020010from .ch02_phasor import Ch02PhasorWindow
Philipp Le692c01e2022-04-19 22:02:52 +020011from .ch02_fourier import Ch02FourierWindow
Philipp Leb0e45c82022-04-19 22:03:44 +020012
Philipp Le84173f62022-04-19 22:27:12 +020013
14def get_windows() -> List[Type[base.Window]]:
15 return [
Philipp Leb0e45c82022-04-19 22:03:44 +020016 Ch02PhasorWindow,
Philipp Le692c01e2022-04-19 22:02:52 +020017 Ch02FourierWindow,
Philipp Le84173f62022-04-19 22:27:12 +020018 ]
19
20
21def get_groups() -> List[Type[base.Group]]:
22 return base.get_groups(get_windows())
23
24
25def get_win_of_group(grp: Type[base.Group]) -> List[Type[base.Window]]:
26 return base.get_win_of_group(get_windows(), grp)