Skip to content

Commit

Permalink
Merge pull request #1049 from anarkiwi/betterdef
Browse files Browse the repository at this point in the history
better defaults.
  • Loading branch information
anarkiwi authored Dec 18, 2023
2 parents b05dcbc + 9ecabf5 commit f0f73b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions gamutrf/offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)
Expand Down
4 changes: 2 additions & 2 deletions gamutrf/scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit f0f73b4

Please sign in to comment.