improved logging
This commit is contained in:
@@ -18,6 +18,7 @@ from python_app.models.run_config_model import RadarSweepModel
|
||||
|
||||
|
||||
def _parse_args() -> argparse.Namespace:
|
||||
"""Parse command-line options for the remote K209 smoke test."""
|
||||
parser = argparse.ArgumentParser(description="Validate remote K209 connection and one sweep.")
|
||||
parser.add_argument("--host", default=DEFAULT_REMOTE_HOST, help="K209 remote server host.")
|
||||
parser.add_argument("--port", type=int, default=DEFAULT_REMOTE_PORT, help="K209 remote server port.")
|
||||
@@ -30,6 +31,11 @@ def _parse_args() -> argparse.Namespace:
|
||||
|
||||
|
||||
def main() -> int:
|
||||
"""Connect to a remote K209, run one sweep, and validate its shape and values.
|
||||
|
||||
Raises on an unexpected point count, non-finite samples, or a non-monotonic frequency
|
||||
axis; prints a one-line summary on success.
|
||||
"""
|
||||
args = _parse_args()
|
||||
sweep = RadarSweepModel(
|
||||
start_hz=args.start_hz,
|
||||
|
||||
Reference in New Issue
Block a user