bscan added s11

This commit is contained in:
Ayzen
2026-03-26 18:47:07 +03:00
parent 077542cbd0
commit cd13a891ca
5 changed files with 80 additions and 25 deletions
+3
View File
@@ -225,6 +225,7 @@ class NpzStore(StoreApi):
*,
input_index: int = 0,
output_index: int = 0,
channel: str = "s21",
primary_stage: str = "preprocessed",
) -> tuple[Path, dict[str, Any]]:
"""Save runtime history as vna_system-compatible JSON file."""
@@ -251,6 +252,7 @@ class NpzStore(StoreApi):
selected_results,
input_index=input_index,
output_index=output_index,
channel=channel,
primary_stage=primary_stage,
)
output_path.write_text(
@@ -267,6 +269,7 @@ class NpzStore(StoreApi):
summary["sweep_count"] = len(payload.get("sweep_history", []))
summary["input_index"] = int(input_index)
summary["output_index"] = int(output_index)
summary["channel"] = str(channel)
summary["primary_stage"] = str(primary_stage)
summary["output_path"] = str(output_path)
return output_path, summary