diff --git a/gamutrf/offline.py b/gamutrf/offline.py index f8f643c8..2592dd46 100644 --- a/gamutrf/offline.py +++ b/gamutrf/offline.py @@ -28,17 +28,18 @@ def main(): and k != "filename" and k not in DYNAMIC_EXCLUDE_OPTIONS } + for override_dir in ("inference_output_dir", "sample_dir"): + override_val = getattr(options, override_dir) + if not override_val: + override_val = out_dir + scan_args[override_dir] = override_val scan_args.update( { "iqtlabs": iqtlabs, "freq_end": 0, "freq_start": freq_start, - "inference_output_dir": getattr( - options, "inference_output_dir", out_dir - ), "pretune": True, "samp_rate": int(meta["sample_rate"]), - "sample_dir": getattr(options, "sample_dir", out_dir), "sdr": "file:" + filename, } ) diff --git a/gamutrf/scan.py b/gamutrf/scan.py index 2fbda7ab..7945379d 100644 --- a/gamutrf/scan.py +++ b/gamutrf/scan.py @@ -152,7 +152,7 @@ def argument_parser(): "--rotate_secs", dest="rotate_secs", type=int, - default=300, + default=0, help="rotate storage directories every N seconds", ) parser.add_argument( @@ -351,7 +351,7 @@ def argument_parser(): parser.add_argument( "--mqtt_server", help="MQTT server to report RSSI", - default="mqtt", + default="", type=str, ) parser.add_argument(