| 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 | f7d1d45 | 2022-05-01 21:46:58 +0200 | [diff] [blame] | 16 | from .ch04_window import Ch04WindowWindow |
| Philipp Le | 1538427 | 2022-05-02 23:40:25 +0200 | [diff] [blame] | 17 | from .ch04_quantization_noise import Ch04QuantizationNoiseWindow |
| Philipp Le | 8aaf423 | 2022-05-02 22:45:27 +0200 | [diff] [blame] | 18 | from .ch05_modulation import Ch05ModulationWindow |
| Philipp Le | 6624859 | 2022-05-09 20:25:18 +0200 | [diff] [blame] | 19 | from .ch05_iq import Ch05IqWindow |
| Philipp Le | 8618421 | 2022-05-10 20:46:23 +0200 | [diff] [blame^] | 20 | from .ch05_qam import Ch05QamWindow |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame] | 21 | |
| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 22 | |
| 23 | def get_windows() -> List[Type[base.Window]]: |
| 24 | return [ |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame] | 25 | Ch02PhasorWindow, |
| Philipp Le | 692c01e | 2022-04-19 22:02:52 +0200 | [diff] [blame] | 26 | Ch02FourierWindow, |
| Philipp Le | c2a590b | 2022-04-26 21:31:47 +0200 | [diff] [blame] | 27 | Ch03ErgodicWindow, |
| Philipp Le | e9332bd | 2022-04-26 21:32:12 +0200 | [diff] [blame] | 28 | Ch03CrossCorrelationWindow, |
| Philipp Le | fe80ceb | 2022-04-26 21:32:27 +0200 | [diff] [blame] | 29 | Ch03PsdWindow, |
| Philipp Le | 83e96b6 | 2022-05-01 17:36:30 +0200 | [diff] [blame] | 30 | Ch04SamplingWindow, |
| Philipp Le | f7d1d45 | 2022-05-01 21:46:58 +0200 | [diff] [blame] | 31 | Ch04WindowWindow, |
| Philipp Le | 1538427 | 2022-05-02 23:40:25 +0200 | [diff] [blame] | 32 | Ch04QuantizationNoiseWindow, |
| Philipp Le | 8aaf423 | 2022-05-02 22:45:27 +0200 | [diff] [blame] | 33 | Ch05ModulationWindow, |
| Philipp Le | 6624859 | 2022-05-09 20:25:18 +0200 | [diff] [blame] | 34 | Ch05IqWindow, |
| Philipp Le | 8618421 | 2022-05-10 20:46:23 +0200 | [diff] [blame^] | 35 | Ch05QamWindow, |
| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 36 | ] |
| 37 | |
| 38 | |
| 39 | def get_groups() -> List[Type[base.Group]]: |
| 40 | return base.get_groups(get_windows()) |
| 41 | |
| 42 | |
| 43 | def get_win_of_group(grp: Type[base.Group]) -> List[Type[base.Window]]: |
| 44 | return base.get_win_of_group(get_windows(), grp) |