added pass through s11
This commit is contained in:
@@ -17,19 +17,19 @@ class ConfigWriter:
|
||||
self._runtime_dir = runtime_dir
|
||||
self._runtime_dir.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
def prepare_bundles(
|
||||
def prepare_s21_bundles(
|
||||
self,
|
||||
store: NpzStore,
|
||||
radar_key: str,
|
||||
calibration_set: str,
|
||||
reference_set: str,
|
||||
s21_calibration_set: str,
|
||||
s21_reference_set: str,
|
||||
) -> tuple[Path, Path]:
|
||||
"""Export calibration/reference sets into binary bundles for preprocessor."""
|
||||
calibration_bundle = self._runtime_dir / "calibration_bundle.bin"
|
||||
reference_bundle = self._runtime_dir / "reference_bundle.bin"
|
||||
calibration_bundle = self._runtime_dir / "s21_calibration_bundle.bin"
|
||||
reference_bundle = self._runtime_dir / "s21_reference_bundle.bin"
|
||||
|
||||
store.export_set_bundle("calibration", radar_key, calibration_set, calibration_bundle)
|
||||
store.export_set_bundle("reference", radar_key, reference_set, reference_bundle)
|
||||
store.export_set_bundle("calibration", radar_key, s21_calibration_set, calibration_bundle)
|
||||
store.export_set_bundle("reference", radar_key, s21_reference_set, reference_bundle)
|
||||
return calibration_bundle, reference_bundle
|
||||
|
||||
def write(self, config: RunConfigModel, output_path: Path) -> Path:
|
||||
|
||||
@@ -14,6 +14,7 @@ class ProcessingLiveConfig:
|
||||
processor_mode: str = "pass_through"
|
||||
gain_db: float = 0.0
|
||||
phase_deg: float = 0.0
|
||||
pass_through_channel: str = "s21"
|
||||
pass_through_fixed_y_enabled: bool = False
|
||||
pass_through_y_min_db: float = -100.0
|
||||
pass_through_y_max_db: float = 0.0
|
||||
@@ -52,6 +53,7 @@ class ProcessingLiveConfig:
|
||||
"processor_mode": str(self.processor_mode),
|
||||
"gain_db": float(self.gain_db),
|
||||
"phase_deg": float(self.phase_deg),
|
||||
"pass_through_channel": str(self.pass_through_channel),
|
||||
"pass_through_fixed_y_enabled": bool(self.pass_through_fixed_y_enabled),
|
||||
"pass_through_y_min_db": float(self.pass_through_y_min_db),
|
||||
"pass_through_y_max_db": float(self.pass_through_y_max_db),
|
||||
|
||||
Reference in New Issue
Block a user