Files
spothole/data/band.py
2025-10-02 19:33:39 +01:00

15 lines
392 B
Python

from dataclasses import dataclass
# Data class that defines a band.
@dataclass
class Band:
# Band name
name: str
# Start frequency, in Hz
start_freq: float
# Stop frequency, in Hz
end_freq: float
# Colour to use for this band, as per PSK Reporter
color: str
# Contrast colour to use for text against a background of the band colour
contrast_color: str