mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
First commit
This commit is contained in:
15
data/band.py
Normal file
15
data/band.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from dataclasses import dataclass
|
||||
|
||||
# Data class that defines a band.
|
||||
@dataclass
|
||||
class Band:
|
||||
# Band name
|
||||
name: str
|
||||
# Start frequency, in kHz
|
||||
start_freq: float
|
||||
# Stop frequency, in kHz
|
||||
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
|
||||
Reference in New Issue
Block a user