added multidevice support
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
def radar_key_from_config(
|
||||
@@ -13,9 +14,13 @@ def radar_key_from_config(
|
||||
sweep_points: int,
|
||||
ifbw_hz: float,
|
||||
power_dbm: float,
|
||||
extra_serials: Sequence[str] | None = None,
|
||||
) -> str:
|
||||
"""Build deterministic key for calibration/reference set lookup."""
|
||||
serial_part = serial or "no_serial"
|
||||
serial_parts = [serial or "no_serial"]
|
||||
if extra_serials:
|
||||
serial_parts.extend(str(value).strip() or "no_serial" for value in extra_serials)
|
||||
serial_part = "_".join(sanitize_path_component(value) for value in serial_parts)
|
||||
start_token = _format_float_for_key(sweep_start_hz)
|
||||
stop_token = _format_float_for_key(sweep_stop_hz)
|
||||
ifbw_token = _format_float_for_key(ifbw_hz)
|
||||
|
||||
Reference in New Issue
Block a user