| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 1 | # 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 | |
| 7 | from typing import List, Type |
| 8 | from . import base |
| 9 | |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame] | 10 | from .ch02_phasor import Ch02PhasorWindow |
| Philipp Le | 692c01e | 2022-04-19 22:02:52 +0200 | [diff] [blame] | 11 | from .ch02_fourier import Ch02FourierWindow |
| Philipp Le | c2a590b | 2022-04-26 21:31:47 +0200 | [diff] [blame] | 12 | from .ch03_ergodic import Ch03ErgodicWindow |
| Philipp Le | e9332bd | 2022-04-26 21:32:12 +0200 | [diff] [blame] | 13 | from .ch03_cross import Ch03CrossCorrelationWindow |
| Philipp Le | fe80ceb | 2022-04-26 21:32:27 +0200 | [diff] [blame] | 14 | from .ch03_psd import Ch03PsdWindow |
| Philipp Le | 83e96b6 | 2022-05-01 17:36:30 +0200 | [diff] [blame^] | 15 | from .ch04_sampling import Ch04SamplingWindow |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame] | 16 | |
| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 17 | |
| 18 | def get_windows() -> List[Type[base.Window]]: |
| 19 | return [ |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame] | 20 | Ch02PhasorWindow, |
| Philipp Le | 692c01e | 2022-04-19 22:02:52 +0200 | [diff] [blame] | 21 | Ch02FourierWindow, |
| Philipp Le | c2a590b | 2022-04-26 21:31:47 +0200 | [diff] [blame] | 22 | Ch03ErgodicWindow, |
| Philipp Le | e9332bd | 2022-04-26 21:32:12 +0200 | [diff] [blame] | 23 | Ch03CrossCorrelationWindow, |
| Philipp Le | fe80ceb | 2022-04-26 21:32:27 +0200 | [diff] [blame] | 24 | Ch03PsdWindow, |
| Philipp Le | 83e96b6 | 2022-05-01 17:36:30 +0200 | [diff] [blame^] | 25 | Ch04SamplingWindow, |
| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | |
| 29 | def get_groups() -> List[Type[base.Group]]: |
| 30 | return base.get_groups(get_windows()) |
| 31 | |
| 32 | |
| 33 | def get_win_of_group(grp: Type[base.Group]) -> List[Type[base.Window]]: |
| 34 | return base.get_win_of_group(get_windows(), grp) |