-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (26 loc) · 977 Bytes
/
config.py
File metadata and controls
33 lines (26 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# config.py
from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
@dataclass(frozen=True)
class CFG:
# ---------- Paths ----------
project_root: Path = Path(__file__).resolve().parent
data_path: Path = project_root / "data" / "vector_64.npy"
figs_dir: Path = project_root / "outputs"
# ---------- Data ----------
grid_n: int = 64
n_components: int = 2
dt: float = 0.2 # original time step in the dataset
dx: float = 1.0 # grid spacing (unit length per grid)
# ---------- Subsampling ----------
stride: int = 5 # use every 'stride' frames
max_frames_svd: int = 3000
max_frames_fft: int = 3000
# ---------- POD ----------
num_modes_svd: int = 100
num_modes_show: int = 4
# ---------- Segmented spectra ----------
n_segments: int = 3
# ---------- 2D spectrum view window (optional) ----------
k_window: float | None = None